Inverted Output on PropRPM Board?
deiloohay
Posts: 11
Using this code:
VAR
· BYTE· inputPin
PUB ButtonLed····················· ' Pushbutton/Led Method
··· inputPin := 0
··· dira[noparse][[/noparse]inputPin] := 0
··· dira[noparse][[/noparse]25]· := 1··
··· KeepLooping
PUB KeepLooping········································
··· repeat························ ' Endless loop
····· outa[noparse][[/noparse]25] := ina[noparse][[/noparse]inputPin]··· ' Copy P21 input to P6 ouput··
after F10, the LED on pin 25 lights up, even with pin 0 grounded or connected to ground via a 10k resistor.· i've used a scope to verify this pin is logic 0.· voltmeter agrees....·
VAR
· BYTE· inputPin
PUB ButtonLed····················· ' Pushbutton/Led Method
··· inputPin := 0
··· dira[noparse][[/noparse]inputPin] := 0
··· dira[noparse][[/noparse]25]· := 1··
··· KeepLooping
PUB KeepLooping········································
··· repeat························ ' Endless loop
····· outa[noparse][[/noparse]25] := ina[noparse][[/noparse]inputPin]··· ' Copy P21 input to P6 ouput··
after F10, the LED on pin 25 lights up, even with pin 0 grounded or connected to ground via a 10k resistor.· i've used a scope to verify this pin is logic 0.· voltmeter agrees....·
Comments
It look like it is wired up so that the LED will come on when the pin is low which is what you are seeing.
Is there an advantage to this configuration that this would defeat?