H Hansen Member Apr 8, 2010 #1 Hi I have try a lot, and can see how to do set 1 bit high and low on C.0 on a picaxe 20x2 rest of the C port is input this is not possible ========== outpinsC.0 =1 this is my I/O mask dirsB=%11111111 dirsC=%00000001 Last edited: Apr 8, 2010
Hi I have try a lot, and can see how to do set 1 bit high and low on C.0 on a picaxe 20x2 rest of the C port is input this is not possible ========== outpinsC.0 =1 this is my I/O mask dirsB=%11111111 dirsC=%00000001
A Andrew Cowan Senior Member Apr 9, 2010 #5 For Dirs, is 0 not output and 1 for input? Or is PICAXE different to TRISIO on raw PICs?
hippy Ex-Staff (retired) Apr 9, 2010 #7 Being named DIRSx not TRISx is a strong hint that they are not the same, but I accept it can be easy to confuse the two if also using PICmicro. For DIRSx, the default is 0, and that's an input, 1 is non-default and that is output.
Being named DIRSx not TRISx is a strong hint that they are not the same, but I accept it can be easy to confuse the two if also using PICmicro. For DIRSx, the default is 0, and that's an input, 1 is non-default and that is output.