| Electronic Components Datasheet Search |
|
M68HC05 Datasheet(PDF) 55 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
M68HC05 Datasheet(HTML) 55 Page - Freescale Semiconductor, Inc |
|
55 / 118 page ![]() Timer I/O Registers MC68HC05C9A Advance Information Data Sheet, Rev. 4.1 Freescale Semiconductor 55 8.3.3 Timer Registers The timer registers (TRH and TRL), shown in Figure 8-4, contains the current high and low bytes of the 16-bit counter. Reading TRH before reading TRL causes TRL to be latched until TRL is read. Reading TRL after reading the timer status register clears the timer overflow flag (TOF). Writing to the timer registers has no effect. Figure 8-4. Timer Registers (TRH and TRL) 8.3.4 Alternate Timer Registers The alternate timer registers (ATRH and ATRL), shown in Figure 8-5, contain the current high and low bytes of the 16-bit counter. Reading ATRH before reading ATRL causes ATRL to be latched until ATRL is read. Reading ATRL has no effect on the timer overflow flag (TOF). Writing to the alternate timer registers has no effect. Figure 8-5. Alternate Timer Registers (ATRH and ATRL) NOTE To prevent interrupts from occurring between readings of ATRH and ATRL, set the interrupt flag in the condition code register before reading ATRH, and clear the flag after reading ATRL. TRH $0018 Bit 7 654321 Bit 0 Read: Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Write Reset: 11111111 TRL $0019 Bit 7 654321 Bit 0 Read: Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2 Bit 1Bit 0 Write: Reset: 11111100 = Unimplemented ATRH $001A Bit 7 654321 Bit 0 Read: Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Write: Reset: 11111111 ATRL $001B Bit 7 654321 Bit 0 Read: Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2 Bit 1Bit 0 Write: Reset: 11111100 = Unimplemented |
|
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 |