![](http://datasheet.mmic.net.cn/30000/M30280M6-XXXHP_datasheet_2358793/M30280M6-XXXHP_167.png)
M16C/28 Group
Under development Preliminary specification
Specifications in this manual are tentative and subject to change.
13. Timer S (Input Capture / Output Compare)
Rev.0.60 2004.02.01
page 149 of N
REJ09B0047-0060Z
13.5.3 Set/Reset Waveform Output (SR Waveform Output) Mode
Output level of the OUTC1j pin is inverted when the base timer value matches that of the G1POj register
value (j=0, 2, 4, 6). It is returned to default output level when the base timer value matches that of the
G1POk register (k=j+1). Table 13.5.3.1 lists specifications of SR waveform mode. Figure 13.5.3.1 lists an
example of the SR waveform mode operation.
Table 13.5.3.1. SR Waveform Output Mode Specifications
Item
Specification
Output waveform
Free-running operation
(the RST1, RTS2, and RST4 bits of the G1BCR1 and G1BCR0 registers are set
to "0" (no reset))
Cycle
:
Inverse level(Note 1)
:
Setting bit RST1 to "1", and bits RST4 and RST2 to "0" enables the base
timer to be reset when its value matches the G1PO0 register(Note 2).
Likewise, setting bit RST4 to "1", and bits RST2 and RST1 to "0" enables the
base timer to be reset when its value matches the G1BTRR register.
Cycle
:
Inverse level(Note 1)
:
m : setting value of the G1POj register (j=0, 2, 4, 6 )
n : setting value of the G1POk register (k=j+1)
p : setting value of either G1PO0 register or G1BTRR register
all m, n, p: 000116 to FFFD16
Waveform output start condition(Note 3) The IFEj bit in the G1FE register should be set to "1" (channel j function enabled)
Waveform output stop condition
The IFEj bit should be set to "0" (channel j function disabled)
Interrupt request
The G1IRj bit in the interrupt request register is set to "1" when value of the
base timer matches one of the G1POj registers.
The G1IRk bit in the interrupt request register is set to "1 " when value of the
base timer matches one of the G1POk registers (See Figure 13.10.)
OUTC1j pin(Note 3)
Pulse output
Selectable function
Default value set function : Output level is set when waveform output starts
Inverse output function : Waveform level is inverted to output waveform from the
OUTC1j pin
Note 1 : The waveform generation register of odd channel should have greater value than the one of even channel has.
Note 2 : When the G1PO0 register resets the base timer, the SR waveform generation function with channels 0 and 1
cannot be used.
Note 3 : The OUTC10, OUTC12, OUTC14, OUTC16 pins.
65536
fBT1
m-n
fBT1
p+2
fBT1
m-n
fBT1