LECA1239 Posted May 14, 2016 Share Posted May 14, 2016 In power PMAC clipper, J4 connector flag inputs status, initially shows 1(high) .And when flag input is connected to 0 volt supply, flag status shows to 0(low). We need to change the polarity of flag status. We want to configure Flag Inputs as general purpose digital inputs. Can you recommend solution for this issues . Example: In J8 and J9 connector we have one bite for changing the polarity of the inputs : Clipper[0].GpioPol[0] = $0000FFFF // Polarity Control (INPUTS IS SHOWS 0 OR 1 SETTING ). Question: Is there any bit setting or any other method to change the polarity on J4 . Link to comment Share on other sites More sharing options...
steve.milici Posted May 17, 2016 Share Posted May 17, 2016 You can only invert the "software" polarity" of the port with Clipper[0].GpioPol[0]. To change the inversion from the default (see the manual for details) for just the inputs of the JOPT port set Clipper[0].GpioPol[0] = $00FF0000. Note that Clipper[0].GpioPol[0] is the inversion control for both the JOPT and JTHW prot. The high 16 bits is for the JOPT - the inputs are the 8 MSBs of this. The actual hardware is fixed with a 10KOhm pull-up resistor to +5v. Link to comment Share on other sites More sharing options...
Recommended Posts