| Electronic Components Datasheet Search |
|
7477 Datasheet(PDF) 250 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7477 Datasheet(HTML) 250 Page - Renesas Technology Corp |
|
250 / 354 page ![]() 2-15 7470/7471/7477/7478 GROUP USER’S MANUAL APPLICATION 2.3 Timers 7470 7471 7477 7478 Fig. 2.3.4 Example of control procedure [Frequency measurement] RTI RTS Frequency measurement routine Clear the timer 2 interrupt enable bit (Timer 2 interrupt disabled) Set the Timer 12 mode register !! ! !! 1 ! 1 Timer 1 count stop Timer 2 count stop Set the Timer 12 mode register 0 ! 1 10 1 ! 1 Timer 1 count source ← CNTR0 Timer 2 count source ← Internal clock Timer 2 internal clock count source ←f(XIN)/64 Set the Edge polarity selection register ! 1 ! !!! ! ! EG (Address 00D416) CNTR0 rising edge selected Set the Timer 1 to “FF 16” Set the Timer 2 to “7C 16” Clear the timer 2 interrupt request bit Set the timer 2 interrupt enable bit (Timer 2 interrupt enabled) Set the Timer 12 mode register 0 ! 1 10 0 ! 0 Timer 1 count start Timer 2 count start Timer 2 interrupt Read timer 1 Set the Timer 12 mode register 0 ! 1 10 1 ! 1 T12M (Address 00F816) Timer 1 count stop Timer 2 count stop According to required accuracy, the event count value within 1 ms is detected repeatedly, and its results are averaged. V (Timer 1 set value FF 16) – (Timer 1 read value) ← Event count value within 1 ms T12M (Address 00F8 16) T12M (Address 00F8 16) T12M (Address 00F8 16) |
|
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 |