Hello, i want an external cristall clock with 8Mhz on my MCU init.
What code i must write?
void init_mcu (void){
ICGC1=??
ICGC2=??
while?
}
thanks for help
Markus
Hello Markus,
I assume that you mean the crystal frequency is 8 MHz. You do not mention what bus frequency you require. This will determine whether you select FBE or FEE mode for the ICG module. For FBE mode, the maximum bus frequency would be 4 MHz.
Regards,
Mac