Jump to content
ELFORUM - Forumul electronistilor

generare caracter in gc ram


Recommended Posts

buna ziua,astazi am incercat si eu sa generez un caracter 'custom' pe un display 16x2. am citit si rascitit pdf-ul display-ului dar nu reusesc.din capul locului va spun ca este activa functia Increment DD RAM address by onecum fac:clear la linia RSintroduc 01000000 pe linia de date - adresa 0x00 in gcramdau pulsul de toggle Eset linia RSbag cate un byte cu pattern-ul si dau pulsul de toggle Erepet de 64 ori ca sa umplu GC Ramapoi continui cu programul si la un moment dat pun 0x00 pentru a chema primul caracterul creat dar nimic.unde gresesc? rog un sfat ca ma lasa nervii.

Link to comment
  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

la al meu asa spune:Programming procedure is:a) with RS=0 enter the address of the top row of the character to be programmed (i.e. 40,48,50, etc.)b) with RS=1 enter pattern data for row 1 (top row)c) continue to enter pattern data for rows 2-8; it is not necesary to enter additional addresses if the modulehas been initialized with command 06 (auto increment of cursor).This procedure may be continued until all CG bytes have been loaded.oare nu ma prin eu sau ce naiba o avea.intrebarea mea, ar mai fi, nu trebuie sa ii spun ca am terminat de scris in gcram?

Link to comment

Uite un exemplu FUNCTIONAL DIN JAL:

 

procedure HD44780_IO( byte in value ) is

hd44780_4_E = high -- enable

hd44780_4_D = value -- put value on the data lines

hd44780_4_E = low -- disable

delay_1uS( 250 ) -- enough for the simple operations

end procedure

 

 

procedure HD44780_write( byte in value ) is

hd44780_4_DI = high -- select data

HD44780_IO( value >> 4 ) -- output high nibble

HD44780_IO( value ) -- output low nibble

end procedure

 

 

 

-- output the instruction byte in value to the HD44780

procedure HD44780_instruction( byte in value ) is

hd44780_4_DI = low -- select instruction

HD44780_IO( value >> 4 ) -- output high nibble

delay_10uS( 130 ) -- required delay

HD44780_IO( value ) -- output low nibble

delay_10uS( 130 ) -- required delay

end procedure

 

procedure HD44780_define(

byte in x,

byte in b0,

byte in b1,

byte in b2,

byte in b3,

byte in b4,

byte in b5,

byte in b6,

byte in b7

) is

HD44780_instruction( 0x40 | ( x << 3 ) )

HD44780_write( b0 )

HD44780_write( b1 )

HD44780_write( b2 )

HD44780_write( b3 )

HD44780_write( b4 )

HD44780_write( b5 )

HD44780_write( b6 )

HD44780_write( b7 )

end procedure

 

HD44780_define (1, 5, 4, .... ) // LINIILE CARACTERULUI CU 3 ZEROURI IN STANGA

 

HD44780 = 0 // APELEAZA PRIMUL CARACTER DEFINIT

Link to comment

multam fain, dar eu sunt cu asembler-ul. o sa mai incerc cand mai am nervi. daca am reusit sa imi fac rutine de comunicare pe rs232, cu memorie, cu ds1820, matrice de leduri, controlere de temp, umiditate etc, oi pune eu un nenorocit de caracter pe lcd numai ca nu prea mai am rabdare si timp.poate ma citeste careva care a facut in asembler asa ceva si imi da un pont.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines