Skip to main content
lseletron
Associate III
July 27, 2006
Question

Emulator clock

  • July 27, 2006
  • 2 replies
  • 578 views
Posted on July 27, 2006 at 10:41

Emulator clock

This topic has been closed for replies.

2 replies

lseletron
lseletronAuthor
Associate III
July 27, 2006
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
July 27, 2006
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