venkates2218
Full Member level 6
In PIC16F628A I tried to use RA4 as output port but I can't use that port as O/P port.Later I checked inPIC16F628A's datasheet,in that they mentioned "PORT RA4 is multiplexed with T0CKI clock input ".
This is my config :
TRISA = 0X00;
PORTA = 0X00;
CMCON = 0X07;
TRISB = 0b10001100;
PORTB = 0b10001100;
This is my control part:
if(RB2==1){
RA4=~RA4;
}
My problem is when I pressed the switch means I can't get any O/P in RA4 pin.
How to solve this issue...?
This is my config :
TRISA = 0X00;
PORTA = 0X00;
CMCON = 0X07;
TRISB = 0b10001100;
PORTB = 0b10001100;
This is my control part:
if(RB2==1){
RA4=~RA4;
}
My problem is when I pressed the switch means I can't get any O/P in RA4 pin.
How to solve this issue...?