Timb Channel 2 Status And Control Register (Tbsc2) - Motorola MC68HC908AB32 Technical Data Manual

Hcmos microcontroller unit
Table of Contents

Advertisement

MC68HC908AB32
Rev. 1.0
MOTOROLA
Address:
$0032
Bit 7
6
Read:
CH2F
CH2IE
Write:
0
Reset:
0
0
Figure 12-11. TIMB Channel 2 Status and Control Register (TBSC2)
Address:
$0035
Bit 7
6
Read:
CH3F
CH3IE
Write:
0
Reset:
0
0
Figure 12-12. TIMB Channel 3 Status and Control Register (TBSC3)
CHxF — Channel x Flag Bit
When channel x is an input capture channel, this read/write bit is set
when an active edge occurs on the channel x pin. When channel x is
an output compare channel, CHxF is set when the value in the TIMB
counter registers matches the value in the TIMB channel x registers.
When TIM CPU interrupt requests are enabled (CHxIE = 1), clear
CHxF by reading TIMB channel x status and control register with
CHxF set and then writing a logic zero to CHxF. If another interrupt
request occurs before the clearing sequence is complete, then writing
logic zero to CHxF has no effect. Therefore, an interrupt request
cannot be lost due to inadvertent clearing of CHxF.
Reset clears the CHxF bit. Writing a logic one to CHxF has no effect.
1 = Input capture or output compare on channel x
0 = No input capture or output compare on channel x
CHxIE — Channel x Interrupt Enable Bit
This read/write bit enables TIMB CPU interrupts on channel x.
Reset clears the CHxIE bit.
1 = Channel x CPU interrupt requests enabled
0 = Channel x CPU interrupt requests disabled
Timer Interface Module B (TIMB)
5
4
3
MS2B
MS2A
ELS2B
0
0
0
5
4
3
0
MS3A
ELS3B
0
0
0
Timer Interface Module B (TIMB)
I/O Registers
2
1
ELS2A
TOV2
0
0
2
1
ELS3A
TOV3
0
0
Technical Data
Bit 0
CH2MAX
0
Bit 0
CH3MAX
0
215

Advertisement

Table of Contents
loading

Table of Contents