Whats the speed with this one and a crystal 11.0592?#define _XTAL_FREQ 20000000
To answer your question. The speed will be not be affected in any way, and your micro will run at a 11.0592MHz clock speed.Whats the speed with this one and a crystal 11.0592?
Thank you for the replay.
If you want your code to use accurate cycle timing to do anything, yes.OK, so I should almost always choose the same speed as crystal?
This is not a hard and fast rule. There are some pieces of information missing.OK, so I should almost always choose the same speed as crystal?
Some micros like the PIC18F series have a PLL that can double or quadruple the oscillator frequency. In such a cases you should use the system operating clock speed. And not the crystal frequencyOK, so I should almost always choose the same speed as crystal?
The HI-Tech C compiler comes with a lot of examples. And here you will also find a good LCD exampleI'm using PIC16F887. I'm switching between microC and HiTech.
I think I get it. I just need to find out how to calculate the delays etc.
I can't decide if I like more microC or Mplab. In microC there are pre-defined functions. It's very helpful. I don't need to know how to implement for example LCD. I can just focus on the rest of the code. But, on the other hand. If I write the function on my own, I now it better, so i can adjust it as I need. Should I keep learning microC or stay with more difficult Hitech?
Good point. I didn't read the question thoroughly...Some micros like the PIC18F series have a PLL that can double or quadruple the oscillator frequency. In such a cases you should use the system operating clock speed. And not the crystal frequency
I know in later versions after Microchip took over Hi-Tech C, and the compiler was renamed to the Microchip XC8 compiler. The examples was taken out. If the compiler is installed into a folder named XC8. Like "C:\Programfiles\Microchip\xc8\v1.12" You will probably not have the samples folder. But else look in the "C:\Programfiles\HI-TECH Software\PICC\9.83\samples" folder. Anyway I include the LCDdemo files hereAre you saying I should choose Hi-Tech?
edit.
Before I was able to find many examples. Now i cant. Does anyone know where are they?
by Aaron Carman
by Aaron Carman
by Jake Hertz