![]() |
Inversion of the digital IO pins
I was hoping to use an external EEPROM to store data for our autonomous routine, it uses an I2C interface, but I have code written to bit-bang, so that is ok, but here is my question. I know the pins are inverted as an input, since when they are low, you get a 1 in software, and when they are high, you get a 0. But are they inverted as outputs too?
Thanks |
Re: Inversion of the digital IO pins
Quote:
|
Re: Inversion of the digital IO pins
Quote:
|
Re: Inversion of the digital IO pins
Quote:
|
Re: Inversion of the digital IO pins
A pullup does not imply inversion. It just means that when you leave it floating, you will get a logic one on the input. If you have an input connected to it that will pull the input down, then you will get a logic zero as the input.
Matt |
Re: Inversion of the digital IO pins
Nevermind, limit switches, use OPEN and CLOSED, not a bit test... bah sorry
Its been a long 6 weeks... (*mutters on about being designer, team leader, and programmer...*) I thought that they made it so that when the switch was closed, the bit read 1, and when it was open it read 0. in user_routines.h Code:
#define OPEN 1 /* Limit switch is open (input is floating high). */ |
| All times are GMT -5. The time now is 04:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi