Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20587

BASCOM-AVR : Mikromedia module M1280 TFT module from Mikroelektronika Bas : NEWTOPIC

$
0
0
I'm trying to configure code from Ben Zijlstra to adapt it to drive the Mikromedia for Atmega1280 module. However I have not been able to make it work. [url=http://postimg.org/image/dvs5hwpy1/][img:d2e0b3965a]http://s28.postimg.org/dvs5hwpy1/board_front.jpg[/img:d2e0b3965a][/url] Ben worked on a great piece of software to drive the TFT LCD using the HX8347-A controller. [url]http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=10835[/url] The module Ben used is also M1280 but the TFT connection is different. The MikroE module is hardwired and is so compact and really nice. Altough it is obsolete, I have grabbed a couple of units to test, and Mouser is still selling it :) To use with the MikroE M1280 module I have changed the data port: [code:1:d2e0b3965a]VH Alias PortC VL Alias PortA [/code:1:d2e0b3965a] For the command signals, I have configured as: [code:1:d2e0b3965a]RS Alias PortG.2 Lcd_WR Alias PortG.0 CS Alias PortJ.5 Lcd_RES Alias PortJ.6[/code:1:d2e0b3965a] 8Mhz for the Crystal, and all the rest seems to be compatible. However, the module Ben is using has 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 (non DB0 & Db9). Could be different the initialization from "A" to "D" controller..? Also I think the configuration Bytes is different. Have someone tested by any chance this module, Mikromedia for Atmega1280 module, with this TFT code...? BTW, this is the connection of the Mikroelektronika M1280 module:[code:1:d2e0b3965a]LCD Atmega1280 ------------------ DB0 Not used, GND DB1 PA.0 DB2 PA.1 DB3 PA.2 DB4 PA.3 DB5 PA.4 DB6 PA.5 DB7 PA.6 DB8 PA.7 DB9 Not Used, GND DB10 PC.0 DB11 PC.1 DB12 PC.2 DB13 PC.3 DB14 PC.4 DB15 PC.5 DB16 PC.6 DB17 PC.7 RESET PJ.6 RS PG.2 CS PJ.5 RD PG.1 WR PG.0 Uses IM0=0 IM1=1 IM2=0 IM3=0[/code:1:d2e0b3965a] [b:d2e0b3965a][color=red:d2e0b3965a](BASCOM-AVR version : 2.0.7.6 )[/b:d2e0b3965a][/color:d2e0b3965a]

Viewing all articles
Browse latest Browse all 20587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>