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

Back to Subject List

Thread Closed: Issue successfully resolved

???
02/24/04 17:08
Read: times


 
#65441 - RE: Defining I/O pin
Responding to: ???'s previous message
Hi,
As you can read in the chapter you're referring to only ASSEMBLER COMMANDS are given to read an input pin or (re)set an output pin. They are of no use to me as I'm programming in a ANSI C compiler.

Do you really think that MCU uses C-operands,commands, etc when it executes a program written with C? (=

Now the question: what does datasheet say about "PUR_3: GPIO Pullup Register For Port 3"?
It says:
The MCU may write to this register. If the MCU sets this bit to 1, the pullup resistor is disconnected from the pin. If the MCU clears this bit to 0, the pullup resistor is connected to the pin. The pullup resistor is connected to the VCC power supply.

And at some lines early:
Each GPIO pin has an associated internal pullup resistor. It is strongly recommended that the pullup resistor remain connected to the pin to prevent oscillations in the input buffer. The only exception is if an external source always drives the input.

So now, could you answer: what shoud you write to PUR_3 according your hardware?

P.S. I hope you know how to write into SFR under C-language.

Regards,
Oleg


List of 17 messages in thread
TopicAuthorDate
Defining I/O pin            01/01/70 00:00      
   RE: Defining I/O pin            01/01/70 00:00      
      RE: Defining I/O pin            01/01/70 00:00      
         RE: Defining I/O pin            01/01/70 00:00      
            RE: Defining I/O pin            01/01/70 00:00      
               RE: Defining I/O pin            01/01/70 00:00      
               Dont let Michael Karas hear you...!            01/01/70 00:00      
               What the Data Sheet says            01/01/70 00:00      
                  Why the Data Sheet says it            01/01/70 00:00      
                  RE: What the Data Sheet says            01/01/70 00:00      
   RE: Defining I/O pin            01/01/70 00:00      
      Thanks Steve!            01/01/70 00:00      
      RE: Defining I/O pin            01/01/70 00:00      
         Thanks you too Erik ;)            01/01/70 00:00      
            RE: Thanks you too Erik ;)            01/01/70 00:00      
   RE: Defining I/O pin            01/01/70 00:00      
      Thanks for your supportive speech :)            01/01/70 00:00      

Back to Subject List