Hi Denis, Thanks for your answer, I agree with you that both boards have an ADC. I think my initial message was miss-leading.
The main difference is that the Beaglebone Bone Black is based on the ti-am335x which as a built-in ADC (tsc-adc module), for this configuration there is indeed many examples as the ones you mentioned. However, when it comes to the Beaglebone AI, it is based on the ti-am5729 which does not have an on chip ADC, so the ADC of the Beaglebone AI is on board (an STMPE811) and interfaced via I2C with the am5729 chip, at least this is what I understood from this diagram <https://github.com/beagleboard/beaglebone-ai/blob/master/BeagleBone-AI_RevA2_sch.pdf>(page 18). This is why I am looking to interface the BeagleBone AI to the ADC via I2C because it is the way it is wired on the Beaglebone AI. Pierrick Le lundi 14 septembre 2020 12:35:13 UTC-4, Dennis Bieber a écrit : > > On Mon, 14 Sep 2020 07:56:55 -0700 (PDT), in > gmane.comp.hardware.beagleboard.user Pierrick Rauby > <[email protected] <javascript:>> 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/a25c9ee9-f0ad-4490-915e-b6883414d6d0o%40googlegroups.com.
