Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

PIC18f5440 usb lcd interface?

Discussion about LCD's and other related hardware

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351, hydrolisk1792

Post Reply
GizmoTheGreen
Posts: 53
Joined: November 19th, 2008, 12:00 pm

PIC18f5440 usb lcd interface?

Post by GizmoTheGreen »

I just bought a PIC18F4550.

Anyone know how to make a simple, usb -> HD47780 interface?

I have good soldering skills, and some programming skills, but i have never done anything PIC before.

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

It's really easy.
You can inspire yourself from ch242 source for 18F2550 and adapt it for your display.
Or I can dig after my sourcecode for the 4x40 display.

C18 Student Edition is available for free from Microchip.

GizmoTheGreen
Posts: 53
Joined: November 19th, 2008, 12:00 pm

Post by GizmoTheGreen »

thanks, any links for that source or c18 student edition?

i also have no idea about the chip pins and signals, do they need resistors, capacitors?

ive heard terms like pullup resistor but i have no idea what it means

Im also completely new to coding for pic's, ive only done c/c++ some console apps before.

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

You can begin the journey here: http://www.microchip.com/
This is PIC18F4550's page: http://www.microchip.com/wwwproducts/De ... e=en010300
there you will find the datasheet and various application notes.

You will have to download the USB framework: http://www.microchip.com/stellent/idcpl ... e=en537044 and look inside for USB CDC example (USB COM port)

That example can be compiled with
C18 http://www.microchip.com/stellent/idcpl ... e=en010014
installed after first installing
MPLAB IDE http://www.microchip.com/stellent/idcpl ... t=SW007002

Have a good read and post back ;)

GizmoTheGreen
Posts: 53
Joined: November 19th, 2008, 12:00 pm

Post by GizmoTheGreen »

can you use 4bit mode on a com port?
instead of 8bit on lpt.

coz i have a usb2com port lying around

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

com port has signals in the range of +12V/-12V, not usable.

GizmoTheGreen
Posts: 53
Joined: November 19th, 2008, 12:00 pm

Post by GizmoTheGreen »

not all do?
i think some has 5v, depending on the mobo

i think its been mentioned in forums when discussing those easy diy jdm programmers.

how about using resistors or 5v regulator? i have a 7805 lying around...

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

well, even with TTL levels there is still 1 big problem, the com port doesn't have IO, it's either input or output (3 inputs and 3 outputs / serial port if I remember correctly).

and you need at least 5 outputs to drive an lcd.

lucas_siglo21
Posts: 71
Joined: November 18th, 2007, 6:11 pm
Location: Bariloche, Argentina
Contact:

Post by lucas_siglo21 »

if you gant to connect a pic to a serial rs-232 use a MAX232, it converts the levels

Post Reply