??? 11/05/04 20:00 Read: times |
#80513 - some day you will go nuts SDCCor not Responding to: ???'s previous message |
done that myself.
sbit at 0xB2 P3_2 ; #define button P3_2 And you will end up with TWO definitions of the same bit instead use sbit at 0xB2 button With two definitions for the same bit you will some day have both used and, in a debugging session, not be able to figure out why a bit does not behave like it should because you look only for one of the names. Once I spent an inordinate amount of time debugging someone elses code for the above reason and ever since I have used my own sfr definition files (grab the standard, copy and rename it) with bits renamed as needed for clarity. Erik |