Change according to your needs.
#CONFIG
CONFIG OSC = XT ; XT oscillator
CONFIG OSCS = OFF ; Oscillator system clock switch option is disabled (main...
I'm changing chips and there is a config file or some file to modify I can't remember what it is or where it is
l_gaminde Yesterday, 22:20Thank you Henrik.
Its ok now,
Ioannis
And of course this explains the periodic error in the LED flashing...
Ioannis
Nice catch...
When someone shows you the stupid mistakes, its that moment you are embarrased a lot
Ioannis
A value of 0 in the pins PPS registers sets it to be controlled by the LAT register. See bottom of table 17-2 in the datasheet.
HenrikOlsson - 31st May 2025, 11:08In the ISR you have this:
if seconds<1000 then
seconds=seconds+1
else
seconds=0
Timer0=0 'Stop timer0
TMR0H=$C1 'Load Timer 0 with start value...
If id does matter, chip is 47K42.
After setting the registers for a PWM output and selecting, for example, RC5PPS=%%00001001, the PWM signal indeed does appear on the output port.
What about...
Thanks Jerson.
At the moment it looked OK to have the LCDout inside the regularly called ISR, as it updatetd the LCD often. If the freq is low enough 1-2 Hz, it updates every second the LCD...
Re: changing from 16f876 to 18f252 file to modify
Thank you
l_gaminde Today, 00:00I'm glad you're still around I remember you for the early 2000'ns