hi there~
i'm not a good at english please understand.
my board has 6 switch and its connected with RA0~RA5 of pic16c765.
but it's not working except RA4.
my code like bellows
.......
if(input(PIN_A0)) ~~
so i had changed switch to RB0~RB5 and its worked well
if(input(PIN_B0)) ~~
what is different RA with RB port??
my compiler is ccsc 3.203
thanks _________________ ^^/~
Ttelmah Guest
Posted: Thu Jun 02, 2005 10:38 am
Have you actually set portA, to be used for digital I/O?. By default chips with ADC units, wake up with the analog bits on port A, set to work as analog I/O, usually with the exception of A4.
You need to add:
setup_adc(NO_ANALOGS );
to switch these pins to digital operation.
Best Wishes
tramper2
Joined: 06 May 2005 Posts: 2
thanks Ttelmah
Posted: Thu Jun 02, 2005 6:25 pm
i'll try it ~~
thanks you very much _________________ ^^/~
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum