kam
Joined: 15 Jul 2005 Posts: 59
|
Question about ports....pic18f4520 |
Posted: Tue Sep 12, 2006 6:06 pm |
|
|
Hi all,
Just a question....
I've written code to run an OLED LCD display. It all works fine using SPI bitbanging code etc...life is good.
I have the pins mapped to "C0~C5" and "A5"
Life is good.
NOW, when I move the pins to lets say "D0~D6", nada, nothing. Actually, I get display errors on the screen.
Now my question is, looking at the spec for the pic18f4520, the ports on "C" are mapped as "Digital I/O - SP", and so are the ones on Port D. I have disabled PSP.
Whats the difference? Is there any? Why would the same code but different pins make a difference is they are both "Digital I/O-SP"???
Any thoughts, advice, sharp poke in the eye, enlightenment, etc would be greatly appriciated!
BTW, I am prototyping on the CCS Software Proto Board...
~Kam (^8* |
|