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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/26/11 20:55
Modified:
  04/26/11 20:56

Read: times


 
#182064 - Why macros?
Responding to: ???'s previous message
What do you mean with enable/disable?

When talking about digital logic circuits, "disable" are often used when tristating an output, or when stopping a chip from listening to an input (like a counter ignoring the clock signal).

You can use macros for almost everything. The question is: why? Always, when you ask a question, supply enough information that a reader will know "why".

We can't tell you what is "a better way" unless you start by telling us "why" - what metric you are using that makes you want to use macros.

You can create named bit variables that sets a I/O pin high/low or that reads back the state of the pin.

Edit: Any sensible compiler should allow you to create named bit variables controlling I/O pins. If your specifically chosen C compiler allows this or not should be covered in the compiler manual. The manual you by now have spent some time looking through?

List of 16 messages in thread
TopicAuthorDate
Sbit or Bit decalaration            01/01/70 00:00      
   Users Manual            01/01/70 00:00      
   RTFM            01/01/70 00:00      
      uC51            01/01/70 00:00      
         How to post links            01/01/70 00:00      
            Yes, really strange            01/01/70 00:00      
      bool            01/01/70 00:00      
         Andys statement stands            01/01/70 00:00      
            nobody mentioned storage            01/01/70 00:00      
               Yes, I did - as did the OP [edited]            01/01/70 00:00      
               Two values still != single-bit data type            01/01/70 00:00      
                  Depends what you mean by "bit" ?            01/01/70 00:00      
                     controller's pin            01/01/70 00:00      
                        Why macros?            01/01/70 00:00      
                        RTFM!            01/01/70 00:00      
                           Was easy to locate            01/01/70 00:00      

Back to Subject List