AUX_TIMER01

Instance: AUX_TIMER01
Component: AUX_TIMER01
Base address: 0x400C7000


AUX Timer 0 and AUX Timer 1 (AUX_TIMER01) are two 16-bit timers capable of generating one event each:
- AUX_EVCTL:EVSTAT3.AUX_TIMER0_EV.
- AUX_EVCTL:EVSTAT3.AUX_TIMER1_EV.

The events are described in T0TARGET and T1TARGET. Subscribers to the AUX event bus can use these events to sequence and trigger actions.

AUX_SYSIF:PEROPRATE.TIMER01_OP_RATE sets the peripheral clock frequency used by the prescaler, timer, and event logic to SCE or AUX bus rate. To use AUX_TIMER01:
- AUX_SCE must set AUX_SYSIF:PEROPRATE.TIMER01_OP_RATE to SCE_RATE.
- System CPU must set AUX_SYSIF:PEROPRATE.TIMER01_OP_RATE to BUS_RATE.
- The timers must only subscribe to events updated at the peripheral clock frequency or lower.

Unexpected execution behavior can result if software does not obey these rules.

TOP:AUX_TIMER01 Register Summary

Register Name

Type

Register Width (Bits)

Register Reset

Address Offset

Physical Address

T0CFG

RW

32

0x0000 0000

0x0000 0000

0x400C 7000

T0CTL

RW

32

0x0000 0000

0x0000 0004

0x400C 7004

T0TARGET

RW

32

0x0000 0000

0x0000 0008

0x400C 7008

T0CNTR

RO

32

0x0000 0000

0x0000 000C

0x400C 700C

T1CFG

RW

32

0x0000 0000

0x0000 0010

0x400C 7010

T1CTL

RW

32

0x0000 0000

0x0000 0014

0x400C 7014

T1TARGET

RW

32

0x0000 0000

0x0000 0018

0x400C 7018

T1CNTR

RO

32

0x0000 0000

0x0000 001C

0x400C 701C

TOP:AUX_TIMER01 Register Descriptions

TOP:AUX_TIMER01:T0CFG

