caramoan tour package

caramoan tour package

Author Topic: 8051F320 Oscillator  (Read 341 times)

Offline geegeek

  • LR44 Battery
  • *
  • Posts: 2
  • Pogi/Ganda Points: 0
8051F320 Oscillator
« on: March 18, 2011, 02:48:04 PM »
Hi,
Hope anybody in here can help me on this.

I am practicing this uC using development kit from SiLabs.
As I am studying its given examples, I noticed that some example enable the internal oscillator and using its maximum frequency(OSCICN = 0x83), other example uses only this OSCICN |= 0x03 which never set the bit 6 of this register. And these example flawlessly run.

Can anybody give some light on this?

thanks and appreciate your kind response.

regards
geegeek

Philippine Electronics Forum

8051F320 Oscillator
« on: March 18, 2011, 02:48:04 PM »

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10732
  • Pogi/Ganda Points: 632
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: 8051F320 Oscillator
« Reply #1 on: March 18, 2011, 03:08:54 PM »
^ meron bang crystal sa board?
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: 8051F320 Oscillator
« Reply #1 on: March 18, 2011, 03:08:54 PM »

Offline geegeek

  • LR44 Battery
  • *
  • Posts: 2
  • Pogi/Ganda Points: 0
Re: 8051F320 Oscillator
« Reply #2 on: March 21, 2011, 10:52:13 AM »
External oscillator, no. Uses only internal oscillator as a system clock.
I just figure it out. bit 6 is Read only, I overlooked this thing in datasheet.
After reset the internal oscillator is enabled and therefore bit 7 of OSCICN is set automatically, therefore its an option to set, the only bit I have to configure is bit 1-0 the option to choose whether to run the clock to its maximum or less or to its minimum.

thanks
geegeek

Philippine Electronics Forum

Re: 8051F320 Oscillator
« Reply #2 on: March 21, 2011, 10:52:13 AM »

 

Privacy Policy

Contact Us: elabph@yahoo.com