cancel
Showing results for 
Search instead for 
Did you mean: 

Emulator clock

lseletron
Associate II
Posted on July 27, 2006 at 10:41

Emulator clock

2 REPLIES 2
lseletron
Associate II
Posted on July 27, 2006 at 06:30

Hi,

I am using DEV3 emulator. In my program I set bit 1 in MCCSR to 1 to enable Main Clock Output. The problem is that the frequency I measure on this pin is half the frequency I have set in the Debug instruments/MCU configuration box. If I set Fosc to 16MHz I measure 8MHz on the MCO pin, if I set Fosc to 8MHz I measure 4MHz. I checked this with ST7FDALI and ST7LITE.

Is this the way it should be or not?

Thanks

laurent239955_stm1
Associate II
Posted on July 27, 2006 at 10:41

Hi,

Main Clock Output is FCPU which is Fosc/2 (have a look to the clock managment block diagram).

Then it is normal you get half the frequence you enter.

This abswer also your PWM problem.

Best regards

Laurent