| Electronic Components Datasheet Search |
|
R8C13 Datasheet(PDF) 87 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C13 Datasheet(HTML) 87 Page - Renesas Technology Corp |
|
87 / 224 page ![]() Rev.1.20 Jan 27, 2006 page 76 of 205 REJ09B0111-0120 R8C/13 Group 12.1.4 Pulse Width Measurement Mode In this mode, the timer measures the pulse width of an external signal fed to INT1/CNTR0 pin (See “Table 12.5 Pulse Width Measurement Mode Specifications”). Figure 12.7 shows the TXMR register in pulse width measurement mode. Figure 12.8 shows an operation example in pulse width measure- ment mode. Item Specification Count source f1, f2, f8, f32 Count operation • Down-count • Continuously counts the selected signal only when the measurement pulse is "H" level, or conversely only "L" level. • When the timer underflows, the contents in the reload register is reloaded and the count is contiuned. Count start condition Write “1” (count start) to TXS bit in TXMR register Count stop condition Write “0” (count stop) to TXS bit in TXMR register Interrupt request • When Timer X underflows [Timer X interruption] generation timing • Rising or falling of CNTR0 input (end of measurement period) [INT1 interrupt] INT1/CNTR0 pin function Measurement pulse input CNTR0 pin function Programmable I/O port Read from timer Count value can be read by reading TX register Same applies to PREX register. Write to timer Value written to TX register is written to both reload register and counter. Same applies to PREX register. Select function _____ • INT1/CNTR0 polarity switching function “H” or “L” level duration can be selected with R0EDG bit as the input pulse measurement Table 12.5 Pulse Width Measurement Mode Specifications Figure 12.7 TXMR Register in Pulse Width Measurement Mode 12.1 Timer (Timer X) Timer X mode register Symbol Address After reset TXMR 008B16 0016 Bit name Function Bit symbol RW b7 b6 b5 b4 b3 b2 b1 b0 b1 b0 TXMOD2 TXS TXMOD1 R0EDG TXMOD0 TXOCNT Operation mode select bit 0, 1 Timer X count start flag 0 : Stops counting 1 : Starts counting 0 1 Set to "0" in pulse width measurement mode 0 TXEDG TXUND RW RW RW RW RW RW RW RW INT1/CNTR0 polarity switching bit(1) NOTES: 1. IThe IR bit in the INT1IC register may be set to “1” (interrupt requested) when the R0EDG bit is rewritten. Refer to the paragraph 19.2.5 “Changing Interrupt Factor” in the Usage Notes Reference Book. 00 1 [CNTR0] 0 : Measures “H” level width 1 : Measures “L” level width [INT1] 0 : Rising edge 1 : Falling edge 1 1 : Pulse width measurement mode Set to "0" in pulse width measurement mode Set to "0" in pulse width measurement mode Set to "0" in pulse width measurement mode |
|
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 |