Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Piclist | Pic16F84A from Syed

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

Pic16F84A from Syed - shafi008 - May 1 18:14:15 2009

Hi every one, This is Syed from NewJersey.

I am the beginner to this Pic microcontrollers. i Started with Pic16G84A displaying characters on LCD (HD44780U (LCD-II)).
Backlight is ON and the blank segments are displayed but no other information is displayed. The following the code which i wrote.

DEFINE LCD_DBIT 4
' Set LCD Register Select port
'DEFINE LCD_RSREG PORTB
' Set LCD Register Select bit
DEFINE LCD_RSBIT 1
' Set LCD Enable port
'DEFINE LCD_EREG PORTB
' Set LCD Enable bit
DEFINE LCD_EBIT 0
' Set LCD bus size (4 or 8 bits)
'DEFINE LCD_BITS 4
' Set number of lines on LCD
DEFINE LCD_LINES 2
' Set command delay time in us
DEFINE LCD_COMMANDUS 1000
' Set data delay time in us
'DEFINE LCD_DATAUS 50

Pause 500 ' Wait for LCD to startup

loop:
'Lcdout $FE, 1 ' Clear LCD screen
lcdout $FE, $80+4, "shafi"
' Lcdout "Hello" ' Display Hello
Pause 500 ' Wait .5 second

Lcdout $FE, 1, "Cool" ' Clear LCD screen
lcdout $FE, $C0,"world"
' Lcdout "World"
Pause 500 ' Wait .5 second
Goto loop
Should i initialize my LCD everytime?
Could you please help me out in this please?

Cheers,
Syed

------------------------------------

to unsubscribe, go to http://www.yahoogroups.com and follow the instructions



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )