| 전자부품 데이터시트 검색엔진 |
|
7721 데이터시트(PDF) 188 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7721 데이터시트(HTML) 188 Page - Renesas Technology Corp |
|
188 / 577 page ![]() TIMER B 7721 Group User’s Manual 9–21 9.5 Pulse period/Pulse width measurement mode 9.5.1 Setting for pulse period/pulse width measurement mode Figure 9.5.2 shows an initial setting example for registers relevant to the pulse period/pulse width measurement mode. Note that when using interrupts, set up to enable the interrupts. For details, refer to “CHAPTER 7. INTERRUPTS.” Fig. 9.5.2 Initial setting example for registers relevant to pulse period/pulse width measurement mode Count starts b7 b0 Measurement mode select bits 10 Selecting pulse period/pulse width measurement mode and each function Timer Bj mode register (i = 0, 1) (Addresses 5B16, 5C16) Setting count start bit to “1” b7 b0 Count start register (Address 4016) Timer B0 count start bit Timer B1 count start bit b3 b2 Count source select bits b7 b6 Timer Bj overflow flag (Note) 0: No overflow 1: Overflowed Setting port P5 direction register b7 b0 Port P5 direction register (Address D16) Clear the corresponding bit to “0.” TB0IN pin TB1IN pin 0 0 : Pulse period measurement (Interval between falling edges of measurement pulse) 0 1 : Pulse period measurement (Interval between rising edges of measurement pulse) 1 0 : Pulse width measurement 1 1 : Do not select. 0 0 : f2 0 1 : f16 1 0 : f64 1 1 : f512 Note: The timer Bj overflow flag is a read-only bit. This bit is undefined after reset. When a value is written to the timer Bj mode register with the count start bit = “1,” this bit is cleared to “0” at the next count timing of the count source. Setting interrupt priority level b7 b0 Timer Bj interrupt control register (j = 0, 1) (Addresses 7A16, 7B16) Interrupt priority level select bits When using interrupts, set these bits to one of levels 1 to 7. When disabling interrupts, set these bits to level 0. Selection of pulse period/pulse width measurement mode |
|
링크 URL |
| 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 |