View previous topic :: View next topic |
Author |
Message |
Guest
|
Port G & F |
Posted: Tue Oct 26, 2004 1:27 pm |
|
|
Port G & F are digital ports multiplexed with peripherals.
It is a little confusing to me how to set them all up for digital I/O.
In my codes, if I just set up TRIS and LAT registers, it some times work, but not always
Thanks for your time! |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Tue Oct 26, 2004 1:36 pm |
|
|
Also, since I use
setup_adc(NO_ANALOGS);
and do not enable any comparators, shouldn't all F&G port be set up as digital IO correctly? |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Tue Oct 26, 2004 1:59 pm |
|
|
I added these to my initialization codes, and still have the problem
setup_adc(NO_ANALOGS);
setup_ccp1(CCP_OFF);
setup_ccp2(CCP_OFF);
setup_ccp3(CCP_OFF);
setup_ccp4(CCP_OFF);
setup_ccp5(CCP_OFF); |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Oct 26, 2004 2:05 pm |
|
|
What PIC are you using ? And, what compiler and what version ? |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Tue Oct 26, 2004 2:09 pm |
|
|
PIC18F8620
I tried both 3.186 and 3.212 |
|
![](templates/subSilver/images/spacer.gif) |
|