hi, i want to setup a 18f4685 to use the 8MHz internal oscillator, and wanted to just turn a pin on and off and mesure the frequency of it. i am using the following program
now my questions are 1. have i set it up correctly to use the internal 8MHz clock?
2. what would your best guess at the frequency be for this clock speed?
i the reason for asking is i put it on the scope and it seems wrong to me i am geting a 47-52 duty cycle (seems reasonable) but a frequency of around 75Hz this seems slow or is that about right?
many thank yous logan
Well first of all, you have a semicolon after the while(1). I'm pretty sure that shouldn't be there. Right now I think it's just getting stuck on the while(1); line.
Not sure about the rest of the setup. I'd have to read the datasheet