This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LCD messages

Hey all,

Does anybody know anything about interfacing a hitachi LCD with an ADuC812? Any information would be greatly appreciated!

Parents Reply Children
  • 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;
    Or, if you find it helps, draw it as a flowchart.

    From there, it should be a small step to real 'C'...