Hi folks,
I am new into eletronics and I'm currently programming a pic18f4685. However since I will be using delays, I cam up to this: after searching I found out that I can use __delay_ms(x) . However it asks to be defined a XTAL frequency. I had already instructed pic to use the internal oscilator and stated that OSCCONbits.IRCF0 will be 1 Mhz.
Why do I have to define XTAL too?
Greetings
I am new into eletronics and I'm currently programming a pic18f4685. However since I will be using delays, I cam up to this: after searching I found out that I can use __delay_ms(x) . However it asks to be defined a XTAL frequency. I had already instructed pic to use the internal oscilator and stated that OSCCONbits.IRCF0 will be 1 Mhz.
Why do I have to define XTAL too?
Greetings