Hello everybody,
I have a new account on the forum but I am not new to AVRco.
I decided to renew my older designs and I have a problem with MEGA2560 and LCD display.
In this case, I use the standard library for HD 44780 display, 4x20 characters. Instruction LCDOUT ('A') is working properly but Write (LCDOUT, 'ABC') is no longer. After following the instruction the whole screen is black (black block instead of characters). After many hours of testing (even with logic analyzer) and many e-mails with Rolf (Rolf, thank you for your help) still nothing explained. The last test was a compilation of the program to other processors such as MEGA640 and 1280 and loading it into MEAG2560. And surprise surprise. The compiled program runs on MEGA2560 properly.
I join a program listing and comparing the asm code M640 <=> M1280 and M1280 <=> M2560.
Does anyone have any idea why it does not work on Mega2560 ?
Marek
I have a new account on the forum but I am not new to AVRco.
I decided to renew my older designs and I have a problem with MEGA2560 and LCD display.
In this case, I use the standard library for HD 44780 display, 4x20 characters. Instruction LCDOUT ('A') is working properly but Write (LCDOUT, 'ABC') is no longer. After following the instruction the whole screen is black (black block instead of characters). After many hours of testing (even with logic analyzer) and many e-mails with Rolf (Rolf, thank you for your help) still nothing explained. The last test was a compilation of the program to other processors such as MEGA640 and 1280 and loading it into MEAG2560. And surprise surprise. The compiled program runs on MEGA2560 properly.
I join a program listing and comparing the asm code M640 <=> M1280 and M1280 <=> M2560.
Does anyone have any idea why it does not work on Mega2560 ?
Marek
Attachments
Filename: | Listing.pdf |
Filesize: | 372.46 KB |
Title: | Program listing |
Download counter: | 41 |
Filename: | Compare 640 to 1280.pdf |
Filesize: | 507.27 KB |
Title: | Compare ASM code 640 to 1280 |
Download counter: | 28 |
Filename: | Compare 1280 to 2560.pdf |
Filesize: | 511.87 KB |
Title: | Compare ASM code 1280 to 2560 |
Download counter: | 35 |