| Electronic Components Datasheet Search |
|
PC87570 Datasheet(PDF) 113 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
PC87570 Datasheet(HTML) 113 Page - National Semiconductor (TI) |
|
113 / 168 page ![]() Multi-Function 16-Bit Timer (MFT16) 113 www.national.com 14.4.2 Timer Interrupts The MFT16 contains a total of four interrupt sources which are mapped to two different system interrupts. All sources have a pending flag associated with them, and can be en- abled or disabled under software control. The pending flags are TXPND, where n is the module and X is a letter from A to D. An interrupt enable flag, TXIEN, is associated with each interrupt pending flag. The interrupt source A, B and C can generate a timer interrupt I, while the interrupt source D can generate a timer interrupt II. Note that not all interrupt sources are available in all modes. Table 14-2 shows which events can trigger an interrupt in which mode of operation: 14.4.3 Timer I/O Functions There are two I/O pins associated with each MFT, TA and TB. The functionality of TA and TB depends on the mode of operation, and the value of the TAEN and TBEN bits. Table 14-3 shows the function of TA and TB versus the selected mode of operation. Note that if TA functions as a PWM out- put, the initial and present value of TA is defined by TAOUT. For example, if you want to start with TA high, TAOUT must be set (1) prior to enabling the timer clock. Table 14-2. MFT16 Interrupts Sys. Int. Interrupt Pending Flag Mode 1 Mode 2 Mode 3 Mode 4 PWM and Counter Dual Input Capture Dual Independent Timer Input Capture and Timer Timer Int. I TAPND TCNT1 reload from TCRA Input capture on TA transition TCNT1 reload from TCRA TCNT1 reload from TCRA TBPND TCNT1 reload from TCRB Input Capture on TB transition N/A Input Capture on TB transition TCPND N/A TCNT1 underflow N/A N/A Timer Int. II TDPND TCNT2 underflow TCNT2 underflow TCNT2 reload from TCRB TCNT2 underflow Table 14-3. MFT16 I/O Functions I/O TAEN TBEN Mode 1 Mode 2 Mode 3 Mode 4 PWM and Counter Dual Input Capture Dual Independent Timer Input Capture and Timer TA TAEN=0 TBEN=X No Output Capture TCNT1 into TCRA No Output toggle No Output toggle TAEN=1 TBEN=X Toggle Output on un- derflow of TCNT1 Capture TCNT1 into TCRA and preset TCNT1 Toggle Output on un- derflow of TCNT1 Toggle Output on un- derflow of TCNT1 TB TAEN=X TBEN=0 Ext. Event or Pulse Accumulate Input Capture TCNT1 into TCRB Ext. Event or Pulse Accumulate Input Capture TCNT2 into TCRB TAEN=X TBEN=1 Ext. Event or Pulse Accumulate Input Capture TCNT1 into TCRB and preset TCNT1 Ext. Event or Pulse Accumulate Input Capture TCNT2 into TCRB and preset TCNT2 |
|
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 |