| 数据搜索系统,热门电子元器件搜索 |
|
M16C/1N 数据表(PDF) 85 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
M16C/1N 数据表(HTML) 85 Page - Renesas Technology Corp |
|
85 / 238 page ![]() Rev.1.00 Oct 20, 2004 page 73 of 222 M16C/1N Group 12. Timers REJ09B0007-0100Z Clock source selection Timer Pulse period measurement Pulse output f1 f8 f32 Event counter fC32 Toggle flip-flop Polarity switching CNTR0 Q Q T CNTR0 interrupt request bit P30/TXOUT select bit TXOUT CNTR0 polarity switching bit "1" "0" R Pulse width measurement Pulse output Counter (8) Reload register (8) Counter (8) Reload register (8) Timer X count start flag Prescaler X (address 008C16) Timer X (address 008D16) Pulse output mode Timer X latch write Timer X interrupt request bit Peripheral data bus fPX Note 1: In the pulse output mode, the direction register of port P17 should be set to input. Note 2: This bit should rewrite with inhibiting the CNTR0 interrupt. To use all interrupt, enable an interrupt after the CNTR0 interrupt request bit is cleared with the MOV instruction. Note 3: Nothing is assigned to the pod probe for M16C/1N group (M301N2T-PRB). b7 b6 b5 b4 b3 b2 b1 b0 Timer X mode register TXMOD0 TXMOD1 Operation mode select bit 0, 1 (Note 2) R0EDG CNTR0 polarity switching bit (Note 2) TXS Timer X count start flag 0 : Stops counting 1 : Starts counting 0 : Rising edge 1 : Falling edge TXOCNT P30/TXOUT select bit Function varies with each operation mode TXMOD2 Operation mode select bit 2 0 : Except in pulse period measurement mode 1 : Pulse period measurement mode TXEDG Effectual edge reception flag (Note 3) Function varies with each operation mode TXUND Timer X under flow flag (Note 3) Function varies with each operation mode Symbol TXMR Address 008B16 When reset 0016 RW RW RW RW RW RW RW RW RW Function Bit name Bit symbol b1 b0 0 0 : Timer mode or pulse period measurement mode 0 1 : Pulse output mode (Note 1) 1 0 : Event counter mode 1 1 : Pulse width measurement mode 12.2 Timer X Timer X is an 8-bit timer with an 8-bit prescaler. Timer X has the five operation modes listed as follows: • Timer mode: The timer counts an internal count source (clock source). • Pulse output mode: The timer counts an internal count source and outputs the pulses whose polarity is inverted at the timer the timer underflows. • Event counter mode: The timer counts pulses from an external source. • Pulse width measurement mode: The timer measures an external pulse's pulse width. • Pulse period measurement mode: The timer measures an external pulse's period. Figure 12.3 shows the block diagram of Timer X. Figures 12.4 and 12.5 shows the Timer X-related registers. Figure 12.3 Block diagram of Timer X Figure 12.4 Timer X-related registers (1) |
|
链接网址 |
| 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 |