BAT32A2x9 User Manual | Chapter 1 CPU
www.mcu.com.cn 10 / 1149 Rev.1.00
10.3.2 Timer M EVENTC register (TMELC)......................................................................................318
10.3.3 Timer M Start Register (TMSTR)............................................................................................319
10.3.4 Timer M mode register (TMMR).............................................................................................320
10.3.5 Timer M PWM function select register (TMPMR)...................................................................321
10.3.6 Timer M function control register (TMFCR)............................................................................322
10.3.7 Timer M output master enable register 1 (TMOER1).............................................................323
10.3.8 Timer M output main enable register 2 (TMOER2)................................................................324
10.3.9 Timer M output control register (TMOCR)..............................................................................325
10.3.10 The timer M digital filter function selects register i (TMDFi) (i=0, 1)........................................328
10.3.11 Timer M controls register i (TMCRi) (i=0, 1)............................................................................330
10.3.12 Timer M I/O control register Ai (TMIORAi)(i =0, 1).................................................................335
10.3.13 Timer M I/O control register Ci (TMIORCi)(i=0, 1)..................................................................337
10.3.14 Timer M status register 0 (TMSR0)........................................................................................339
10.3.15 Timer M status register 1 (TMSR1)........................................................................................345
10.3.16 Timer M interrupt enable register i (TMIERi) (i=0, 1)..............................................................351
10.3.17 The timer MPWM function outputs level control register i (TMPOCRi) (i=0, 1). .....................352
10.3.18 Timer M counter i(TMi) (i=0, 1)...............................................................................................353
10.3.19 Timer M General Purpose registers Ai, Bi, Ci, Di...................................................................355
10.3.20 Port mode registers (PMxx, PMCxx)......................................................................................364
10.4 Common things about multiple patterns......................................................................................365
10.4.1 Counting sources....................................................................................................................365
10.4.2 The buffer operation ...............................................................................................................366
10.4.3 Synchronous Operation..........................................................................................................369
10.4.4 Forced cutoff of the pulse output............................................................................................370
10.4.5 Event inputs from the Event Linkage Controller (EVENTC)...................................................372
10.4.6 Event output to the Event Linkage Controller (EVENTC)/Data Transfer Controller (DMA)...372
10.5 Operation of timer M....................................................................................................................373
10.5.1 Enter the capture function ......................................................................................................373
10.5.2 Output comparison function....................................................................................................378
10.5.3 PWM function..........................................................................................................................384
10.5.4 Reset synchronous PWM mode.............................................................................................388
10.5.5 Complementary PWM mode ..................................................................................................391
10.5.6 PWM3 mode...........................................................................................................................395
10.6 Timer M interrupt.........................................................................................................................398
10.7 Considerations when using timer M............................................................................................401
10.7.1 Read and write access to SFR...............................................................................................401
10.7.2 Switching modes.....................................................................................................................401
10.7.3 Counting sources....................................................................................................................402
10.7.4 Enter the capture function ......................................................................................................402