On Mon, Feb 21, 2005 at 09:13:41PM -0500, cswiger wrote: > Gang - Compile/install CVS usrp and gr-usrp - now > sink.write_io(0,0xBBBB,0xMMMM) toggles bits on the TX daughter board > A-OK. It reads 0 or 3.3 volts on pins of J50 and J51. No problem. > > Now for reading the pins, all I get is '257' ;) > > Poweroff, exit python. Apply power, start python and type > > >>>from gnuradio import usrp > usrp: found usrp rev2 > >>>sink = usrp.sink_c(0,64) > TX d'board A: basic Tx > TX d'board B: <none> > >>>sink._write_oe(0,0x0000,0xffff) # unnecessary but in case, set all > True # pins inputs > >>>sink.read_io(0) # pin is still connected to the meter, > 257 # (floating). > >>>sink.read_io(0) # pin is connected to 3.3v pin on j47, > 257 # verified with meter. > >>>sink.read_io(0) # pin is connected to ground. > 257 > > Same results with Rx d'board. > I don't dare try 5vdc on the io pins without permission ;) > > How can I read a pin now? > > --Chuck
I'll take a look at it. Should work. 3.3V is the max voltage to apply to the inputs. No +5V. Eric _______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
