Snake4 wrote:the 4Mhz confused me a little too. I think I have to put them on the left side, right under the PIC selection box? But in there is: Clock: 008.000000 Mhz??
That is very odd: a difference between clock speed setting in the IDE and clock speed setting in the project file?
Snake4 wrote:I still have no clue how to solve my problem. I looked in the datasheet, again. I think I am missing the bigger picture where my problem is. Could you please help me with that, as you seem to know what the problem is?
I do not have any experience with the 16F688, so I think you better ask someone who has.
The only thing that I can see is (out of the datasheet) that one should select for the "INTOSC" (which you did in the config word), and "HFINTOSC" (to do with setting of IRCF<2:0> in the OSCCON regsiter). As far as I can see, if you do not fill OSCCON in the initialisation of your program the clock speed will be
4 Mhz. This is the clock speed to set in the IDE (I think), so I suggest you try first to change this.
But again, I can be wrong, perhaps you should ask someone with 16F688 experience...
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)