On Mon, 14 Sep 2020 07:56:55 -0700 (PDT), in gmane.comp.hardware.beagleboard.user Pierrick Rauby <[email protected]> wrote:
>Hi All, >I am trying to implement deterministic data acquisition on the Beaglebone >AI. >I was thinking of using the PRU with the ADC as it is done on one the >TechLab example analogIn.pru0.c ><https://github.com/beagleboard/cloud9-examples/blob/v2020.01/PocketBeagle/TechLab/.challenges/analogIn.pru0.c>, > >however, as the BBAI is not based on the AM335x chip the STMPE811QTR ADC >needs to be interfaced with the PRU through I2C and I am not quite sure how >to achieve that. I have checked Mark Yoder's PRU cookbook without luck and >I do not find any PRU example specific to the ADC on the Beaglebone AI. I >would like to know where I can find example of the use of I2C bus with the >PRU and the configuration of the ADC of the Beaglebone AI. >Thanks, >Pierrick I'm afraid I don't have an answer -- but I have to comment that your query itself (and subject line) is somewhat misleading. Especially as you state "configuration of the ADC of the Beaglebone AI" -- since the BBAI (and BBB) have built-in on-board ADC capability which CAN be accessed from the PRU (and lots of hits in Google on just that) However, your mention of an STMPE811 (the datasheet calls it an "8-bit port expander with advanced touchscreen controller") indicates that specifying ADC is a red-herring. Your REAL question becomes: PRU - I2C on BBAI Given the date, this https://github.com/chanakya-vc/PRU-I2C_SPI_master/wiki is BBB related. It also appears to be an attempt to use the PRU as an additional I2C (or SPI) master -- the PRU implementing the communication protocol via "bit-banging"; not having the PRU access the native I2C of the SoC. The closest I've found for having a PRU command the system I2C is https://groups.google.com/forum/#!topic/beagleboard/QjjoNglpJ8s and a school project at <http://iis-projects.ee.ethz.ch/index.php/Control_an_external_ADC_using_Programmable_Real-Time_Unit_(PRU)_Subsystem_on_Beaglebone_Black_used_as_embedded_HPC-performance-monitoring_device> which appears to still be looking for a student to do the implementation """ Status: Available Looking for 1 Master Students (Semester Project) """ (If it has been worked, the results appear to not be available openly) Remember, the full name for the PRU is PRU-ICSS, and the ICSS part is "industrial communication sub-system" -- ie; one writes the communication protocol to run /on/ the PRU. -- Dennis L Bieber -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/663vlf9d1o670anmecne4vvhsa2knn0gak%404ax.com.
