| Electronic Components Datasheet Search |
|
SEC2410 Datasheet(PDF) 81 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
SEC2410 Datasheet(HTML) 81 Page - Microchip Technology |
|
81 / 283 page ![]() 2013 - 2014 Microchip Technology Inc. DS00001587C-page 81 SEC2410/SEC4410 11.6.2 EVENT MODE Event mode is used to count events that occur external to the timer. The timer can be programmed to count the overflow output from the previous timer or an edge on the TINx pin. The direction the timer counts in Event mode is controlled by the UPDN bit in the Timer Control Register. When the timer is in Event mode, the TOUTx signal can be used to generate a periodic output pulse when the timer overflows or underflows. Figure 11-5 illustrates the pulse output behavior of the TOUTx pin in event mode when the timer underflows. The timer can be programmed using the Clock and Event Control register to respond to the following events using the EVENT bits: rising edge of TINx, falling edge of TINx, rising and falling edge of TINx, rising edge of overflow input, falling edge of the overflow input, and the rising and falling edges of the overflow input. FIGURE 11-5: TIMER PULSE OUTPUT TABLE 11-4: EVENT MODE OPERATIONAL SUMMARY Item Description Count Source • External signal input to TINx pin (effective edge can be selected by software) • Timer x-1 overflow Timer Clock Frequencies This mode supports all the programmable frequencies listed in Table 11-10, “Timer Clock Frequencies,” on page 88 Filter Clock Frequencies This mode supports all the programmable frequencies listed in Table 11-10, “Timer Clock Frequencies,” on page 88 Count Operation Up/Down Counter Reload Operation • When the timer underflows: RLOAD = 1, timer reloads from Timer Reload Reg RLOAD = 0, timer rolls over to FFFFh. • When the timer overflows: RLOAD = 1, timer reloads from Timer Reload Reg RLOAD = 0, timer rolls over to 0000h. Count Start Condition Timer Enable is set (ENABLE = 1) Count Stop Condition Timer Enable is cleared (ENABLE = 0) Interrupt Request Generation Timing When timer overflows or underflows TINx Pin Function Event Generation TOUTx Pin Function TOUT toggles each time the timer underflows/overflows (if enabled). Read From Timer Current count value can be read by reading the Timer Count Register Write to Preload Register After the firmware writes to the Timer Reload Register, asserting the RESET loads the timer with the new value programmed in the Timer Reload Register. Note: If the firmware does not assert RESET, the timer will automatically load the Timer Reload Register value when the timer underflows. Selectable Functions • The direction of the counter is selectable via the UPDN bit. • Reload timer on underflow/overflow with programmed Preload value (Basic Timer) • Reload timer with FFFFh in Free Running Mode (Free-running Timer) • Pulse Output Function The TOUTx pin changes polarity each time the timer underflows or overflows. Timer Value Timer Enable Bit Timer Clock TOUTx 0xFFFE 0x0001 0x0000 0xFFFE 0xFFFF 0x80C4 0x80C5 0x80C3 0xFFFF 0x0000 0xFFFF 0x0000 0xFFFF |
|
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 |