Question regarding programming the ATMEGA16

Status
Not open for further replies.

Kaze105

Junior Member level 1
Joined
Aug 13, 2010
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,411
Im using codevision to program the ATMEGA16 through a dev board.

Im hoping to connect it to a crystalfontz LCD (link below)

CFA634-TFB-KS, CFA-634 Serial LCD 20x4, RoHS Compliant, White Edge LED Backlight, FSTN

As according to the LCD datasheet, im connecting the port on the LCD called DATA_IN. It is directly connected to the TXD port on the ATMEGA16.

I programmed it to display a simple code (printf("Hello World");

I did set up it up correctly (baud rate, 8 data, no parity, 1 stop). Despite checking it again and again, I cannot get it to display anything so I wanted to confirm that what im doing is correct with the ATMEGA16.

In order to get TXD port to output to the LCD, I just need PORTD set up as an ouput, is that correct? Do I need any other setting to specifically set it as a TXD port?
 

At a quick glance, it seems that the rs232 level is inverted.

You have to invert the data
 

The LCD has a couple jumper ports that requires to be closed to accept invert data (which i did do)
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…