As it is connected right now i would try
AND change the DATAUS as Skimask said.Code:DEFINE LCD_DREG PORTD ;data register DEFINE LCD_BITS 4 ;width of data path DEFINE LCD_DBIT 0
As it is connected right now i would try
AND change the DATAUS as Skimask said.Code:DEFINE LCD_DREG PORTD ;data register DEFINE LCD_BITS 4 ;width of data path DEFINE LCD_DBIT 0
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
So i ripped my circuit down and simplified it with a 16f84a and that worked with all my lcd's. Rebuilt it with the 16f877a and it now works as well. I must have had something messed up in the first build. Sometimes I guess it just pays to start from scratch.
Thanks to everyones for there help. One thing for sure I am certainly learning alot.
Good game... Any idea what the real problem was? Miswired? One wire off?
Keep in mind, the PBP manual, while not a 'do-all end-all of manuals', has a lot of good information in it, a lot of it 'in between the lines', and a lot of it applies to this PIC and that PIC since they're all pretty much built on the same architecture. Use it and use it often! It'll save you a lot of time and trouble. Same goes for the PIC datasheets. A load of the problems that show up here could have been avoided by those two items.
Not a hundred % sure but it was probably just a wrong wire or 2. Wiring diagrams are usually pretty much straight forward so I usually just slap them together and they work ... if I get lucky. When they don't work I can look at it a hundred times and it looks absolutely right. Howerver it only takes one mistake to F it all up. So when things don't work I usually make the call that its one or the other (software or hardware)... this time I think I made the wrong choice. When I rebuilt the circuit this last time I was absolutely maticulous and took my time ... and it works.
Thanks again for the help next time I should just post photographs cause probably all I needed was a second pair of eyes to have a look at it. Now that I got my lcd's all working on to the next challenge. ( I totally understand mister_e's avatar now).
Bookmarks