| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
6MPS5 Datasheet(PDF) 52 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
6MPS5 Datasheet(HTML) 52 Page - Texas Instruments |
|
52 / 101 page ![]() 51 www.national.com Timer/Counter II (TnCNT1) counts down at the rate of the se- lected clock. The TnB pin functions as the capture input. A transition received on TnB transfers the timer contents to the TnCRB register. The input pin can be configured to sense ei- ther rising or falling edges. The TnB input can be configured to preset the counter to FFFF hex upon reception of a valid capture event. In this case, the current value of the counter is transferred to the capture register and then the counter is preset to FFFF hex. The values captured in the TnCRB register at different times reflect the elapsed time between transitions on the TnA pin. The input signal on TnB must have a pulse width equal to or greater than one system clock cycle. There are two separate interrupts associated with the cap- ture timer, each with its own enable bit and pending flag. The two interrupt events are reception of a transition on TnB and underflow of the TnCNT2 counter. The enable bits for these events are TnBIEN and TnDIEN, respectively. Neither Timer/Counter I (TnCNT1) nor Timer/Counter II (TnCNT2) can be configured to operate as an external event counter or to operate in the pulse accumulate mode because the TnB input is used as a capture input. Attempting to select one of these configurations will cause one or both counters to stop. In this mode, Timer/Counter II must be enabled at all times. 14.3 TIMER INTERRUPTS Each Multi-Function Timer unit has four interrupt sources, designated A, B, C, and D. Interrupt sources A, B, and C are mapped into a single system interrupt called Timer Interrupt I, while interrupt source D is mapped into a system interrupt called Timer Interrupt II. Each of the four interrupt sources has its own enable bit and pending flag. The enable flags are named TnAIEN, TnBIEN, TnCIEN, and TnDIEN. The pend- ing flags are named TnAPND, TnBPND, TnCPND, and TnD- PND. For Multi-Function Timer unit MFT1, Timer Interrupts I and II are system interrupts T1A and T1B (IRQ13 and IRQ12), re- spectively. For Multi-Function Timer unit MFT2, Timer Inter- rupts I and II are system interrupts T2A and T2B (IRQ11 and IRQ10), respectively. Table15 shows the events that trigger interrupts A, B, C, and D in each of the four operating modes. Note that some inter- rupt sources are not used in some operating modes, as indi- cated by the notation “N/A” (Not Applicable) in the table. 14.4 TIMER I/O FUNCTIONS Each Multi-Function Timer unit uses two I/O pins, called T1A and T1B (for Timer MFT1) or T2A and T2B (for Timer MFT2). The function of each pin depends on the timer operating mode and the TnAEN and TnBEN enable bits. Table16 shows the functions of the pins in each operating mode, and for each combination of enable bit settings. When pin TnA is configured to operate as a PWM output (TnAEN = 1), the state of the pin is toggled on each under- Figure 16. Mode 4: Input Capture Plus Timer Block Diagram Reload A Timer/Counter I Capture B Timer I Clock TnA TnAIEN TnAPND TnCNT1 TnCRA TnCRB Timer Interrupt I TnATEN Timer/Counter II TnCNT2 Timer II Clock Underflow TnDIEN TnDPND Timer Interrupt II TnBIEN TnBPND Timer Interrupt I TnB TnBEN Preset CR16MNS5, CR16MFS5, and CR16MPS5 are Obsolete Devices |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |