| Electronic Components Datasheet Search |
|
7480 Datasheet(PDF) 228 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7480 Datasheet(HTML) 228 Page - Renesas Technology Corp |
|
228 / 337 page ![]() 7480 Group and 7481 Group User's Manual 2-13 APPLICATIONS Figure 2.2.13 Communications Control Procedure Example 2.2 Timer X and Timer Y Initialize CNTR0 interrupt service routine Read value from timer X ? C ←0 C ←1 rCOUNT = 8 ? rWORK ←0016 rDATA ←rWORK Processing against error generation ROR rWORK rWORK(Internal RAM) C rCOUNT ←rCOUNT + 1 rCOUNT ←0016 RTI Y N 006416 through 00C716 (Note 3) 012C16 through018F16 (Note 4) 01F416 through 025716 (Note 5) 02BC16 through 031F16 (Note 6) Others Timer X interrupt service routine processing RTI Error-recovery processing Timer X is read out (Note 2). Set timer X mode register TXM(Address 00F616) Pulse width measurement mode RESET(Note 1) Set timer XY control register TXYCON(Address 00F816) Timer X count start 0 SEI Timer X count source: f(XIN)/8 Timer X interrupt request bit ← 0 CNTR0 interrupt request bit ← 0 Timer X interrupt enable bit ← 1 CNTR0 interrupt enable bit ← 1 CLI ×× 01 1 01 × C rDATA rWORK rCOUNT : Carry Flag : RAM for received data (1 byte) : RAM for receiving data (2 bytes) : RAM for counting data (1 byte) CNTR0 edge selection bit ← 0(HIGH width measured) b7 b0 b7 b0 b7 b0 Notes 1: After system is released from reset • Timer X stop control bit = 1 (count stopped) • CNTR0 edge selection bit = 0 (HIGH pulse width measured) • Pin P40/CNTR0: input mode 2: Read from timer X in order of high-order to low-order byte. 3: 100 to 199 (Data pulse ‘0’) 4: 300 to 399 (Data pulse ‘1’) 5: 500 to 599 (Start pulse) 6: 700 to 799 (Stop pulse) Port P40 (alternative function of CNTR0) is set to input. RTI |
|
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 |