??? 01/19/10 05:32 Read: times |
#172582 - "#define" not working.."sbit" works Responding to: ???'s previous message |
I replaced my bit initializations with the following...
#define MTRS P2_0 #define MTRE P2_1 #define MTRW P2_2 #define MTRH P2_3 But this doesn't work with Keil. As Andy said: Andy Neil said:
Keil has "overloaded" the '^' operator for defining bit positions in their proprietary sbit language extension:
See: http://www.keil.com/support/m...e_sbit.htm Is the code rightly written? The servos still move erratically with the above code. Will switching over to the Atmega series help? |