YeagerTheCat
New member
Dudes,
I have finally cracked open the delightful CFAG320240C (brimming with expectation) today, attaching it up to an atmega128 sitting in its STK501 test home.
I have trawled the forums for pearls of wisdom and snippets of code, but the screen has made me look foolish unfortunately and I am posting here to admit it.
I am in blank screensville, despite my best efforts. I have tested every connection, I have stepped it all through in the debugger, but it still wants nothing to do with me. I pilfered initialization from the parallel port code example to try and ensure I followed the right path after trying the datasheet examples.
There are three things that let me know I am clearly in trouble:
1. After resetting, a cut down version that attempts to MWRITE a few locations and read them back give me nothing but zeros.
2. Attempting to watch for the status bit (D6) to go high (just looking for signs of life) leads me to see a lot of zeros.
3. Unless E is set high (along with the other characters, A0, RW and CS low), it pulls D0-7 low. When you go to make changes from the micro that involve a whole lot of pins going high on D0-7 before , this sucks enough power to cause my JTAG debugger to lock up and checking it out, it can happily pull down (actually sink would be a better word) a high pin to about 0.01 of a volt. I know it is power related 'cause the I can watch the main power LED on the STK500 dim slightly when it occurs. Should I be putting some series resistance on the data lines?
So there it is... it has humbled me. Here I was feeling all cocky 'cause I recently got a Optex DMF-5xxxx unit yakking with the same equipment. Oh well, if you are going to look stupid, you might as well do it properly.
If anyone has any suggestions and/or have got this lovely screen working with an AVR (not that the processor should really matter), I would be most curious.
I guess I can always make up a parallel cable and try the LCD against that for comparison purposes...
Regards,
Andrew
I have finally cracked open the delightful CFAG320240C (brimming with expectation) today, attaching it up to an atmega128 sitting in its STK501 test home.
I have trawled the forums for pearls of wisdom and snippets of code, but the screen has made me look foolish unfortunately and I am posting here to admit it.
I am in blank screensville, despite my best efforts. I have tested every connection, I have stepped it all through in the debugger, but it still wants nothing to do with me. I pilfered initialization from the parallel port code example to try and ensure I followed the right path after trying the datasheet examples.
There are three things that let me know I am clearly in trouble:
1. After resetting, a cut down version that attempts to MWRITE a few locations and read them back give me nothing but zeros.
2. Attempting to watch for the status bit (D6) to go high (just looking for signs of life) leads me to see a lot of zeros.
3. Unless E is set high (along with the other characters, A0, RW and CS low), it pulls D0-7 low. When you go to make changes from the micro that involve a whole lot of pins going high on D0-7 before , this sucks enough power to cause my JTAG debugger to lock up and checking it out, it can happily pull down (actually sink would be a better word) a high pin to about 0.01 of a volt. I know it is power related 'cause the I can watch the main power LED on the STK500 dim slightly when it occurs. Should I be putting some series resistance on the data lines?
So there it is... it has humbled me. Here I was feeling all cocky 'cause I recently got a Optex DMF-5xxxx unit yakking with the same equipment. Oh well, if you are going to look stupid, you might as well do it properly.
If anyone has any suggestions and/or have got this lovely screen working with an AVR (not that the processor should really matter), I would be most curious.
I guess I can always make up a parallel cable and try the LCD against that for comparison purposes...
Regards,
Andrew
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.