
M44C510E
Preliminary Information
Rev. A1, 04-May-00
35 (60)
Timer 0 Mode Register (T0MO)
Subport address (indirect write access): ’0’hex of Port adress ’9’hex
Bit 3
Bit 2
Bit 1
Bit 0
T0MO
T0MO3
T0MO2
T0MO1
T0MO0
Reset value: 1111b
T0MO3 ... 0 – Timer 0 Mode Code
Table 19. Timer 0 Mode Register (T0MO)
Code
3 2 1 0
Function
Assuming TCIOR1=TCIOR0=low
Interrupt set /
T0SR affected
BP40 (*3)
BP41
cmp
ofl
eom
0 0 0 0
reserved
–
–
–
0 0 0 1
reserved
–
–
–
0 0 1 0
Modulated melody mode
Envelope (out)
Tone (out)
y/y
y/y
n/n
0 0 1 1
Melody mode
Tone (out)
Tone (out)
y/y
y/y
n/n
0 1 0 0
Counter-auto reload (50% duty cycle)
Toggle (out) /Clock (in)
Toggle (out)
y/y
y/y
n/n
0 1 0 1
Counter-free running (50% duty cycle)
Toggle (out) /Clock (in)
Toggle (out)
n/y
y/y
n/n
0 1 1 0
Pulse density modulation
PDM (out) /Clock (in)
PDM (out)
n/y
y/y
n/n
0 1 1 1
Pulse width modulation
PWM (out) /Clock (in)
PWM (out)
n/y
y/y
n/n
1 0 0 0
Phase measurement
Signal 1 (in)
Signal 2 (in)
n/n
y/y
y/y
1 0 0 1
Position measurement
Signal 1 (in)
Signal 2 (in)
(*1)
(*2)
n/n
1 0 1 0
Low pulse width measurement
Clock (in)
Signal (in)
n/y
y/y
y/y
1 0 1 1
High pulse width measurement
Clock (in)
Signal (in)
n/y
y/y
y/y
1 1 0 0
Counter- auto reload (strobe)
Strobe (out) /Clock (in)
Strobe (out)
y/y
y/y
n/y
1 1 0 1
Counter-free running (strobe)
Strobe (out) /Clock (in)
Strobe (out)
n/y
y/y
n/y
1 1 1 0
Period measurement (rising edge)
Clock (in)
Signal (in)
n/y
y/y
y/y
1 1 1 1
Period measurement (falling edge)
Clock (in)
Signal (in)
n/y
y/y
y/y
*1 Note:
The compare interrupt/status flag can only be set when counting up.
*2 Note:
The overflow interrupt/status flag is set on both an overflow or an underflow.
*3 Note:
The BP40 signals can be inverted if T0NINV=0 (TCMO register)
Timer 0 Interrupt Status Register (T0SR)
Auxiliary register address (read access): ’9’hex
Bit 3
Bit 2
Bit 1
Bit 0
T0SR
not used
T0EOM
T0OFL
T0CMP
Reset value: x000b
Note:
The status register is reset automatically when read and also when Timer 0 is reset.
T0EOM– Timer 0 End Of Measurement status flag
T0OFL – Timer 0 OverFLow status flag
T0CMP – Timer 0 CoMPare status flag