Originally Posted by NavMicroSystems
when i go to compile i get "bad expression" on serout Portb.2,4,[DEC x]
i am using microcode studio.
Originally Posted by NavMicroSystems
when i go to compile i get "bad expression" on serout Portb.2,4,[DEC x]
i am using microcode studio.
You are missing the two pull-up resistors that are required.
Try wiring it identical to the Melabs user manual. This is your best shot at getting it to work. I have included the drawing in this post.
you are talking about the 2 pull up resistors on scl and sda correct? they are there. as far as i can tell the only difference between what i have and your picture is the cap from vdd to ground on pin 14. ill put that in and see what happens..Originally Posted by DynamoBen
Last edited by -c3-; - 16th June 2005 at 06:54.
You may want to wire it exactly like the drawing for testing purposes.
alright, ive spent some more time on this, with my new lcd. redid the circuit to the schematic posted, still not working for me, it seems it is not writing at all,
do i need to set trisb to something? thats my current line of thought,
thx
Usually you don't need to set TRIS for those built-in command like SERIN/SEROUT/LCDOUT and of course for I2CREAD/I2CWRITE.
For the last, TRIS will change depending if you read ar write from an external I2C device.
What about your whole stuff??? schematic, Parts, Code???
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
what about serout Portb.2,4,[#x]???Originally Posted by -c3-
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Originally Posted by mister_e
that compiles, only problem now is i killed my lcd...... needless to say, from now on i will be a little more careful of which voltage supply i am using.... little puffs of smoke are bad....
Last edited by -c3-; - 16th June 2005 at 06:54.
Bookmarks