Programe is following #,,,, sfr p0 = 0x80; sbit p10 = p0^0; sbit p11 = p0^1; void main(void) { ... fc(p10); } void fc(bit bv) { bv=1; ..... // delay bv=0; } but output of p10 is error;;;;;
By default, C is a pass by value language. That's the reason you program doesn't do what you want. Nonetheless, pointers to bits are not supported by the 8051. Jon
View all questions in Keil forum