sachinkallely
Newbie level 3
I am doing a timer for two Ac s.
PIC used is PIC16F676
environment used is Mikro C
AC hase 5 phases:
1) both AC ON for specified time
2) one ac on other off for spacified time
3) step 1 repeat
4) step 2 repeat but ACs are alternated
5) loop repeats
In proteas the ports do not turn on. they just show grey color
code :
photo attached
PIC used is PIC16F676
environment used is Mikro C
AC hase 5 phases:
1) both AC ON for specified time
2) one ac on other off for spacified time
3) step 1 repeat
4) step 2 repeat but ACs are alternated
5) loop repeats
In proteas the ports do not turn on. they just show grey color
code :
Code:
void main() {
TRISC=0x00;
PORTC=0;
do
{
PORTC=0b000011;
Delay_ms(10000);
PORTC=0b000010;
Delay_ms(5000);
PORTC=0b000011;
Delay_ms(10000);
PORTC=0b000001;
Delay_ms(5000);
}while(1);
}
photo attached