I wonder which values he has used in his LCD program, it seems that you can't use 9600b with the internal oscillator.
But his program runs very good on 9600b I never had any problems with the LCD.
to MGP
I think MCU on LCD board and MCU on your board work at the 4 MHz internal oscillators. And USART baud rate set as "9600 bps" on both MCU's. In fact, the baud rate is 8900 bps on both MCU's with -7% error.
Try to measure the fact transmit frequency on both MCU's with the oscilloscope.
Sat May 19 2018, 08:40:08
(no subject)(by MGP)
My testboard is a pic16F876a on 20MHz 9600b and it works always without exceptions.
But if it runs on 8900b it's OK, my question is answered. Thx
Sat May 19 2018, 08:55:06
(no subject)(by Ziggy)
A bit more on Baud rates and ATmega processors ( I know nothing about PICs)...
It is possible to based on a reference frequency adjust a variable which controls the free running onboard clock to be a bit more precise than the factory supplied configuration.
I use an STK500 and AVRstudio 4 ( yes old and familiar ). This combination offers a utility which calculates the required value to adjust the clock.
How to use this calibration value within LD micro if at all possible?