hey guys have a pic 16f676 - only 14 pins port a port c (0-5). precious pins and in between precious ADCs
conected to a 16 x 2 lcd but would not initialize stays blank (led blinker programe workin just fine)
but my port sequence is not in order
so my question is do DB4……DB7 neeed to be connected to PORTx.0…….PORTx.3 or can we break the sequence as we like
RA0 = RS
RA1 = En
RA2 = DB4
RC3 = DB7
RC4 = DB6
RC5 = DB5
so could this be my problem
i wish to connect a lm35 temp sensor to it
thanks anyways
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The pins can be connected in any order when you're using 4 bit mode (ie, attaching DB4 - DB7 of the LCD and setting LCD_IO to 4). It's only in 8 bit mode (where DB0 - DB7 are attached), that the order matters.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thank u for ur kind response, well made the lcd and various leads do gymnastics and swapped ports in prog, everythin alrit
it was the contrast pot swung to some far end. a little accidental fiddle revealed the culprit
look mommy i slayed the monster into 2, no sonny now u have 2 little monsters to take care of
the adc readings r doin jumping-jacks (not lm35 problem, checked multimeter) some kinda EV interference i guess
n lcd wont stop flickerin on every refresh
that brings us to back to somemore forum typing excercise - how to keep the ADC read time a lill longer
saw a lm 35 query somewher wil go jot it down there.
thx, even if problems can be solved on ur own, its a good nite sleep knowing there r others to help u just in case.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HI All,
I wrote the following simple test to help me find the source of an error in a bigger context:
;Chip Settings
#chip 16F887,8
;Defines (Constants)
#define LCD_IO 4
; I FOUND THE FOLLOWING LINE IN THE FORUM ALTHOUGH NOT IN GCBASIC
#define LCE_NO_RW
;THESE LCD LINES WERE GENERATED FROM THE HARDWARE CONFIGURATION IN GCBASIC
#define LCD_RS PORTA.4
#define LCD_Enable PORTB.3
#define LCD_DB4 PORTC.0
#define LCD_DB5 PORTC.1
#define LCD_DB6 PORTC.2
#define LCD_DB7 PORTC.3
Print "Test"
I got the following error:
Error in library lcd.h: SYSLCDTEMP.0 is not a valid I/O pin or port
I would sure appreciate some help. Thanks!
The exact line is : #define LCD_NO_RW , not LCE
Regards
GC
Well now. My biggest thanks for the littlest and dumbest reasons to seek help….a typo! I'll be more careful but thanks tons this time!
hey guys have a pic 16f676 - only 14 pins port a port c (0-5). precious pins and in between precious ADCs
conected to a 16 x 2 lcd but would not initialize stays blank (led blinker programe workin just fine)
but my port sequence is not in order
so my question is do DB4……DB7 neeed to be connected to PORTx.0…….PORTx.3 or can we break the sequence as we like
RA0 = RS
RA1 = En
RA2 = DB4
RC3 = DB7
RC4 = DB6
RC5 = DB5
so could this be my problem
i wish to connect a lm35 temp sensor to it
thanks anyways
The pins can be connected in any order when you're using 4 bit mode (ie, attaching DB4 - DB7 of the LCD and setting LCD_IO to 4). It's only in 8 bit mode (where DB0 - DB7 are attached), that the order matters.
thank u for ur kind response, well made the lcd and various leads do gymnastics and swapped ports in prog, everythin alrit
it was the contrast pot swung to some far end. a little accidental fiddle revealed the culprit
look mommy i slayed the monster into 2, no sonny now u have 2 little monsters to take care of
the adc readings r doin jumping-jacks (not lm35 problem, checked multimeter) some kinda EV interference i guess
n lcd wont stop flickerin on every refresh
that brings us to back to somemore forum typing excercise - how to keep the ADC read time a lill longer
saw a lm 35 query somewher wil go jot it down there.
thx, even if problems can be solved on ur own, its a good nite sleep knowing there r others to help u just in case.