| ??? 08/02/03 20:55 Read: times |
#51979 - RE: unable switch C8051F020 to ext. clk Responding to: ???'s previous message |
I just played around with the config utility that came with my board for the 8051F020 and here is the generated code:
//----------------------------------------------------------------
// Oscillator Configuration
//----------------------------------------------------------------
OSCXCN = 0x67; // EXTERNAL Oscillator Control Register
for (n = 0; n < 255; n++) ; // wait for osc to start
while ( (OSCXCN & 0x80) == 0 ); // wait for xtal to stabilize
OSCICN = 0x08; // Internal Oscillator Control Register
Does your code look the same ? Regards Mahmood |
| Topic | Author | Date |
| unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
| RE: unable switch C8051F020 to ext. clk | 01/01/70 00:00 | |
Problem solved! pins of xtal shorted | 01/01/70 00:00 |



