RX610 Group
15. 16-Bit Timer Pulse Unit (TPU)
R01UH0032EJ0120 Rev.1.20
Page 482 of 1006
Feb 20, 2013
15.2.6
Timer Counter (TCNT)
b4
b15
b8
b7
b3
b2
b1
b0
b14
b13
b12
b11
b10
b9
b6
b5
Value after reset:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Addresses:
TPU0.TCNT 0008 8116h, TPU1.TCNT 0008 8126h, TPU2.TCNT 0008 8136h
TPU3.TCNT 0008 8146h, TPU4.TCNT 0008 8156h, TPU5.TCNT 0008 8166h
TPU6.TCNT 0008 8186h, TPU7.TCNT 0008 8196h, TPU8.TCNT 0008 81A6h
TPU9.TCNT 0008 81B6h, TPU10.TCNT 0008 81C6h, TPU11.TCNT 0008 81D6h
The TPU has twelve TCNT counters, one for each channel.
TPUm.TCNT is a 16-bit counter that counts the internal clock or external events.
This counter can be read/written in 16-bit units.
This counter is initialized to 0000h by a reset.
15.2.7
Timer General Register A (TGRA)
Timer General Register B (TGRB)
Timer General Register C (TGRC)
Timer General Register D (TGRD)
Addresses: TPU0.TGRA 0008 8118h, TPU0.TGRB 0008 811Ah, TPU0.TGRC 0008 811Ch, TPU0.TGRD 0008 811Eh
TPU1.TGRA 0008 8128h, TPU1.TGRB 0008 812Ah
TPU2.TGRA 0008 8138h, TPU2.TGRB 0008 813Ah
TPU3.TGRA 0008 8148h, TPU3.TGRB 0008 814Ah, TPU3.TGRC 0008 814Ch, TPU3.TGRD 0008 814Eh
TPU4.TGRA 0008 8158h, TPU4.TGRB 0008 815Ah
TPU5.TGRA 0008 8168h, TPU5.TGRB 0008 816Ah
TPU6.TGRA 0008 8188h, TPU6.TGRB 0008 818Ah, TPU6.TGRC 0008 818Ch, TPU6.TGRD 0008 818Eh
TPU7.TGRA 0008 8198h, TPU7.TGRB 0008 819Ah
TPU8.TGRA 0008 81A8h, TPU8.TGRB 0008 81AAh
TPU9.TGRA 0008 81B8h, TPU9.TGRB 0008 81BAh, TPU9.TGRC 0008 81BCh, TPU9.TGRD 0008 81BEh
TPU10.TGRA 0008 81C8h, TPU10.TGRB 0008 81CAh
TPU11.TGRA 0008 81D8h, TPU11.TGRB 0008 81DAh
b4
b15
b8
b7
b3
b2
b1
b0
b14
b13
b12
b11
b10
b9
b6
b5
Value after reset:
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
The TPU has 32 TGR registers in total, four each for TPU0, TPU3, TPU6, and TPU9 and two each for TPU1, TPU2,
TPU4, TPU5, TPU7, TPU8, TPU10, and TPU11.
TPUm.TGRA (m = 0 to 11), TPUm.TGRB (m = 0 to 11), TPUm.TGRC (m = 0, 3, 6, 9), and TPUm.TGRD (m = 0, 3, 6,
9) are 16-bit registers with a dual function as output compare and input capture registers.
These registers can be read/written in 16-bit units.
TPUm.TGRC and TPUm.TGRD can also be specified for operation as buffer registers. Register combinations during
buffer operations are TPUm.TGRA
−
TPUm.TGRC and TPUm.TGRB
−
TPUm.TGRD.