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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/26/08 10:55
Read: times


 
#160312 - Such a #define lies to the user
Responding to: ???'s previous message
But if the SET_DDR #define does nothing, it does not fulfill its promise.

It is correct that no action is needed when setting the pin as an output. But when configuring the pin as an input, the #define is required to make sure that the pin is driven high.

The #define should either make sure the pin works as expected or the user should not hide the functionality of the port.

List of 8 messages in thread
TopicAuthorDate
AT89S8253's port bits in C            01/01/70 00:00      
   What Compiler?            01/01/70 00:00      
      8051s don't have any port direction settings.            01/01/70 00:00      
   RE: I can't find it anywhere            01/01/70 00:00      
   Using 8051 port as output.            01/01/70 00:00      
      Such a #define lies to the user            01/01/70 00:00      
         Point Taken            01/01/70 00:00      
            8051 cannot perform as a SOURCE            01/01/70 00:00      

Back to Subject List