We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hey all, Does anybody know anything about interfacing a hitachi LCD with an ADuC812? Any information would be greatly appreciated!
I need it in C, if you dont know just either say so or dont say anything at all.
Just trying to save you some effort. Of course, it's your time to waste if you so desire...
Sorry,just a bit stressed about this. Basically I'm in college and I have written this in assembly during the year but I am currently doing a project and I am required to do this in C so any relevant advice would be great.
Converting assembler to C is not a difficult task, especially if you did the assembler code yourself. The one where you must fight your professor in this case is that no timing can be determined in C, so the waits must be HW timer based or written in assembler. I have converted several routines from assembler to C, it's a breeze. I have not done so not to avoid assembler, not for the fun, but because major expansions of the functionality was required. The converted code created a good tested base for the expanded routines. Erik
"I have written this in assembly ... I am required to do this in C so any relevant advice would be great." As I said before: if you've written it in assembler, you must now know what you need to do - it is just a matter of expressing that in the 'C' language. Look at your assembler, and pull out the essence of what you are doing into pseudo-code; eg,
Write a byte to the port; Pull this line low; Wait for that line to go high;