
6-3
ML63326 User's Manual
Chapter 6 Time Base Counter (TBC)
6
6.4 Time Base Counter Operation
After system reset the time base counter (TBC) begins to count up from 0000H. The count
is incremented at the falling edge of the TBCCLK.
TBC 32 Hz/16 Hz/4 Hz/2 Hz outputs are used as time base interrupts. At each output falling
edge, four bits of interrupt request register 4 (IRQ4) are set to "1", namely bit 3 (Q32Hz), bit
2 (Q16Hz), bit 1 (Q4Hz) and bit 0 (Q2Hz), requesting an interrupt to the CPU. TBC outputs
are also used as clocks for various circuits.
TBC 1 to 8 Hz output and 16 to 128 Hz output can be read through the time base counter
register 0/1 (TBCR0/TBCR1).
A write operation to TBCR1 sets the 1 to 8 Hz output counter to "0", and a write operation to
TBCR0 sets both the 1 to 8 Hz and 16 to 128 Hz output counters to "0". The write data in these
write operations has no significance. For example, the "MOV TBCR0, A" instruction can be
used to write, but is not dependent on accumulator content in any way. When write is executed
to TBCR0 and TBCR1 and the 1 to 8 Hz and 16 to 128 Hz counters reset, interrupt requests
are generated if 32 Hz/16 Hz/4 Hz/2 Hz outputs have been set to "1". To disable these
interrupts, first set the master interrupt enable flag (MIE) or interrupt enable register 4 (IE4)
to "0", execute the write operation to TBCR 0/1, and set the interrupt request flag 4 (IRQ4)
to "0".
Figure 6-2 shows interrupt generation timing and time base counter output reset timing by
writing "1" to TBCR0 and TBCR1.
Содержание ML63326
Страница 3: ......
Страница 13: ......
Страница 14: ...Chapter 1 Overview 1 ...
Страница 15: ......
Страница 37: ...1 22 ML63326 User s Manual Chapter 1 Overview ...
Страница 38: ...Chapter 2 CPU and Memory Spaces 2 ...
Страница 39: ......
Страница 50: ...CPU Control Functions Chapter 3 3 ...
Страница 51: ......
Страница 57: ...3 6 ML63326 User s Manual Chapter 3 CPU Control Functions ...
Страница 58: ...Interrupt INT326 Chapter 4 4 ...
Страница 59: ......
Страница 71: ...4 12 ML63326 User s Manual Chapter 4 Interrupt INT326 ...
Страница 72: ...Clock Generator Circuit OSC Chapter 5 5 ...
Страница 73: ......
Страница 83: ...5 10 ML63326 User s Manual Chapter 5 Clock Generator Circuit OSC ...
Страница 84: ...Time Base Counter TBC Chapter 6 6 ...
Страница 85: ......
Страница 90: ...Timers TIMER Chapter 7 7 ...
Страница 91: ......
Страница 115: ...7 24 ML63326 User s Manual Chapter 7 Timers TIMER ...
Страница 116: ...Chapter 8 8 100 Hz Timer Counter 100HzTC ...
Страница 117: ......
Страница 121: ...8 4 ML63326 User s Manual Chapter 8 100 Hz Timer Counter 100HzTC ...
Страница 122: ...Chapter 9 9 Watchdog Timer WDT ...
Страница 123: ......
Страница 128: ...Chapter 10 10 Ports INPUT OUTPUT I O PORT ...
Страница 129: ......
Страница 170: ...Chapter 11 11 External Memory Transfer Function EXTMEM ...
Страница 171: ......
Страница 179: ...11 8 ML63326 User s Manual Chapter 11 External Memory Transfer Function EXTMEM ...
Страница 180: ...Chapter 12 12 Melody Driver MELODY63K ...
Страница 181: ......
Страница 195: ...12 14 ML63326 User s Manual Chapter 12 Melody Driver MELODY63K ...
Страница 196: ...13 Chapter 13 Voice Synthesis ...
Страница 197: ......
Страница 228: ...14 Chapter 14 Shift Register SFT ...
Страница 229: ......
Страница 236: ...15 Chapter 15 LCD Driver LCD ...
Страница 237: ......
Страница 250: ...16 Chapter 16 Battery Low Detect Circuit BLD ...
Страница 251: ......
Страница 255: ...16 4 ML63326 User s Manual Chapter 16 Battery Low Detect Circuit BLD ...
Страница 256: ...Chapter 17 17 Power Supply Circuit POWER ...
Страница 257: ......
Страница 260: ...Appendixes ...
Страница 261: ......
Страница 321: ...Appendix 60 ML63326 User s Manual Appendix G ...