Renesas M16C/64A Series User Manual page 15

Table of Contents

Advertisement

17. Timer A .................................................................................................................... 252
17.1
Introduction ............................................................................................................................... 252
17.2
Registers................................................................................................................................... 255
17.2.1
Peripheral Clock Select Register (PCLKR) ..................................................................... 256
17.2.2
Clock Prescaler Reset Flag (CPSRF) ............................................................................. 256
17.2.3
Timer A Count Source Select Register i (TACSi) (i = 0 to 2) ........................................... 257
17.2.4
17.2.5
Timer A Waveform Output Function Select Register (TAPOFS) ..................................... 259
17.2.6
Timer A Output Waveform Change Enable Register (TAOW) ......................................... 260
17.2.7
Timer Ai Register (TAi) (i = 0 to 4) ................................................................................... 261
17.2.8
Timer Ai-1 Register (TAi1) (i = 1, 2, 4) ............................................................................. 262
17.2.9
Count Start Flag (TABSR) ............................................................................................... 262
17.2.10
One-Shot Start Flag (ONSF) ........................................................................................... 263
17.2.11
Trigger Select Register (TRGSR) .................................................................................... 264
17.2.12
Increment/Decrement Flag (UDF) ................................................................................... 265
17.2.13
Timer Ai Mode Register (TAiMR) (i = 0 to 4) ................................................................... 266
17.3
Operations ................................................................................................................................ 267
17.3.1
Common Operations ....................................................................................................... 267
17.3.2
Timer Mode ..................................................................................................................... 269
17.3.3
17.3.4
17.3.5
One-Shot Timer Mode ..................................................................................................... 282
17.3.6
Pulse Width Modulation (PWM) Mode ............................................................................ 286
17.3.7
Programmable Output Mode (Timers A1, A2, and A4) .................................................... 291
17.4
Interrupts................................................................................................................................... 295
17.5
Notes on Timer A...................................................................................................................... 296
17.5.1
Common Notes on Multiple Modes ................................................................................. 296
17.5.2
Timer A (Timer Mode) ..................................................................................................... 297
17.5.3
Timer A (Event Counter Mode) ........................................................................................ 297
17.5.4
Timer A (One-Shot Timer Mode) ..................................................................................... 297
17.5.5
Timer A (Pulse Width Modulation Mode) ......................................................................... 298
17.5.6
Timer A (Programmable Output Mode) ........................................................................... 299
18. Timer B .................................................................................................................... 300
18.1
Introduction ............................................................................................................................... 300
18.2
Registers................................................................................................................................... 303
18.2.1
Peripheral Clock Select Register (PCLKR) ..................................................................... 304
18.2.2
Clock Prescaler Reset Flag (CPSRF) ............................................................................. 304
18.2.3
Timer Bi Register (TBi) (i = 0 to 5) ................................................................................... 305
Timer Bi-1 Register (TBi1) (i = 0 to 5) ............................................................................. 306
18.2.4
18.2.5
(PPWFSi) (i = 1, 2) .......................................................................................................... 307
A - 8

Advertisement

Table of Contents
loading

Table of Contents