| Electronic Components Datasheet Search |
|
WM0011 Datasheet(PDF) 92 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
WM0011 Datasheet(HTML) 92 Page - Cirrus Logic |
|
92 / 233 page ![]() WM0011 Production Data w PD, Rev 4.1, August 2013 92 TMR_CTRL – TIMER CONTROL REGISTER This Timer Control register provides control of the timing function. When using the down-counter (TMR_DIR = 1), it is important to set the register bits in the sequence described in Table 48 in order to guarantee correct operation: The counter value (TMR_CUR_CNT described in Table 47) must be set to a non-zero value before asserting the timer interrupt bit (TMR_INT_ENA). If TMR_CUR_CNT = 0 at the point that TMR_INT_ENA is asserted, an interrupt event will be generated immediately as the interrupt detection logic interprets the zero value as ‘end of down-count sequence’. The correct sequence of events is summarised below in Table 48: STEP REGISTER SETTINGS DESCRIPTION Step 1 TMR_DIR = 1 Set the timer direction to ‘down’ TMR_ENA = 0 Disable the counter, and load the initial count value into TMR_CUR_CNT Step 2 TMR_INT_ENA = 1 Enable the timer interrupt. Note that, as TMR_CUR_CNT has already been set to a non-zero value in Step 1, an interrupt event will not be generated immediately. Step 3 TMR_ENA = 1 Enable the counter and start counting. Table 48 Setting the Downtimer TMR_CTRL TIMER CONTROL REGISTER Address = 0xF001_0010 (Timer 1) Address = 0xF001_0030 (Timer 2) Address = 0xF001_0050 (Timer 3) Default value = 0x0000_0000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 BITS FIELD NAME S/W ACCESS RESET VALUE FIELD DESCRIPTION 31:7 Reserved 0x000_ 0000 6 TMR_ENA RW 0x0 Timer Enable 0 = Count disabled and initial count reloaded 1 = Count enabled 5 TMR_INC RW 0x0 Timer Increment control Only valid when TMR_MODE=1. 0 = Timer increments by one count at every rising signal edge of the external trigger. 1 = Timer starts incrementing on the first rising signal edge of the external trigger. (Count rate is set by APBCLK and the TMR_PRESCALE register.) The external trigger is selected using the TMRn_EXT_SEL bit in the CCM_CONTROL register (see Table 16). 4 TMR_MODE RW 0x0 Timer Mode select 0 = Timer starts counting when TMR_ENA=1. 1 = Timer behaviour is controlled using TMR_INC. An external trigger signal is enabled as a control input to the Timer. 3 Reserved 0x0 2 TMR_1SHOT RW 0x0 Timer One-Shot Mode select 0 = Disabled (Timer automatically re-starts when the ‘end of count’ condition is reached). 1 = Enabled (Timer stops when the ‘end of count’ condition is reached). |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |