Hello forum,
can anybody help me with an issue I have programming 18F4455? I want not to use the port B due the interrupt inputs I need, so I tied the LCD to the port A and also test it on port C. With a simple program, just a "hello" printout, only on port B worked. I also connect pull up resistors. In simulation (flowcode V5) everything is fine...On port C I change the pin C3 with C6 because C3 doesn't exist. What am I doing wrong?
Sakis
LCD on port other than B...
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: LCD on port other than B...
Hello,
PortA Pin4 is an open collector type pin and as such cannot be used to source current. A pull up resistor around 4.7K between this pin and the +v supply rail should allow the pin to function correctly.
PortC has pins C4 and C5 dedicated to the USB hardware, these pins cannot be used as outputs.
Would PortD be a possibility, no complications with using this port.
PortA Pin4 is an open collector type pin and as such cannot be used to source current. A pull up resistor around 4.7K between this pin and the +v supply rail should allow the pin to function correctly.
PortC has pins C4 and C5 dedicated to the USB hardware, these pins cannot be used as outputs.
Would PortD be a possibility, no complications with using this port.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 44
- Joined: Sat Dec 11, 2010 8:50 pm
- Has thanked: 8 times
- Been thanked: 3 times
- Contact:
Re: LCD on port other than B...
Thank you Ben for your reply! I tied pull up resistors on port A but no change. Any way I used this PIC type because I need 2 8bit inputs, an LCD screen and an interrupt input but it seems to be a bad choice...Maybe I will use multiplexing to do that.
Thank you again
sakis
Thank you again
sakis