Download Print this page

Renesas R8C/11 Application Note page 6

Hide thumbs Also See for R8C/11:

Advertisement

Adjusting the Frequency of the High-speed On-chip Oscillator Using a Commercial Frequency
4.2 Flow Chart
4.2.1 Main Function
Set clock source for CPU clock
and peripheral function clock to
high-speed on-chip oscillator
Set initial adjustment value in HR1
Enable INT
I flag = 1 (interrupt enabled)
REJ05B0471-0100Z/Rev.1.00
main()
SFR initialize
sfr_init()
Initial adjustment finished ?
Yes
Set tcc0
Count source = f8
______
Select INT
3 rising edge
______
Select INT
3 interrupt
Set tcc1
No filter
Select capture
Timer C starts
______
3 interrupt (level 7)
Set the ports and set the initial value of the HR1
register.
If the adjustment value is saved in the flash ROM (hr1_flash_data !
= 0xFF), it means that the initial adjustment has been completed.
No
Initial frequency adjust
first_hz_adjust()
End
July 2004
R8C/11, R8C/13 Group
Reset the microcomputer in software after the
initial frequency adjustment has finished.
Page 6 of 21

Advertisement

loading

This manual is also suitable for:

R8c/13