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 Interface

I am trying to interface an LCD with the C167 microcontroller. I went thru
the application note 161 where it explains
how to interface the 8051 micocontroller with the ST7066 LCD. I will not be using the ST7066 LCD with the C167 but I wanted to moreless use the 8051 template. Or is this code just for simulation purposes? Well I tried to modify the code but unfortunately it did not work. I think I am missing a library or need to modify the code some more.
Can anyone help me? Is there another library I should use besides reg167, stdio and intrins. and if not what could be the problem?
Thanks a bunch,
LILY

  • Well I tried to modify the code but unfortunately it did not work.

    Please be more specific: precisely what "didn't work?"
    Did it compile? if not, what messages did you get?
    If it did compile, what happens when it runs?

    I think I am missing a library
    What makes you think that?

  • I am using a serial display 4x20c from Matrix Orbital.

    I have also being working with the DAVE CD. It creates the skeleton for you C-program but I have been having problems with it because I am not sure on the project settings. Have you ever worked with DAVE?

    I do have the Keil CD but I can't seem to find the "Final work on 8051". Can you be more specific on where this info. could be?

    Thanks,
    LILY


  • If you didn't get ANY program working on C167, I suggest that you do that before trying more advanced things like interfacing an LCD. Try creating your own application that does simple things like reading some ports, blinking LEDs depending on the values read, etc. This will give you some confidence.
    Good luck!
    Mike