![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Greg, You say it programs OK when you physically disconnect PIC pin #10 from the LCD??? As a test keep pin#10 connected as normal, start the program sequence and measure what voltage level is actually on pin #10 throughout the sequence, voltmeter or scope would do it. Lets know what voltage level you see on this pin.
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | |
| |
| | (permalink) |
| Without the comments and probably better labels it'll be tough going to decode someone elses source code, especially if you're not yet that familiar with the PIC. LCDs can be tricky until you get the hang of them, 4bit mode even more so. The commands are (TRIS PORTx and OPTION) they won't compile and have to be changed to movwf TRISx and movwf OPTION_REG | |
| |
| | (permalink) |
| Eric - I've put a scope on pin 10 - its a constant 5V throughout the programming. I guess this is why it keeps failing. Dunno why I didnt think of doing this before! I've now put a 10k from pin 10 to ground and its working!!! Wooo hoo!! Bill - I know its going to be tough, but I'm going through the code add tons of comments and proper labels - this way I can slowly step through the code finding out exactly what it does. I'm sure there's an easier way but I'll put it down to the learning process Thanks for all the help!! | |
| |
| | (permalink) |
| You might try using WinPicprog to disassemble it, as it adds labels for you - you still have to edit them to make sense, but at least it's one job less!. Having said that, I've done it for you!. Last edited by Nigel Goodwin; 29th September 2007 at 05:07 PM. | |
| |
| | (permalink) |
| Thanks! Should make things a lot easier. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| LCD Troubles | Kyle-s4h | Micro Controllers | 13 | 11th September 2007 01:30 PM |
| Error programming 16F628 | gregmcc | Micro Controllers | 67 | 28th August 2005 09:17 AM |
| 16f628a programming only got 16f628 support will it work? | lompa | Micro Controllers | 6 | 18th December 2004 06:51 PM |
| 16f628 programming | develop | Micro Controllers | 0 | 1st January 2004 01:52 PM |
| Programming the 16F628 | rewguy | Micro Controllers | 4 | 30th October 2003 09:17 AM |