參數(shù)資料
型號(hào): Z80B-CTC
英文描述: Z8 Microcontrollers
中文描述: Z8微控制器
文件頁數(shù): 82/222頁
文件大?。?/td> 1595K
代理商: Z80B-CTC
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁當(dāng)前第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁第212頁第213頁第214頁第215頁第216頁第217頁第218頁第219頁第220頁第221頁第222頁
Z8 Microcontrollers
Counter/Timers
ZiLOG
6-4
UM001600-Z8X0599
6.3.2 Prescaler Operations
During counting, the programmed clock source drives the
6-bit Prescaler Counter. The counter is counted down from
the value specified by bits of the corresponding Prescaler
Register, PRE0 (bit 7 to bit 2) or PRE1 (bit 7 to bit 2). (Fig-
ures 6-3, 6-4). When the Prescaler Counter reaches its
end-of-count, the initial value is reloaded and counting
continues. The prescaler never actually reaches 0. For ex-
ample, if the prescaler is set to divide-by-three, the count
sequence is:
Each time the prescaler reaches its end of count a carry is
generated, that allows the Counter/Timer to decrement by
one on the next timer clock input. When the Counter/Timer
and the prescaler both reach the end-of-count, an interrupt
request is generated (IRQ4 for T0, IRQ5 for T1). Depend-
ing on the counting mode selected, the Counter/Timer will
either come to rest with its value at 00H (Single-Pass
Mode) or the initial value will be automatically reloaded
and counting will continue (Continuous Mode). The count-
ing modes are controlled by bit 0 of PRE0 and bit 0 of
PRE1. (Figure 6-8). A 0, written to this bit configures the
counter for Single-pass counting mode, while a 1 written to
this bit configures the counter for Continuous mode.
The Counter/Timer can be stopped at any time by setting
the Enable Count bit to 0, and restarted by setting it back
to 1. The Counter/Timer will continue its count value at the
time it was stopped. The current value in the Counter/Tim-
er can be read at any time without affecting the counting
operation.
Note:
The prescaler registers are write-only and cannot
be read.
New initial values can be written to the prescaler or the
Counter/Timer registers at any time. These values will be
transferred to their respective down counters on the next
load operation. If the Counter/Timer mode is continuous,
the next load occurs on the timer clock following an end-of-
count. New initial values should be written before the de-
sired load operation, since the prescalers always effective-
ly operate in Continuous count mode.
The time interval (i) until end-of-count, is given by the
equation:
The internal clock frequency defaults to the external clock
source (XTAL, ceramic resonator, and others) divided by
2. Some Z8 microcontrollers allow this divisor to be
changed via the Stop-Mode Recovery register. See the
product data sheet for available clock divisor options.
Note that t is equal to eight divided-by-XTAL frequency of
the external clock source for T1 (external clock mode
only).
p = the prescaler value (1 – 63) for T
0
and T
1
.
The minimum prescaler count of 1 is achieved by loading
000001xx. The maximum prescaler count of 63 is
achieved by loading 111111xx.
v = the Counter/Timer value (1-256)
Minimum duration is achieved by loading 01H (1 prescaler
output count), maximum duration is achieved by loading
00H (256 prescaler outputs counts).
The prescaler and counter/timer are true divide-by-n
counters.
3–2–1–3–2–1–3–2–1–3...
i = t X p X v
in which:
t = four times the internal clock period.
相關(guān)PDF資料
PDF描述
Z80B-DART Z8 Microcontrollers
Z80B-PIO Z8 Microcontrollers
Z86E2116PSC Z8 Microcontrollers
Z8300-1PS 8-Bit Microprocessor
Z8300-3PS Microprocessor
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
Z80B-DART 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Z8 Microcontrollers
Z80B-PIO 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Z8 Microcontrollers
Z80B-SIO/O 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Z8 Microcontrollers
Z80C30 制造商:ZILOG 制造商全稱:ZILOG 功能描述:CMOS SCC SERIAL COMMUNICATIONS CONTROLLER
Z80C30-06LME 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Communications Controller