Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

ECM1602A LCD ASCII help

Status
Not open for further replies.

breadboardguy

New Member
My question is very simple:

I Bought an ecm1602a lcd screen in the last month in france from an hobby store, Its controller is S6A0069, what i need to know is what characters are in its character generator memory. Is it standard for all 5x8 dot lcd? I have found a datasheet on google that show an ascii table but its for the ITM-1602A .

Is it the same for my ecm1602a?
(in the datasheet, the itm controller is not the same then the ecm one, so what does 1602a means?)

Its looks like ecm1602a is obselete
 
Last edited:
Good idea...if i get my lcd to initialize(the cursor to show up), should take me a while taking into account my super programming skills...
 
Last edited:
thanks, i'l note that, but i will also try to get it on my own.
http://www.geocities.com/dinceraydin/djlcdsim/djlcdsim.html

This thing is very useful.Why not sticky it?

EDIT

Just to make shure i get the thing.

To light up the cursor, i send b'00001111' instruction on b7 to b0, an e pin pulse and some buzy time for the lcd?

b'00001111' means lcd set, cursor set, blinking of cursor set and controll bit on.

At least it works in the tutorial.

occu= to .5sec loop

main

bsf STATUS,RP0
clrf PORTB
clrf PORTA
bcf STATUS,RP0

call OCCU

movlw b'00001111'
movwf PORTB
call pulse

call OCCU
clrf PORTb


pulse
bsf PORTA,0
call OCCU
bcf PORTA,0
return

OCCU
decfsz 20h
goto OCCU
decfsz 21h
goto OCCU
return

END



Cool led matrix by the way atomsoft.
 
Last edited:
wow thats a old link lol i havent seen that page in so long (like a year) heh good find !

Thanks for the compliment. I try way to hard heh
 
A pic 16f628a. Read/Write and RegisterSelection pins are to ground (for write and instruction mode)

E pin is on porta,0 and the portb is on the data bus lines(in the right order).
Just to blink the cursor...but it does'nt.

Very strange... I have took an program from another forum member that had the same problems then me and fixed them, loaded it after minor mods and ... does'nt works! he use an lcm1602a, the almost same then ecm1602a.

bsf STATUS,RP0
clrf PORTB
CLRf PORTA
bcf STATUS,RP0



CALL T25MS ; Attend 50msec pour l'initialisation du LCD
CALL T25MS

BCF PORTA,1 ; Clear RS
BCF PORTA,0 ; Clear Enable
MOVLW B'00111100' ; CMD 2 lignes, display ON
MOVWF PORTB
call pulse
CALL T25MS ; Attend 25ms
MOVLW B'00001111' ; CMD Display ON, Cursor ON, Blink ON
MOVWF PORTB
call pulse
CALL T25MS
MOVLW B'00000001' ; Clear Display
MOVWF PORTB
call pulse
CALL T25MS
MOVLW B'00000111' ; Increment mode, Entire shift ON
MOVWF PORTB
call pulse
CALL T25MS
BSF PORTA,1
MOVLW b'11001100'
MOVWF PORTB
call pulse
GOTO END_INIT_LCD

END_INIT_LCD

T25MS
movlw b'100001'
movwf 21h
here
decfsz 20h
goto here
decfsz 21h
goto here
return

pulse
nop
nop
bsf PORTA,0
call T25MS
bcf PORTA,0
return
END





I think that my pic has gone crazy or something because the pin 7 and 6 of the PORTB goes high several times before being high for ever because of the loop at the en of the program... I Tested that by putting an led on the mcu port................................................................................................

As you can see, in all the movlw b'xxxxxxxx' the msb and bit 6 are HIGH ONLY at the end of the program, but my led lights up 8 times...






The PORTB is not acting the way it supposed at all!And its not the first time

Can someone explain that?
(Could it be the pickit2 or the pic?)

I REALLY REALLY REALLY need your help.
 

Attachments

  • Sans titre.JPG
    Sans titre.JPG
    22.2 KB · Views: 468
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top