| Electronic Components Datasheet Search |
|
Z86L997 Datasheet(PDF) 45 Page - Zilog, Inc. |
|
|
|||||||||||||||||||||||||||||
Z86L997 Datasheet(HTML) 45 Page - Zilog, Inc. |
|
45 / 102 page ![]() Z86D990/Z86D991 OTP and Z86L99X ROM Low-Voltage Microcontrollers with ADC PS003807-1002 P R E L I M I N A R Y 38 Load and Enable Count Bits Setting the Load bit D2 to 1 transfers the initial values in the prescaler and the counter/timer registers into their respective down-counters. The next internal clock resets bit D2 to 0, readying the Load bit for the next load operation. The initial val- ues can be loaded into the down-counters at any time. If the counter/timer is run- ning, the counter/timer continues to run and starts the count over with the initial value. Therefore, the Load bit actually functions as a software re-trigger. The T1 counter/timer remains at rest as long as the Enable Count bit D3 is 0. To enable counting, the Enable Count bit D3 must be set to 1. Counting actually starts when the Enable Count bit is written by an instruction. The first decrement occurs four internal clock periods after the Enable Count bit has been set. The Load and Enable Count bits can be set at the same time. For example, using the instruction OR TMR #%0C sets both D2 and D3 of TMR to 1. The initial values of PRE1 and T1 are loaded into their respective counters, and the count is started after the M2T2 machine state after the operand is fetched as shown in Figure 23. Figure 23. Starting the Count Prescaler Operations During counting, the programmed clock source drives the prescaler 6-bit counter. The counter is counted down from the value specified by bits D2–D7 of the corre- sponding prescaler register, PRE0 or PRE1 (Figure 24). When the prescaler counter reaches its end-of-count, the initial value is reloaded and counting contin- ues. The prescaler never actually reaches zero. For example, if the prescaler is set to divide by three, the count sequence is as follows: 3-2-1-3-2-1-3-2... M3 M1 M2 Mn T1 T2 T3 T1 T2 T3 T1 T2 T3 T1 T2 T3 #03 is fetched TMR is written; counter/timers are loaded first decrement occurs four clocks later |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |