| Electronic Components Datasheet Search |
|
7630 Datasheet(PDF) 95 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7630 Datasheet(HTML) 95 Page - Renesas Technology Corp |
|
95 / 238 page ![]() APPLICATION 2.3 Timers 2-29 7630 Group User’s Manual Control procedure : Figure 2.3.14 shows a control procedure. Fig. 2.3.14 Control procedure [Measurement of frequency] RESET Initialization SEI TXM [Address: 001E16] ICONB [Address: 000616], bit 2 CLI CPUM [Address: 000016] 00000X002 111000002 1 Timer Y interrupt processing routine CLT (Note 1) CLD (Note 2) Push registers to the stack area TXH [Address: 001B16]? Fpulse RTI ≠ 0016 = 0016 • All interrupts : Disabled • Timer X : Event counter mode (Count at falling edge of pulse input from CNTR0 pin), stop counting • Timer Y : Timer mode ( φ divided by 8 as count source), stop counting • Interrupts : Enabled Note 1: When using the Index X mode flag (T). Note 2: When using the Decimal mode flag (D). • Push the registers used in the interrupt processing routine on the stack. • Pop registers which are pushed on the stack. X : These bits are not used in this application. Please set these bits to “0” or “1” appropriately. P1D [Address: 000B16] XXX0XX002 TXL [Address: 001A16] FF16 TXH [Address: 001B16] 0016 TYM [Address: 001F16] 1X0001XX2 TYL [Address: 001C16] E716 TYH [Address: 001D16] 0316 IREQB [Address: 000316], bit 2 0 TXM [Address: 001E16], bit 7 0 TYM [Address: 001F16], bit 7 0 ICONB [Address: 000616], bit 1 0 • Set the Timer Y division ratio so that the Timer Y interrupt occurs every 2 ms. • Timer Y interrupt : Enabled • Timer X interrupt : Enabled • Set the Timer Y interrupt request bit to “0”. • Timer X : Start counting • Timer Y : Start counting D616 < TXL [Address: 001A16] < E416? Out of range In range Pop registers from the stack area 0 Fpulse 1 TXL [Address: 001A16] FF16 TXH [Address: 001B16] 0016 Processing for a result of judgment • When the count value is 256 or more, the processing is performed as out of range. • Initialize the count value • Initialize the count value • Compare the count value with the reference value • Store the comparison result in flag Fpulse. • φ = f(XIN) divided by 2 (high-speed 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 |