![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Yester day i bought a 20X4 LCD and this is a schematic for LCD Alarm clock( 20X4 ).
![]() So my prob is That PIC to LCD wiring is not clear to me. Plz can some one help me plzzz.. |
|
|
|
|
|
|
(permalink) |
|
Have you seen Nigel's site?
http://winpicprog.co.uk
__________________
Superman returns..
|
|
|
|
|
|
|
(permalink) |
|
hi Pasan,
It would be helpful if you could post the program code, so that we can identify which pin is which.
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
|
|
|
|
|
|
(permalink) |
|
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
i hope you are sure about the lcd's model is hd44780..
|
|
|
|
|
|
|
(permalink) |
|
hi,
The port pin references from the posted site shows this: Code:
-- pin assignment for the 4-bit (6 PIC I/O pins) interface: -- -- PIC HD44870 -- ---------------------- -- 5 Gnd 1 Gnd -- 14 Vcc 2 Vcc -- 5 Gnd 3 Contrast -- 6 B0 11 D4 -- 7 B1 12 D5 -- 8 B2 13 D6 -- 9 B3 14 D7 -- 10 B4 4 RS D/I_ -- 5 Gnd 5 R/W_ -- 11 B5 6 E -- -- pin assignment for the 8-bit (11 PIC I/O pins) interface: -- -- PIC HD44870 -- ---------------------- -- 5 Gnd 1 Gnd -- 14 Vcc 2 Vcc -- 5 Gnd 3 Contrast -- 17 A0 4 RS D/I_ -- 5 Gnd 5 R/W_ -- 1 A1 6 E -- 6 B0 7 D1 -- 7 B1 8 D2 -- 8 B2 9 D3 -- 9 B3 10 D4 -- 6 B4 11 D4 -- 7 B4 12 D5 -- 8 B6 13 D6 (2k2 series resistor for ISP!) -- 9 B7 14 D7 (2k2 series resistor for ISP!) -- I'm assuming the 8 bit LCD 16F877 connect list. Where is the RS line, it says PORTA.1 in the list, also the LCD contrast is grounded??
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
Have you compared the table I posted [taken from that website] with your circuit diagram? It does not match.
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
||
|
|
|
|
|
(permalink) | |
|
Quote:
Thanks |
||
|
|
|
|
|
(permalink) | |
|
Quote:
then using a dis-assembler to get a 'normal' source code listing. IIRC WinPicPro [Nigel has referred to at time?], no sure, never used a PIC dis'' This should enable you to decide which PIC pins drive which LCD pins. Also use a 10K pot on the LCD Vo Contrast.
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
||
|
|
|
|
|
(permalink) | |
|
Quote:
Thanks for the advice. I'll use Preset |
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
I have a serious problem again about Programing the PIC.
When im trying to Program ( main.hex ) the PIC its always faill to verify. My programmer is also working properly. I set configurations as he said so. osc hs watchdog off powerup on protection off But all ways get same error. Then I and select XT osc. Then its verify the chip. But it doesn't work. Y really it wont verify the chip? Is it coz of problem in the source codes Here is the files ASM HEX Thanks guys |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| High ADC sampling rate PIC, 18F needed? | bananasiong | Micro Controllers | 24 | 28th October 2007 12:13 PM |
| Newbie needs help with LCD backlight dimming | Mongoose | General Electronics Chat | 6 | 21st September 2007 11:23 PM |
| Nokia 7110 LCD + questions regarding code and behaviour of LCD. | MrNobody | Micro Controllers | 2 | 19th September 2007 07:50 AM |
| RF tranceiver problem | darvaish | General Electronics Chat | 2 | 3rd April 2005 07:44 AM |
| Analog output PLC CQM1H problem | goekgoek | General Electronics Chat | 0 | 24th June 2003 08:07 AM |