![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #16 | |
| Quote:
| ||
| |
| | #17 |
|
Help!Help! i really don't know what can i do with the source code.. I had make some changing to Nigel's LCD tutorial according to my port pin, from PICDEM 2 PLUS circuit shcematic, the port pin RA1 - E RA2 - RW RA3 - RS DB4 - RD0 DB5 - RD1 DB6 - RD2 DB7 - RD3 but the LCD still don't have any respond.. | |
| |
| | #18 | |
| Quote:
this is the changing code that i program in PIC.. | ||
| |
| | #19 |
|
what's mean by this code? LCD_RS Equ 0x04 ;LCD handshake lines LCD_RW Equ 0x06 LCD_E Equ 0x07 if my port pin connection is like RA1 - E RA2 - RW RA3 - RS DB4 - RD0 DB5 - RD1 DB6 - RD2 DB7 - RD3 then what location should i write?? thanks.. | |
| |
| | #20 | |
| Quote:
Code: list p=16f877 ; list directive to define processor #include <p16f877.inc> ; processor specific variable definitions __CONFIG _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _LP_OSC & _WRT_ENABLE_OFF & _LVP_OFF & _DEBUG_OFF & _CPD_OFF ; '__CONFIG' directive is used to embed configuration data within .asm file. ; The labels following the directive are located in the respective .inc file. ; See respective data sheet for additional information on configur
__________________ bananasiong | ||
| |
| | #21 | ||
| Quote:
So during programming, when you want to set RS, you simply Code: bsf PORTA, LCD_RS Quote:
Code: LCD_RS Equ 0x03 LCD_RW Equ 0x02 LCD_E Equ 0x01 You use portD for the data bits, just change it in the code.
__________________ bananasiong | |||
| |
| | #22 | |
| Quote:
i had re-attach the file again.. i think the port pin that i define is right, but i didn't understand that why the LCD still no respond... | ||
| |
| | #23 |
|
Did you notice this: Code: LCD_CTRL Equ PORTA LCD_TRISA Equ PORTA
__________________ bananasiong | |
| |
| | #24 |
|
i didn't connect anything to CONTRAST part, what use of this part??
| |
| |
| | #25 | |
| Quote:
![]() Maybe you haven't seen this yet: http://winpicprog.co.uk/pic_tutorial_lcd_board.htm
__________________ bananasiong | ||
| |
| | #26 | |
| Quote:
You require a 10K0 potentiometer, between +5V and 0V and the wiper of the pot connected to Vo of the LCD pcb. Adjusting the pot will set the 'contrast' of the LCD so that you can see the LCD characters. At first, set the contrast so that you can just see the pixel blocks on the LCD. Have a look where the +5V and 0V wires are connected to the LCD pcb, next them [on my lcd] is pin#3, which is Vo. Does this help?
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ | ||
| |
| | #27 |
|
this will help on my upcoming project....
| |
| |
|
| Tags |
| display, lcd, pic, problem |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| PIC16F628A Reset? | marting | Micro Controllers | 18 | 5th December 2008 09:31 PM |
| Need help with Intel Assembly Language and PIC16F877 | avinsinanan | Micro Controllers | 10 | 4th March 2008 11:02 AM |
| Using Oscilloscopes | mechie | Electronic Theory | 9 | 29th November 2007 10:49 PM |
| Multiple digits 7 segments display | Joel Rainville | Micro Controllers | 44 | 22nd August 2005 09:22 PM |
| 7 seg. display problem | bluegirl | Electronic Projects Design/Ideas/Reviews | 8 | 18th April 2003 01:40 PM |