Feb 20, 2013 #1 M mosajawdet Newbie level 1 Joined Feb 20, 2013 Messages 0 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,280 Activity points 1,280 Dear all : I'm a beginner in micro c and i made a program but it doesn't work at Proteus simulation & it compiling write I'm using pic 16f877a Code: void main() { char i; { trisd=0x00; while(1) Portd.f0=1; Delay_ms(30000); Delay_ms(30000); Delay_ms(30000); Delay_ms(30000); portd.f0=0; for( i==1; i==120 ;i++); { Delay_ms(30000); Delay_ms(30000); } } }
Dear all : I'm a beginner in micro c and i made a program but it doesn't work at Proteus simulation & it compiling write I'm using pic 16f877a Code: void main() { char i; { trisd=0x00; while(1) Portd.f0=1; Delay_ms(30000); Delay_ms(30000); Delay_ms(30000); Delay_ms(30000); portd.f0=0; for( i==1; i==120 ;i++); { Delay_ms(30000); Delay_ms(30000); } } }
Oct 4, 2014 #2 M mdvrajkot Newbie level 6 Joined Jun 13, 2013 Messages 14 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,283 Location India Activity points 1,376 in microC compiler you can use the below code for accessing the bit. [/CODE]PORTD_bit_0 = 1; PORTD_bit_0 = 0;[/CODE]
in microC compiler you can use the below code for accessing the bit. [/CODE]PORTD_bit_0 = 1; PORTD_bit_0 = 0;[/CODE]