Dear Webbot,
I am having some problem with the generic display (HD44780). From Project Designer, I chose 50$ Atmega168 and added the LCD device as (1) in the attached image. I left the code almost untouched, only modifying the appControl in order to test the LCD:
TICK_COUNT appControl(LOOP_COUNT loopCount, TICK_COUNT loopStart) {
displayGoto(&display,0,1);
rprintf("fshklfd");
rprintfStr("fdshf");
rprintfChar('c');
return 10000;
}
Then I used Proteus to simulate, configuring the MCU like in (2). The simulation (3) shows that the ports are actually work (red and blue) but still not a single letter show up. The simulation warnings is shown in (4), I tried lowering the clock frequency to 128kHz (just the MCU, the same hex file is used) but that doesn't work either, the same warning came out. To make sure that this is not Proteus's fault, I tried Codevision's code and the lcd worked. I then tried it all over again with other boards but not a single one works on Proteus (once again, I believe that it's not Proteus's fault) I'm pretty sure that whether it is something wrong in the software or maybe I was missing something critical.
To rule out the possibility that it was Proteus's fault, I decided to use my real atmega128 board, I created the board (file attached) by Board Designer and used it with Project Designer, but this time, it couldn't even complied, (in external dependencies, only libm.a and libc.a shown up, even after the failed compilation) Because of this, I couldn't test it with my real board. Anyway, could you have a look at it? the parallel LCD display and the customized board, I don't know where was I wrong.
Sorry, the image is too large (0.5MB), please see it here:
http://img530.imageshack.us/img530/8681/49909659.jpgAnyway, I really appreaciate your contribution, this lib is HUGE, the world really needs more guys like you. Thank you very much.
Attachment list:
- AM-128PRO.brd is the board I made that is failed to compile when used with Project Designer
- lcd.rar is the successfully compiled code but doesn't work
- lcd2.rar is the failed to compile code
http://www.mediafire.com/?ibs7ux137aqshh2http://www.mediafire.com/?d6cywohl7tc0gs8http://www.mediafire.com/?76zvhk77uum6xj0