Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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

List of 32 messages in thread
TopicAuthorDate
SDCC input from single pin?            01/01/70 00:00      
   RE: SDCC input from single pin?            01/01/70 00:00      
      RE: SDCC input from single pin?            01/01/70 00:00      
         RE: SDCC input from single pin?            01/01/70 00:00      
            RTFM            01/01/70 00:00      
               RE: RTFM            01/01/70 00:00      
      RE: SDCC input from single pin?            01/01/70 00:00      
         RE: SDCC input from single pin?            01/01/70 00:00      
         some day you will go nuts SDCCor not            01/01/70 00:00      
   RE: SDCC input from single pin?            01/01/70 00:00      
      RE: SDCC input from single pin?            01/01/70 00:00      
   RE: SDCC input from single pin?            01/01/70 00:00      
   RE: SDCC input from single pin?            01/01/70 00:00      
   What does the manual say?            01/01/70 00:00      
      What the manual says            01/01/70 00:00      
   RE: SDCC input from single pin?            01/01/70 00:00      
      RE: SDCC input from single pin?            01/01/70 00:00      
         RE: SDCC input from single pin?            01/01/70 00:00      
            RE: SDCC input from single pin?            01/01/70 00:00      
               RE: SDCC input from single pin?            01/01/70 00:00      
         RE: SDCC input from single pin?            01/01/70 00:00      
            RE: SDCC input from single pin?            01/01/70 00:00      
            Charles Bannister            01/01/70 00:00      
            RE: P3_2            01/01/70 00:00      
            Criticisms of Keil            01/01/70 00:00      
               RE: Criticisms of Keil            01/01/70 00:00      
            RE: SDCC input from single pin?            01/01/70 00:00      
   Actually... My fault :)            01/01/70 00:00      
      Steady on...!            01/01/70 00:00      
   RE: SDCC input from single pin?            01/01/70 00:00      
      RE: SDCC input from single pin?            01/01/70 00:00      
      RE: User error            01/01/70 00:00      

Back to Subject List