discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] d'board io - write works, read ?


From: cswiger
Subject: [Discuss-gnuradio] d'board io - write works, read ?
Date: Mon, 21 Feb 2005 21:13:41 -0500 (EST)

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]