Address Offset 0x0000 0000
Physical Address 0x400C 7000 Instance 0x400C 7000
Description Timer 0 Configuration
Type RW
Bits Field Name Description Type Reset
31:15 RESERVED15 Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. RO 0b0 0000 0000 0000 0000
14 TICK_SRC_POL Tick source polarity for Timer 0.
Value ENUM Name Description
0x0 RISE Count on rising edges of TICK_SRC.
0x1 FALL Count on falling edges of TICK_SRC.
RW 0
13:8 TICK_SRC Select Timer 0 tick source from the synchronous event bus.
Value ENUM Name Description
0x0 AUXIO0 AUX_EVCTL:EVSTAT0.AUXIO0
0x1 AUXIO1 AUX_EVCTL:EVSTAT0.AUXIO1
0x2 AUXIO2 AUX_EVCTL:EVSTAT0.AUXIO2
0x3 AUXIO3 AUX_EVCTL:EVSTAT0.AUXIO3
0x4 AUXIO4 AUX_EVCTL:EVSTAT0.AUXIO4
0x5 AUXIO5 AUX_EVCTL:EVSTAT0.AUXIO5
0x6 AUXIO6 AUX_EVCTL:EVSTAT0.AUXIO6
0x7 AUXIO7 AUX_EVCTL:EVSTAT0.AUXIO7
0x8 AUXIO8 AUX_EVCTL:EVSTAT0.AUXIO8
0x9 AUXIO9 AUX_EVCTL:EVSTAT0.AUXIO9
0xA AUXIO10 AUX_EVCTL:EVSTAT0.AUXIO10
0xB AUXIO11 AUX_EVCTL:EVSTAT0.AUXIO11
0xC AUXIO12 AUX_EVCTL:EVSTAT0.AUXIO12
0xD AUXIO13 AUX_EVCTL:EVSTAT0.AUXIO13
0xE AUXIO14 AUX_EVCTL:EVSTAT0.AUXIO14
0xF AUXIO15 AUX_EVCTL:EVSTAT0.AUXIO15
0x10 AUXIO16 AUX_EVCTL:EVSTAT1.AUXIO16
0x11 AUXIO17 AUX_EVCTL:EVSTAT1.AUXIO17
0x12 AUXIO18 AUX_EVCTL:EVSTAT1.AUXIO18
0x13 AUXIO19 AUX_EVCTL:EVSTAT1.AUXIO19
0x14 AUXIO20 AUX_EVCTL:EVSTAT1.AUXIO20
0x15 AUXIO21 AUX_EVCTL:EVSTAT1.AUXIO21
0x16 AUXIO22 AUX_EVCTL:EVSTAT1.AUXIO22
0x17 AUXIO23 AUX_EVCTL:EVSTAT1.AUXIO23
0x18 AUXIO24 AUX_EVCTL:EVSTAT1.AUXIO24
0x19 AUXIO25 AUX_EVCTL:EVSTAT1.AUXIO25
0x1A AUXIO26 AUX_EV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AT3.AUX_TIMER2_EV2
0x33 AUX_TIMER2_EV3 AUX_EVCTL:EVSTAT3.AUX_TIMER2_EV3
0x34 AUX_TIMER2_PULSE AUX_EVCTL:EVSTAT3.AUX_TIMER2_PULSE
0x35 AUX_TIMER1_EV AUX_EVCTL:EVSTAT3.AUX_TIMER1_EV
0x36 NO_EVENT No event.
0x37 AUX_TDC_DONE AUX_EVCTL:EVSTAT3.AUX_TDC_DONE
0x38 AUX_ISRC_RESET_N AUX_EVCTL:EVSTAT3.AUX_ISRC_RESET_N
0x39 AUX_ADC_DONE AUX_EVCTL:EVSTAT3.AUX_ADC_DONE
0x3A AUX_ADC_IRQ AUX_EVCTL:EVSTAT3.AUX_ADC_IRQ
0x3B AUX_ADC_FIFO_ALMOST_FULL AUX_EVCTL:EVSTAT3.AUX_ADC_FIFO_ALMOST_FULL
0x3C AUX_ADC_FIFO_NOT_EMPTY AUX_EVCTL:EVSTAT3.AUX_ADC_FIFO_NOT_EMPTY
0x3D AUX_SMPH_AUTOTAKE_DONE AUX_EVCTL:EVSTAT3.AUX_SMPH_AUTOTAKE_DONE
0x3E AUX_DAC_HOLD_ACTIVE AUX_EVCTL:EVSTAT3.AUX_DAC_HOLD_ACTIVE
0x3F AUX_TIMER2_CLKSW_RDY AUX_EVCTL:EVSTAT3.AUX_TIMER2_CLKSWITCH_RDY
RW 0b00 0000
7:4 PRE Prescaler division ratio is 2^PRE:

0x0: Divide by 1.
0x1: Divide by 2.
0x2: Divide by 4.
...
0xF: Divide by 32,768.
RW 0x0
3:2 RESERVED2 Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. RO 0b00
1 MODE Timer 0 mode.

Configure source for Timer 0 prescaler.
Value ENUM Name Description
0x0 CLK Use clock as source for prescaler. Note that AUX_SYSIF:PEROPRATE.TIMER01_OP_RATE sets the clock frequency.
0x1 TICK Use event set by TICK_SRC as source for prescaler.
RW 0
0 RELOAD Timer 0 reload mode.
Value ENUM Name Description
0x0 MAN Manual mode.

Timer 0 stops and T0CTL.EN becomes 0 when the counter value becomes equal to or greater than T0TARGET.VALUE.
0x1 CONT Continuous mode.

Timer 0 restarts when the counter value becomes equal to or greater than ( T0TARGET.VALUE - 1).
RW 0

TOP:AUX_TIMER01:T0CTL

Address Offset 0x0000 0004
Physical Address 0x400C 7004 Instance 0x400C 7004
Description Timer 0 Control
Type RW
Bits Field Name Description Type Reset
31:1 RESERVED1 Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. RO 0b000 0000 0000 0000 0000 0000 0000 0000
0 EN Timer 0 enable.

0: Disable Timer 0.
1: Enable Timer 0.

The counter restarts from 0 when you enable Timer 0.
RW 0

TOP:AUX_TIMER01:T0TARGET

Address Offset 0x0000 0008
Physical Address 0x400C 7008 Instance 0x400C 7008
Description Timer 0 Target
Type RW
Bits Field Name Description Type Reset
31:16 RESERVED16 Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. RO 0x0000
15:0 VALUE Timer 0 target value.

Manual Reload Mode:
- Timer 0 increments until the counter value becomes equal to or greater than VALUE.
- AUX_TIMER0_EV pulses high for 1 peripheral clock period when the counter value is equal to or greater than VALUE.

