WBZ451 TC0 registers The 29 registers of TC0 (Basic Timer Counter), from 0x40001400, with their reset value and every field. The WBZ451 has 1990 registers in 54 peripherals, one page each.
TC0 Basic Timer Counter CTRLAControl A
Address 0x40001400
Reset 0x00000000
Access read/write
Size 32-bit 15 fields
Field Bits What it does CAPTMODE1 28:27 Capture mode Channel 10 Default capture1 Minimum capture2 Maximum capture CAPTMODE0 25:24 Capture Mode Channel 00 Default capture1 Minimum capture2 Maximum capture COPEN1 21 Capture On Pin 1 Enable COPEN0 20 Capture On Pin 0 Enable CAPTEN1 17 Capture Channel 1 Enable CAPTEN0 16 Capture Channel 0 Enable DMAOS 15 DMA One Shot ALOCK 11 Auto Lock PRESCALER 10:8 Prescaler0 Prescaler: GCLK_TC1 Prescaler: GCLK_TC/22 Prescaler: GCLK_TC/43 Prescaler: GCLK_TC/84 Prescaler: GCLK_TC/165 Prescaler: GCLK_TC/646 Prescaler: GCLK_TC/2567 Prescaler: GCLK_TC/1024 ONDEMAND 7 Clock On Demand RUNSTDBY 6 Run during Standby PRESCSYNC 5:4 Prescaler and Counter Synchronization0 Reload or reset the counter on next generic clock1 Reload or reset the counter on next prescaler clock2 Reload or reset the counter on next generic clock and reset the prescaler counter MODE 3:2 Timer Counter Mode0 Counter in 16-bit mode1 Counter in 8-bit mode2 Counter in 32-bit mode ENABLE 1 Enable SWRST 0 Software Reset
CTRLBCLRControl B Clear
Address 0x40001404
Reset 0x00
Access read/write 7 CMD2 6 CMD1 5 CMD0 4 – 3 – 2 ONESHOT 1 LUPD 0 DIR 4 fields
Field Bits What it does CMD 7:5 Command0 No action1 Force a start, restart or retrigger2 Force a stop3 Force update of double-buffered register4 Force a read synchronization of COUNT5 One-shot DMA trigger ONESHOT 2 One-Shot on Counter LUPD 1 Lock Update DIR 0 Counter Direction
CTRLBSETControl B Set
Address 0x40001405
Reset 0x00
Access read/write 7 CMD2 6 CMD1 5 CMD0 4 – 3 – 2 ONESHOT 1 LUPD 0 DIR 4 fields
Field Bits What it does CMD 7:5 Command0 No action1 Force a start, restart or retrigger2 Force a stop3 Force update of double-buffered register4 Force a read synchronization of COUNT5 One-shot DMA trigger ONESHOT 2 One-Shot on Counter LUPD 1 Lock Update DIR 0 Counter Direction
EVCTRLEvent Control
Address 0x40001406
Reset 0x0000
Access read/write
Size 16-bit 6 fields
Field Bits What it does MCEO1 13 MC Event Output Enable 1 MCEO0 12 MC Event Output Enable 0 OVFEO 8 Event Output Enable TCEI 5 TC Event Enable TCINV 4 TC Event Input Polarity EVACT 2:0 Event Action0 Event action disabled1 Start, restart or retrigger TC on event2 Count on event3 Start TC on event4 Time stamp capture5 Period catured in CC0, pulse width in CC16 Period catured in CC1, pulse width in CC07 Pulse width capture
INTENCLRInterrupt Enable Clear
Address 0x40001408
Reset 0x00
Access read/write 7 – 6 – 5 MC1 4 MC0 3 – 2 – 1 ERR 0 OVF 4 fields
Field Bits What it does MC1 5 MC Interrupt Disable 1 MC0 4 MC Interrupt Disable 0 ERR 1 ERR Interrupt Disable OVF 0 OVF Interrupt Disable
INTENSETInterrupt Enable Set
Address 0x40001409
Reset 0x00
Access read/write 7 – 6 – 5 MC1 4 MC0 3 – 2 – 1 ERR 0 OVF 4 fields
Field Bits What it does MC1 5 MC Interrupt Enable 1 MC0 4 MC Interrupt Enable 0 ERR 1 ERR Interrupt Enable OVF 0 OVF Interrupt Enable
INTFLAGInterrupt Flag Status and Clear
Address 0x4000140A
Reset 0x00
Access read/write 7 – 6 – 5 MC1 4 MC0 3 – 2 – 1 ERR 0 OVF 4 fields
Field Bits What it does MC1 5 MC Interrupt Flag 1 MC0 4 MC Interrupt Flag 0 ERR 1 ERR Interrupt Flag OVF 0 OVF Interrupt Flag
STATUSStatus
Address 0x4000140B
Reset 0x01
Access read/write 7 – 6 – 5 CCBUFV1 4 CCBUFV0 3 PERBUFV 2 – 1 SLAVE 0 STOP 5 fields
Field Bits What it does CCBUFV1 5 Compare channel buffer 1 valid CCBUFV0 4 Compare channel buffer 0 valid PERBUFV 3 Synchronization Busy Status SLAVE 1 Slave Status Flag STOP 0 Stop Status Flag
WAVEWaveform Generation Control
Address 0x4000140C
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 WAVEGEN1 0 WAVEGEN0 1 field
Field Bits What it does WAVEGEN 1:0 Waveform Generation Mode0 Normal frequency1 Match frequency2 Normal PWM3 Match PWM
DRVCTRLControl C
Address 0x4000140D
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 INVEN1 0 INVEN0 2 fields
Field Bits What it does INVEN1 1 Output Waveform Invert Enable 1 INVEN0 0 Output Waveform Invert Enable 0
DBGCTRLDebug Control
Address 0x4000140F
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 DBGRUN 1 field
Field Bits What it does DBGRUN 0 Run During Debug
SYNCBUSYSynchronization Status
Address 0x40001410
Reset 0x00000000
Access read only
Size 32-bit 7 fields
Field Bits What it does CC1 7 Compare Channel 1 CC0 6 Compare Channel 0 COUNT 4 Counter STATUS 3 STATUS CTRLB 2 CTRLB ENABLE 1 enable SWRST 0 swrst
COUNT16.COUNTCOUNT16 Count
Address 0x40001414
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does COUNT 15:0 Counter Value
COUNT32.COUNTCOUNT32 Count
Address 0x40001414
Reset 0x00000000
Access read/write
Size 32-bit 1 field
Field Bits What it does COUNT 31:0 Counter Value
COUNT8.COUNTCOUNT8 Count
Address 0x40001414
Reset 0x00
Access read/write 7 COUNT7 6 COUNT6 5 COUNT5 4 COUNT4 3 COUNT3 2 COUNT2 1 COUNT1 0 COUNT0 1 field
Field Bits What it does COUNT 7:0 Counter Value
COUNT8.PERCOUNT8 Period
Address 0x4000141B
Reset 0xFF
Access read/write 7 PER7 6 PER6 5 PER5 4 PER4 3 PER3 2 PER2 1 PER1 0 PER0 1 field
Field Bits What it does PER 7:0 Period Value
COUNT16.CC0COUNT16 Compare and Capture
Address 0x4000141C
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does CC 15:0 Counter/Compare Value
COUNT32.CC0COUNT32 Compare and Capture
Address 0x4000141C
Reset 0x00000000
Access read/write
Size 32-bit 1 field
Field Bits What it does CC 31:0 Counter/Compare Value
COUNT8.CC0COUNT8 Compare and Capture
Address 0x4000141C
Reset 0x00
Access read/write 7 CC7 6 CC6 5 CC5 4 CC4 3 CC3 2 CC2 1 CC1 0 CC0 1 field
Field Bits What it does CC 7:0 Counter/Compare Value
COUNT8.CC1COUNT8 Compare and Capture
Address 0x4000141D
Reset 0x00
Access read/write 7 CC7 6 CC6 5 CC5 4 CC4 3 CC3 2 CC2 1 CC1 0 CC0 1 field
Field Bits What it does CC 7:0 Counter/Compare Value
COUNT16.CC1COUNT16 Compare and Capture
Address 0x4000141E
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does CC 15:0 Counter/Compare Value
COUNT32.CC1COUNT32 Compare and Capture
Address 0x40001420
Reset 0x00000000
Access read/write
Size 32-bit 1 field
Field Bits What it does CC 31:0 Counter/Compare Value
COUNT8.PERBUFCOUNT8 Period Buffer
Address 0x4000142F
Reset 0xFF
Access read/write 7 PERBUF7 6 PERBUF6 5 PERBUF5 4 PERBUF4 3 PERBUF3 2 PERBUF2 1 PERBUF1 0 PERBUF0 1 field
Field Bits What it does PERBUF 7:0 Period Buffer Value
COUNT16.CCBUF0COUNT16 Compare and Capture Buffer
Address 0x40001430
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does CCBUF 15:0 Counter/Compare Buffer Value
COUNT32.CCBUF0COUNT32 Compare and Capture Buffer
Address 0x40001430
Reset 0x00000000
Access read/write
Size 32-bit 1 field
Field Bits What it does CCBUF 31:0 Counter/Compare Buffer Value
COUNT8.CCBUF0COUNT8 Compare and Capture Buffer
Address 0x40001430
Reset 0x00
Access read/write 7 CCBUF7 6 CCBUF6 5 CCBUF5 4 CCBUF4 3 CCBUF3 2 CCBUF2 1 CCBUF1 0 CCBUF0 1 field
Field Bits What it does CCBUF 7:0 Counter/Compare Buffer Value
COUNT8.CCBUF1COUNT8 Compare and Capture Buffer
Address 0x40001431
Reset 0x00
Access read/write 7 CCBUF7 6 CCBUF6 5 CCBUF5 4 CCBUF4 3 CCBUF3 2 CCBUF2 1 CCBUF1 0 CCBUF0 1 field
Field Bits What it does CCBUF 7:0 Counter/Compare Buffer Value
COUNT16.CCBUF1COUNT16 Compare and Capture Buffer
Address 0x40001432
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does CCBUF 15:0 Counter/Compare Buffer Value
COUNT32.CCBUF1COUNT32 Compare and Capture Buffer
Address 0x40001434
Reset 0x00000000
Access read/write
Size 32-bit 1 field
Field Bits What it does CCBUF 31:0 Counter/Compare Buffer Value