參數(shù)資料
型號: MC68HC05J3DW
廠商: FREESCALE SEMICONDUCTOR INC
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDSO20
封裝: PLASTIC, SOIC-20
文件頁數(shù): 38/92頁
文件大?。?/td> 912K
代理商: MC68HC05J3DW
MC68HC05J3
MOTOROLA
6-3
16-BIT PROGRAMMABLE TIMER
6
6.1
Counter
The key element in the programmable timer is a 16-bit, free-running counter, or counter register,
preceded by a prescaler that divides the internal processor clock by four. The prescaler gives the
timer a resolution of 2
s if the internal bus clock is 2MHz. The counter is incremented during the
low portion of the internal bus clock. Software can read the counter at any time without affecting
its value.
6.1.1
Counter high register
Counter low register
Alternate counter high register
Alternate counter low register
The double-byte, free-running counter can be read from either of two locations, the counter
register at $18 – $19 or the alternate counter register at $1A – $1B. A read from only the less
signicant byte (LSB) of the free-running counter, $19 or $1B, receives the count value at the time
of the read. If a read of the free-running counter or alternate counter register rst addresses the
more signicant byte (MSB), $18 or $1A, the LSB is transferred to a buffer. This buffer value
remains xed after the rst MSB read, even if the user reads the MSB several times. This buffer is
accessed when reading the free-running counter or alternate counter register LSB and thus
completes a read sequence of the total counter value. In reading either the free-running counter
or alternate counter register, if the MSB is read, the LSB must also be read to complete the
sequence. If the timer overow ag (TOF) is set when the counter register LSB is read, then a read
of the TSR will clear the ag.
The alternate counter register differs from the counter register only in that a read of the LSB does
not clear TOF. Therefore, to avoid the possibility of missing timer overow interrupts due to clearing
of TOF, the alternate counter register should be used where this is a critical issue.
The free-running counter is set to $FFFC during reset and is always a read-only register. During
a power-on reset, the counter is also preset to $FFFC and begins running after the oscillator
start-up delay. Because the free-running counter is 16 bits preceded by a xed divide-by-four
prescaler, the value in the free-running counter repeats every 262 144 internal bus clock cycles.
TOF is set when the counter overows (from $FFFF to $0000); this will cause an interrupt if TOIE
is set.
Address
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
Timer counter high (TCH)
$0018
(bit 15)
(bit 8) 1111 1111
Timer counter low (TCL)
$0019
1111 1100
Alternate counter high (ACH)
$001A
(bit 15)
(bit 8) 1111 1111
Alternate counter low (ACL)
$001B
1111 1100
TPG
40
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.
相關(guān)PDF資料
PDF描述
MC68HC05J3CDW 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDSO20
MC68HC05JB3DW 8-BIT, MROM, 3 MHz, MICROCONTROLLER, PDSO28
MC68HC05JB3JDW 8-BIT, MROM, 3 MHz, MICROCONTROLLER, PDSO28
MC68HC05JB3JP 8-BIT, MROM, 3 MHz, MICROCONTROLLER, PDIP20
MC68HC05K3CSD 8-BIT, MROM, 2 MHz, MICROCONTROLLER, PDSO20
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC05J3P 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcomputer Unit
MC68HC05J5A 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:8-bit microcontroller units
MC68HC05J5ADW 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:8-bit microcontroller units
MC68HC05J5AJDW 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:8-bit microcontroller units
MC68HC05J5AJP 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:8-bit microcontroller units