Note: When VALUE is 0, Timer 0 counts to 1. AUX_TIMER0_EV pulses high for 1 peripheral clock period.

Continuous Reload Mode:
- Timer 0 increments until the counter value becomes equal to or greater than ( VALUE - 1), then restarts from 0.
- AUX_TIMER0_EV pulses high for 1 peripheral clock period when the counter value is 0, except for when you enable the timer.

Note: When VALUE is less than 2, Timer 0 counter value remains 0. AUX_TIMER0_EV goes high and remains high 1 peripheral clock period after you enable the timer.


It is allowed to update the VALUE while the timer runs.
RW 0x0000

TOP:AUX_TIMER01:T0CNTR

Address Offset 0x0000 000C
Physical Address 0x400C 700C Instance 0x400C 700C
Description Timer 0 Counter
Type RO
Bits Field Name Description Type Reset
31:16 RESERVED16 Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. RO 0x0000
15:0 VALUE Timer 0 counter value. RO 0x0000

TOP:AUX_TIMER01:T1CFG

Address Offset 0x0000 0010
Physical Address 0x400C 7010 Instance 0x400C 7010
Description Timer 1 Configuration
Type RW
Bits Field Name Description Type Reset
31:15 RESERVED15 Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. RO 0b0 0000 0000 0000 0000
14 TICK_SRC_POL Tick source polarity for Timer 1.
Value ENUM Name Description
0x0 RISE Count on rising edges of TICK_SRC.
0x1 FALL Count on falling edges of TICK_SRC.
RW 0
13:8 TICK_SRC Select Timer 1 tick source from the synchronous event bus.
Value ENUM Name Description
0x0 AUXIO0 AUX_EVCTL:EVSTAT0.AUXIO0
0x1 AUXIO1 AUX_EVCTL:EVSTAT0.AUXIO1
0x2 AUXIO2 AUX_EVCTL:EVSTAT0.AUXIO2
0x3 AUXIO3 AUX_EVCTL:EVSTAT0.AUXIO3
0x4 AUXIO4 AUX_EVCTL:EVSTAT0.AUXIO4
0x5 AUXIO5 AUX_EVCTL:EVSTAT0.AUXIO5
0x6 AUXIO6 AUX_EVCTL:EVSTAT0.AUXIO6
0x7 AUXIO7 AUX_EVCTL:EVSTAT0.AUXIO7
0x8 AUXIO8 AUX_EVCTL:EVSTAT0.AUXIO8
0x9 AUXIO9 AUX_EVCTL:EVSTAT0.AUXIO9
0xA AUXIO10 AUX_EVCTL:EVSTAT0.AUXIO10
0xB AUXIO11 AUX_EVCTL:EVSTAT0.AUXIO11
0xC AUXIO12 AUX_EVCTL:EVSTAT0.AUXIO12
0xD AUXIO13 AUX_EVCTL:EVSTAT0.AUXIO13
0xE AUXIO14 AUX_EVCTL:EVSTAT0.AUXIO14
0xF AUXIO15 AUX_EVCTL:EVSTAT0.AUXIO15
0x10 AUXIO16 AUX_EVCTL:EVSTAT1.AUXIO16
0x11 AUXIO17 AUX_EVCTL:EVSTAT1.AUXIO17
0x12 AUXIO18 AUX_EVCTL:EVSTAT1.AUXIO18
0x13 AUXIO19 AUX_EVCTL:EVSTAT1.AUXIO19
0x14 AUXIO20 AUX_EVCTL:E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
0x2E AUX_COMPA AUX_EVCTL:EVSTAT2.AUX_COMPA
0x2F AUX_COMPB AUX_EVCTL:EVSTAT2.AUX_COMPB
0x30 AUX_TIMER2_EV0 AUX_EVCTL:EVSTAT3.AUX_TIMER2_EV0
0x31 AUX_TIMER2_EV1 AUX_EVCTL:EVSTAT3.AUX_TIMER2_EV1
0x32 AUX_TIMER2_EV2 AUX_EVCTL:EVSTAT3.AUX_TIMER2_EV2
0x33 AUX_TIMER2_EV3 AUX_EVCTL:EVSTAT3.AUX_TIMER2_EV3
0x34 AUX_TIMER2_PULSE AUX_EVCTL:EVSTAT3.AUX_TIMER2_PULSE
0x35 NO_EVENT No event.
0x36 AUX_TIMER0_EV AUX_EVCTL:EVSTAT3.AUX_TIMER0_EV
0x37 AUX_TDC_DONE AUX_EVCTL:EVSTAT3.AUX_TDC_DONE
0x38 AUX_ISRC_RESET_N AUX_EVCTL:EVSTAT3.AUX_ISRC_RESET_N
0x39 AUX_ADC_DONE AUX_EVCTL:EVSTAT3.AUX_ADC_DONE
0x3A AUX_ADC_IRQ AUX_EVCTL:EVSTAT3.AUX_ADC_IRQ
0x3B AUX_ADC_FIFO_ALMOST_FULL AUX_EVCTL:EVSTAT3.AUX_ADC_FIFO_ALMOST_FULL
0x3C AUX_ADC_FIFO_NOT_EMPTY AUX_EVCTL:EVSTAT3.AUX_ADC_FIFO_NOT_EMPTY
0x3D AUX_SMPH_AUTOTAKE_DONE AUX_EVCTL:EVSTAT3.AUX_SMPH_AUTOTAKE_DONE
0x3E AUX_DAC_HOLD_ACTIVE AUX_EVCTL:EVSTAT3.AUX_DAC_HOLD_ACTIVE
0x3F AUX_TIMER2_CLKSW_RDY AUX_EVCTL:EVSTAT3.AUX_TIMER2_CLKSWITCH_RDY
RW 0b00 0000
7:4 PRE Prescaler division ratio is 2^PRE:

