I made circuit with PIC16F876 and used following definitions:
DEFINE osc 4
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 2
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 3
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
LCD is working proper.
After this I changed MCU, instead of PIC16F876 I put PIC18F442 and changed DEFINE osc 20 and made configuration HS mode on oscillator.
In program it was also used INT0 PIN on port B.
LCD does not display anything, all other subprograms are working correct. Do I have to change any register on port B? Does somebody know what is the problem or why this problem occur?
Thank you for your help.
Kind regards.
Samo
Bookmarks