I/O pins. Control??

Having issues with the site, hardware, source code, or any other issues?
Post Reply
NT4RT
Posts: 1
Joined: Tue Sep 08, 2015 6:44 am
Location: Rock Hill, SC, USA

I/O pins. Control??

Post by NT4RT »

I have the I/O board on my unit. It is not clear to me how to control these pins from Blade CLI. Is special FPGA code needed? Or does the standard FPGA code include a path to these pins? If issue has been addressed before, please let me know where. I would like to be able to wiggle an output pin from script file in Blade CLI.

Thanks Bruce NT4RT
jynik
Posts: 455
Joined: Thu Jun 06, 2013 8:15 pm

Re: I/O pins. Control??

Post by jynik »

Hi Bruce,

In the past, these had been available through some lower level programming interfaces and one would have to be familiar with the underlying FPGA I/O control registers.

I recently added some higher-level API functions for performing GPIO pin reads and masked writes. (The masked write leverages RMW operations being performed in the FPGA, alleviating the need to send two USB requests to first read the GPIO register, modify it, and then write the change back over USB.)

I just added some information here on the bladeRF-cli Tips and Tricks wiki page for you. If anything is not clear, let me know and we can further revise that entry.

As noted on this page, you'll need the latest code from master and FPGA v0.4.1 to use this. Are you using the Ubuntu PPA or familiar with building this code from source? If not, we can chat about getting you running the latest until this is included in the next release.

Best regards,
Jon
Post Reply