Hi
Just a quick question, I have been using different chips to pics lately, and I have kind of got used to the way they do things, however I need to switch back to pics for a project.
The project involves the delays lib, Uart and SPI.
now just for argument sake, say I am using the 18f4685 chip, and using C18 compiler.
how in the code do I tell it what frequency the crystal is running at? I normally use the internal OSC, and none of the code I have used actually says anywhere in it what speed the chip is running at! I dont normally use the delay libs.
However now I need to use a crystal of a non standard value, again it isnt settled but lets say the crystal is 36.864 MHz,
Can someone show me a couple of lines of where and how to tell the compiler the frequency of the crystal I am using?
Just for back ground the reason for strange values is, I am going to be running the Uart at fast speeds, so I have some crystals that were chosen to give low error %.
Thank you