??? 08/06/04 14:50 Read: times |
#75572 - RE: ° LCD (44780) works in only ASM not Responding to: ???'s previous message |
erik malund wrote:
------------------------------- If it works in asm, why not use it. There is no problem calling asm from C. I have several drivers (including LCD) written in asm in the days the king of diamonds were still a jack and happily use them again and again instead of reinventing the wheel. I have, however, rewritten a few processes in C because the logic was not readily understandable and it made modification difficult, but that can not apply to something 'straight' like a LCD driver. I very much agree. I have written many ASM drivers for LCD, ADC, RTC, whatever chips I have had to interface to over the years. The first time I was going to talk to a device where the data sheet had sample code in C (Dallas 18B20 1-wire) I found myself debugging by looking at the assembly language LST file output from the compiler. It would have been easier if it was just in Assembler in the first place... -- Tom Bachmann |