MIOS_DOUT_SRSet(1, 00000001) Will set the 1st pin (aka Pin 0).... or MIOS_DOUT_SRSet(1, 01000000) Will set the 7th pin (aka Pin 6)