also need to add "TRISB = 0" somewhere before using lcdout. (default is input, need to set to output)
Also, make sure Low voltage programming is disabled, it uses portb.4.
also need to add "TRISB = 0" somewhere before using lcdout. (default is input, need to set to output)
Also, make sure Low voltage programming is disabled, it uses portb.4.
Last edited by nomad; - 5th May 2014 at 17:44. Reason: oops
HELLO personal thanks for replying,
I pulled the ADCON1 and put the CMCON = 7 and appeared error symbol
Nor did the case of states i2c address you explain to me or write code to perform this address
because the lcd was already running and the data were recorded in eeprom 24c32a
the difficult that even this reading is made of the data in the EEPROM and show lcd
thanks for helping me
fernandocsouza
(double post)
Last edited by Demon; - 5th May 2014 at 23:58.
sorry, i'm lost as how to help. your code should not compile at all.
(I tried in microcode studio, fixed all the errors, and posted the result.)
Are you sure you've selected 16f628a? it has comparators and uses cmcon.
I've used them before and checked against my old projects and the data sheet.
what I posted compiles fine here with no errors. (Although I did not correct the i2cread section to get the full string for display)
If nothing at all is displaying, there's bigger issues.
make sure 16f628a is the chip youre using, and it is selected in your program!
thank you for answering me NOMAD installed microcode studio again and the LCD worked just right and I could write the phrase "pic basic pro" in eeprom 24c32a, and now a friend as I do for reading the data and display on lcd
please help me
fernandocsouza
Friend nomad thanks for helping me
got the pic 16F628A read the eeprom 24c32a this error in declarations
I2CREAD SDA, SCL, $ A1, e0 + $ 20 [b1 str \ 9] 'limit
pause 100
lcdout str b1 \ 9
pause 100
had to put the var data with the line of the EEPROM memory in the case E0 + $ 20
but anyway thanks
fernandocsouza
Bookmarks