
Rev.2.10 Apr 14, 2006 page 128 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 13. Timers
Figure 13.12 Registers TA0MR to TA4MR in Pulse Width Modulation Mode
Bit Name
Timer Ai Mode Register (i = 0 to 4)
FunctionBit Symbol
b7 b6 b5 b4 b3 b2 b1 b0
Operating mode
select bits
Pulse output function
select bit
(3)
1 1 : Pulse width modulation mode
b1 b0
TMOD1
TMOD0
MR0
RW
11
RW
RW
RW
After Reset
00h
Address
0396h to 039Ah
Symbol
TA0MR to TA4MR
MR2
MR1
MR3
b7 b6
TCK1
TCK0
Count source select bits
16/8-Bit PWM mode
select bit
Trigger select bit
External trigger select
bit
(1)
RW
RW
RW
RW
RW
1 : Selected by bits TAiTGH to TAiTGL
0 : Falling edge of input signal to TAiIN pin
(2)
1 : Rising edge of input signal to TAiIN pin
(2)
0 : Pulse is not output
(TAiOUT pin is a normal port pin)
1 : Pulse is output
(TAiOUT pin is a pulse output pin)
0 :
Functions as a 16-bit pulse width modulator
1 :
Functions as an 8-bit pulse width modulator
0 : Write 1 to TAiS bit in the TABSR register
0 0 : f1 or f2
(4)
0 1 : f8
1 0 : f32
1 1 : fC32
NOTES:
1. Effective when bits TAiTGH and TAiTGL in the ONSF or TRGSR register are 00b (TAiIN pin input).
2. The port direction bit for the TAiIN pin is set to 0 (input mode).
3. Set to 1 (pulse is output), PWM pulse is output.
4. Selected by the PCLK0 bit in the PCLKR register.
Kommentare zu diesen Handbüchern