| Electronic Components Datasheet Search |
|
7702 Datasheet(PDF) 152 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7702 Datasheet(HTML) 152 Page - Renesas Technology Corp |
|
152 / 217 page ![]() TIMER B 6–16 7702/7703 Group User’s Manual 6.4 Event counter mode 6.4.1 Setting for event counter mode Figure 6.4.2 shows an initial setting example for registers relevant to the event counter mode. Note that when using interrupts, set up to enable the interrupts. For details, refer to section “Chapter 4. INTERRUPTS.” Fig. 6.4.2 Initial setting example for registers relevant to event counter mode Note: The counter divides the count source by n + 1. Setting divide ratio b7 b0 Can be set to “000016” to “FFFF16” (n). (b15) (b8) b7 b0 Timer B0 register (Addresses 5116, 5016) Timer B1 register (Addresses 5316, 5216) Timer B2 register (Addresses 5516, 5416) Count starts b7 b0 0 0 : Counts at falling of external signal. 0 1 : Counts at rising of external signal. 1 0 : Counts at both of falling and rising of external signal. 1 1 : Not selected. 01 Selecting event counter mode and count polarity Timer Bi mode register (i = 0 to 2) (Addresses 5B16 to 5D16) Setting count start bit to “1” b7 b0 Count start register (Address 4016) Timer B0 count start bit Timer B1 count start bit Timer B2 count start bit b3 b2 Setting interrupt priority level b7 b0 Timer Bi interrupt control register (i = 0 to 2) (Addresses 7A16 to 7C16) Interrupt priority level select bits When using interrupts, set these bits to level 1–7. When disabling interrupts, set these bits to level 0. Setting port P6 direction register b7 b0 Port P6 direction register (Address 1016) Clear the corresponding bit to “0.” TB0IN pin TB1IN pin TB2IN pin ! !: It may be either “0” or “1.” Selection of event counter mode Count polarity select bits ! ! |
|
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 |