Well, without looking at the datasheet this is what I can tell you:
Define RESET_ORG 800h needs to be upper case. i.e. DEFINE RESET_ORG 800h
Then you set all of PortA to inputs, TRISA=%11111111 ' Configura o PortA como Entrada (I think at least. I don't do Brazilian.) and then turn them on(?) with PORTA = %11111111 ; Turn on all PortA Porta = 255. I just don't think that's right. Can you even make that happen when the port is set to input?
Lots of people could be more helpful if you'd do it in English.
It would also be helpful for you to tell us what doesn't work. Do you get any display using this program? How about another program? Is the display completely dead or does it do anything? A schematic may also be good if the display doesn't do have any display.
Good luck
Bookmarks