pennells Posted June 17, 2013 Share Posted June 17, 2013 This seems pretty straight forward as described in the software user manual. It seems that, if I want to use DAT0-DAT7 and SEL0-SEL7 as outputs, all I have to do is: Gate2[0].MuxMode = $FFFF; Gate2[0].MuxDir = $FFFF; Gate2[0].MuxPol = 0; //don't really care about polarity at this point Then, toggling Gate2[0].MuxData bits to toggle the output but the output seems to be set high regardless and the read-back value only changes if I change the MuxPol. We did similar functions on LowIo and everything worked as expected but it doesn't appear to work for the JTHW lines. Is there something missing in what we are doing? Do I have to use MuxIo? (Right now, MuxIo.Enable = 0 so I figured that it shouldn't interfere.) Link to comment Share on other sites More sharing options...
Sina.Sattari Posted June 17, 2013 Share Posted June 17, 2013 We use transceivers on the SEL and DAT lines which are setup for receive (input) by default. In order to set the SEL lines as output, please set: Gate2[0].PartData[1]=1 Link to comment Share on other sites More sharing options...
pennells Posted June 18, 2013 Author Share Posted June 18, 2013 That does seem to work for the SEL lines (upper 8 bits) but the DAT lines seem to still only work as outputs. I set Gate2[0].PartData[0] to 8 and the DAT lines seem to work as outputs. Is this what I was supposed to and/or allow to do? Link to comment Share on other sites More sharing options...
Sina.Sattari Posted June 19, 2013 Share Posted June 19, 2013 I missed that you wanted to use all of them as outputs. Yes. The bit 3 of Gate2.PartData[0] controls the direction of the transceiver for DAT0-DAT7 lines and bit 0 of Gate2.PartData[1] controls the direction of transceiver for SEL0 to SEL7 lines. Link to comment Share on other sites More sharing options...
Recommended Posts