| Electronic Components Datasheet Search |
|
R5F3640MNFB Datasheet(PDF) 158 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R5F3640MNFB Datasheet(HTML) 158 Page - Renesas Technology Corp |
|
158 / 398 page ![]() REJ09B0392-0064 Rev.0.64 Oct 12, 2007 Page 137 of 373 Under development Preliminary Specification Specification in this preliminary version is subject to change. M16C/64 Group 15. Timers 15.1 Timer A Figure 15.4 shows a Timer A Block Diagram. Figures 15.5 to 15.9 show registers related to Timer A. Timer A supports the following four modes. Except in event counter mode, Timers A0 to A4 all have the same function. Use bits TMOD1 to TMOD0 in the TAiMR register (i = 0 to 4) to select the desired mode. • Timer Mode The timer counts an internal count source. • Event Counter Mode The timer counts pulses from an external device or overflows and underflows of other timers. • One-shot Timer Mode The timer outputs a pulse only once before it reaches the minimum count 0000h. • Pulse Width Modulation (PWM) Mode The timer outputs pulses in a given width successively. Figure 15.4 Timer A Block Diagram Increment / decrement Reload Register ·Timer (gate function): TMOD1 to TMOD0 = 00, MR2 = 1 ·Timer: TMOD1 to TMOD0 = 00, MR2 = 0 ·One-shot timer: TMOD1 to TMOD0 = 10 ·Pulse width modulation: TMOD1 to TMOD0 = 11 TAiIN TB2 overflow (1) Count source select TAj overflow (1) TAiS MRO Toggle Flip Flop TAiOUT Decrement TAiUD TAk overflow (1) Polarity Select NOTES: 1. Overflow or underflow 01 TAiTGH to TAiTGL MR2 0 1 TMOD1 to TMOD0 00 10 11 01 TCK1 to TCK0, TMOD1 to TMOD0, MR2 to MR1 : bits in the TAiMR register TAiTGH to TAiTGL : bits in the ONSF register when i=0, bits in the TRGSR register when i = 1 to 4 TAiS : bits in the TABSR register TAiUD : bits in the UDF register TCS0 to TCS7 : bits in the registers TACS0 to TACS2 POFSi : bits in the TAPOFS register ·Event counter: TMOD1 to TMOD0 = 01 00 10 11 TMOD1 to TMOD0, MR2 To external trigger circuit Data Bus 0 1 POFSi TCK1 to TCK0 00 01 10 11 000 001 010 110 or TCS6 to TCS4 TCS2 to TCS0 011 101 TCS3 or TCS7 Always decrement except in event counter mode 1 0 i = 0 to 4 j = i - 1, however, j = 4 if i = 0 k = i + 1, however, k = 0 if i = 4 Tai TAj TAk Timer A0 Timer A4 Timer A1 Timer A1 Timer A0 Timer A2 Timer A2 Timer A1 Timer A3 Timer A3 Timer A2 Timer A4 Timer A4 Timer A3 Timer A0 fC32 fOCO-S f64TIMAB f32TIMAB f8TIMAB f1TIMAB or f2TIMAB Counter |
|
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 |