0x0: Divide by 1.
0x1: Divide by 2.
0x2: Divide by 4.
...
0xF: Divide by 32,768.
RW 0x0
3:2 RESERVED2 Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. RO 0b00
1 MODE Timer 1 mode.

Configure source for Timer 1 prescaler.
Value ENUM Name Description
0x0 CLK Use clock as source for prescaler. Note that AUX_SYSIF:PEROPRATE.TIMER01_OP_RATE sets the clock frequency.
0x1 TICK Use event set by TICK_SRC as source for prescaler.
RW 0
0 RELOAD Timer 1 reload mode.
Value ENUM Name Description
0x0 MAN Manual mode.

Timer 1 stops and T1CTL.EN becomes 0 when the counter value becomes equal to or greater than T1TARGET.VALUE.
0x1 CONT Continuous mode.

Timer 1 restarts when the counter value becomes equal to or greater than ( T1TARGET.VALUE - 1).
RW 0

TOP:AUX_TIMER01:T1CTL

Address Offset 0x0000 0014
Physical Address 0x400C 7014 Instance 0x400C 7014
Description Timer 1 Control
Type RW
Bits Field Name Description Type Reset
31:1 RESERVED1 Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. RO 0b000 0000 0000 0000 0000 0000 0000 0000
0 EN Timer 1 enable.

0: Disable Timer 1.
1: Enable Timer 1.

The counter restarts from 0 when you enable Timer 1.
RW 0

TOP:AUX_TIMER01:T1TARGET

Address Offset 0x0000 0018
Physical Address 0x400C 7018 Instance 0x400C 7018
Description Timer 1 Target

Timer 1 counter target value
Type RW
Bits Field Name Description Type Reset
31:16 RESERVED16 Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. RO 0x0000
15:0 VALUE Timer 1 target value.

Manual Reload Mode:
- Timer 1 increments until the counter value becomes equal to or greater than VALUE.
- AUX_TIMER1_EV pulses high for 1 peripheral clock period when the counter value is equal to or greater than VALUE.

Note: When VALUE is 0, Timer 1 counts to 1. AUX_TIMER1_EV pulses high for 1 peripheral clock period.

Continuous Reload Mode:
- Timer 1 increments until the counter value becomes equal to or greater than ( VALUE - 1), then restarts from 0.
- AUX_TIMER1_EV pulses high for 1 peripheral clock period when the counter value is 0, except for when you enable the timer.

Note: When VALUE is less than 2, Timer 1 counter value remains 0. AUX_TIMER1_EV goes high and remains high 1 peripheral clock period after you enable the timer.


It is allowed to update the VALUE while the timer runs.
RW 0x0000

TOP:AUX_TIMER01:T1CNTR

Address Offset 0x0000 001C
Physical Address 0x400C 701C Instance 0x400C 701C
Description Timer 1 Counter
Type RO
Bits Field Name Description Type Reset
31:16 RESERVED16 Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. RO 0x0000
15:0 VALUE Timer 1 counter value. RO 0x0000