|
![]() Oscillators/PCA/Timers/SMBus/UART/SPI
![]() C8051F500 crystal osc.
|
| next newest topic | next oldest topic |
| Author | Topic: C8051F500 crystal osc. |
|
YGromov New Member |
Hi! I need to run C8051F500 with external Chip environment: Code (on Startup): call Delay_1mS osc_wait: ; wait for XTLVLD-->1 (osc ready) All above conforms to F500 datasheet. Regards, IP: Logged |
|
erikm Member |
a guess: "A wire is NOT a wire" Are the connections to the crystal, burden caps etc less than 1cm? Erik IP: Logged |
|
YGromov New Member |
Thank you for reply "wire" == PCB traces, of cource all the crystal related traces are less than 10mm. Also note that I have tryed 32768Hz crystall (which is not so critical to PCB) (with appropriate OSCXCN settings) - without any luck IP: Logged |
|
vanmierlo Member |
What is in P0SKIP and P0MDIN ? Have you read the important note on external oscillator usage in section 19.4 of the datasheet? Maarten IP: Logged |
|
YGromov New Member |
Thank you for reply. I have read the section 19 of F500 Registers settings are: Is something wrong or forgotten? Yury IP: Logged |
|
tony.hague Member |
I've used the F584 (which should be the same in these respects) with an external crystal, without problem. Looking at your code, the SiLabs example (F500_Oscillator_Crystal.c), and my code, I can't see anything obvious. The only things that occur is that it is recommend to enable the Vdd monitor and missing clock detector - but it's only a recommendation. Also you appear to first change the internal oscillator divisor to 1 from the default of 128 - presumably your Delay_1mS does do what it should at that clock rate ? [This message has been edited by tony.hague (edited July 27, 2010).] IP: Logged |
|
YGromov New Member |
F500_Oscillator_Crystal.c example does not work on my F500 too... Delay_1ms does 1ms delay with 24M oscillator. With /128 prescaller There is one strange fragment form F50x (and F58x) datasheet (19.4.1): F500_Oscillator_Crystal.c does not set Thanks for reply IP: Logged |
|
erikm Member |
1. Force XTAL1 and XTAL2 to a high state. This involves enabling the Crossbar and writing 1 to the port pins associated with XTAL1 and XTAL2." F500_Oscillator_Crystal.c does not set if you look at the SFR descriptions in the datasheet you will in the header see "reset state" have a look Erik IP: Logged |
|
vanmierlo Member |
Maybe you can try to give it a kick by setting XTAL2 low first as discussed in this thread for the F410. Maarten IP: Logged |
|
YGromov New Member |
Tried to kick XTAL2 (and XTAL1 and both) to 0 and to 1 - unsuccessfully. May be, my F500 chip is defective. Yury IP: Logged |
|
erikm Member |
since you definitely sound 'commercial' I can figure what your time cost. Thus you will SAVE lots of money by buying a devboard. That will give you definite answer re custom hardware functioning or not Erik IP: Logged |
|
dmgsensortec New Member |
Hi, you could check that you don't have revision A of the device. I saw in the errata that the external clock did not work correctly on revision A. Regards, Dwayne IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?