Hello Ben!!
I have reconfigured your code to drive the Mikromedia for Atmega1280 module. However I have not been able to make it work.
For the MikroE I have swapped the Hi & Lo definitions:
[code:1:18840596d6]Vh Alias Portc
Vl Alias Porta
[/code:1:18840596d6]
For the command signals, I have configured as:
[code:1:18840596d6]Rs Alias Portg.2
Lcd_wr Alias Portg.0
Cs Alias Portj.5
Lcd_res Alias Portj.6[/code:1:18840596d6]
8Mhz for the Crystal, and all the rest seems to be compatible.
However you are using the HX8347-A controller, and the MikroE uses the HX8347-D controller.
Also, the MikroE uses the "8080 MCU 16 Bit parallel Type II" mode. I mean DB1-DB8 & DB10-DB17
Could be different the init from "A" to "D" controller..? Also I think the configuration is different.
Have you tested by any chance this module, Mikromedia for Atmega1280 module, with your TFT code...?
↧