开发者

pic18f communicating with lcd module

I'm developing on a pic 18Fxxx (18F452) in assembly. I'm in a learning phase so I'm doing different simple exercise with the final goal to develop a "real" project.

At the moment I'm stuck with the LCD Module, I couldn't find any examples of a working protocol to comunicate with the screen (on 4 bit). Can someone please link me some code or a to-be-implemented procedure from 开发者_JAVA技巧which I can understand how all this works?

Thank you.

note: My IDE is MPLAB and I'm using PIC18 Simulator IDE to check how my code works.


You can take a look at these links, they cover the topics of LCD, PIC and ASM at diferent levels:

  • http://www.spickles.org/projects/4-bit-lcd
  • http://home.iae.nl/users/pouweha/lcd/lcd.shtml
  • http://www.winpicprog.co.uk/pic_tutorial.htm

As well I would like to recommend you to move on to C (if you don't need the ASM for something specific). Now it's common to develop for the PIC in C, the compilers are nice and the code is fast, you can learn the ASM and leave it for some "important" routines like interrupt handlers. After if you move to the 16bit or even 32bit pics the C will be a must.

I use the MikroC compiler for PIC from Mikroelektronica and it is working very well. You can find too free tools for C development. As a last point I recommend you to move on to the pic 18F4520, is pin comaptible with the 18F452 but is newer and powerfuller. (the 452 is discontinued i think)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