| 数据搜索系统,热门电子元器件搜索 |
|
R8C/2G 数据表(PDF) 165 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C/2G 数据表(HTML) 165 Page - Renesas Technology Corp |
|
165 / 344 page ![]() R8C/2G Group 17. Timers Rev.1.00 Apr 04, 2008 Page 145 of 318 REJ09B0387-0100 17.1 Timer RA Timer RA is an 8-bit timer with an 8-bit prescaler. The prescaler and timer each consist of a reload register and counter. The reload register and counter are allocated at the same address, and can be accessed when accessing registers TRAPRE and TRA (refer to Tables 17.2 to 17.6 the Specifications of Each Mode). The count source for timer RA is the operating clock that regulates the timing of timer operations such as counting and reloading. Figure 17.1 shows a Block Diagram of Timer RA. Figures 17.2 and 17.3 show the registers associated with timer RA. Timer RA has the following five operating modes: • Timer mode: The timer counts the internal count source. • Pulse output mode: The timer counts the internal count source and outputs pulses of which polarity inverted by underflow of the timer. • Event counter mode: The timer counts external pulses. • Pulse width measurement mode: The timer measures the pulse width of an external pulse. • Pulse period measurement mode: The timer measures the pulse period of an external pulse. Figure 17.1 Block Diagram of Timer RA = 000b = 001b = 011b f2 f8 f1 = 010b fOCO TCK2 to TCK0 TMOD2 to TMOD0 = other than 010b Counter Reload register TRAPRE register (prescaler) Data bus Timer RA interrupt Write to TRAMR register Write 1 to TSTOP bit TCSTF, TSTOP: Bits in TRACR register TEDGSEL, TOPCR, TOENA, TIOSEL, TIPF1, TIPF0: Bits in TRAIOC register TMOD2 to TMOD0, TCK2 to TCK0, TCKCUT: Bits in TRAMR register TRAOSEL: Bit in the PINSR2 register Toggle flip-flop Q Q CLR CK INT1/TRAIO (P1_5) pin TCSTF TCKCUT TMOD2 to TMOD0 = 011b or 100b TMOD2 to TMOD0 = 010b Polarity switching Digital filter Counter Reload register TRA register (timer) TIPF1 to TIPF0 = 01b = 10b f8 f1 = 11b f32 TIOSEL = 0 TIOSEL = 1 Count control circle TMOD2 to TMOD0 = 001b TOPCR Underflow signal Measurement completion signal TIPF1 to TIPF0 = other than 000b = 00b INT1/TRAIO (P1_7) pin TEDGSEL = 1 TEDGSEL = 0 = 100b fC32 TOENA TRAO (P3_7) pin TRAOSEL = 0 TRAOSEL = 1 TRAO (P3_0) pin |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |