This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

P89LPC932 Clock Speed

Hi I need to reduce the clock speed on the P89LPC932. I am using the internal clock oscillator as the clock source. Right now it is configured to run at about 7MHz but I need to reduce it to about 2MHz. The user's manual says by modifying the DVIM register I could get lower clock rate.
This is the formula I have:
CCLKf = Fosc/(N+1) ===> 2MHz = 7.3728MHz/(2+1)
So that my DIVM = 2.
I need to know if I have the right approach. If so where in my program do I need to specify that DIVM = 2 and how do I specify that...I mean is there a SFR name or just DIVM = 0x02;
Thanks
This message was also posted at
http://www.8052.com/forum/

0