Hello everyone,
I am attempting to attach my Displaytech 161A (Datasheet here) to an Atmega16. I have not succeeded so far. The 161A is an 8-bit display.
I have used the specs of this table found in the help file of my compiler:
As already suggested for some 8-bit displays, I have tried to both leave db0-3 unconnected or tie them to ground. Neither worked.Code:LCD DISPLAY PORT DB7 PORTB.7 DB6 PORTB.6 DB5 PORTB.5 DB4 PORTB.4 E PORTB.3 RS PORTB.2 RW Ground Vss Ground Vdd +5 Volt Vo 0-5 Volt
Just in case somethings wrong with that: Here is the code for the Atmega:
Can anyone help me with this?Code:$regfile = "m16def.dat" $crystal = 8000000 Config Lcd = 16 * 1 Do Display On Cls Lcd "Hello world..." Wait 2 Cls Lcd "Hello me..." Wait 2 Display Off Loop

Reply With Quote
)....if the contrast is set too low, ALL blocks will be black. because your LCD is 16x1 the test pattern will look >>the same<< as if the contrast is set too low. I doubt thats a problem anymore though. Also, the 'RS' pin is command/data. Pulling it high will (if I'm not mistaken) only allow instructions to be written, so the best you'll get there is a blank screen (no black blocks) because you can't write data for it to dispaly, which is useful for debugging. But...as I mentioned above...you'll get the black blocks if the contrast is set too low.