Hi Denis, Thanks for the help and sorry that I only answer now. I understand what you mean with the I2C, I tried to change the topic of the post without luck yet. I am starting to work on that with the examples you have provided. Do you think that the PRUDAQ project (here <https://github.com/google/prudaq/tree/master/src>) can also be a good starting point it seems that he is doing bit-banging on the /src/pru0.p and /src/pru1.p codes? Finally, I will have a beginner's question about bit-banging: I have read that bit-banging is much slower that using an i2c library, but as far as I understand an i2c library is doing the same as bit-banging or am I missing something huge here ? Thanks !
Le mardi 15 septembre 2020 à 12:45:32 UTC-4, Dennis Bieber a écrit : > On Mon, 14 Sep 2020 15:34:35 -0700 (PDT), in > gmane.comp.hardware.beagleboard.user Pierrick Rauby > <[email protected]> wrote: > > >Hi Denis, > >Thanks for your answer, I agree with you that both boards have an ADC. I > >think my initial message was miss-leading. > > > > >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 > > I'd somehow missed that the BBAI ADC was "external" -- turns out the > ADC mentions in the TRM are just for the internal temperature readings. > > In either case, I still believe the concern is not really with the ADC > chip, but with getting I2C communication from the PRU. And based on my > searches -- it just isn't done. > > There is no OS on the PRU, and I2C is handled by Linux kernel drivers. > I suspect you'd have to bit-bang the I2C protocol on whatever GPIO is > applicable (which may imply having to disable the OS I2C via device tree in > order to convert the pins to PRU-GPIO that the PRU can manipulate){That, or > disable Linux driver and perform low-level I/O to the I2C control registers > -- ie; write an I2C driver library on the PRU} > > Sorry I have nothing more encouraging. > > > > > -- > 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/c534341f-3191-4d92-a475-0233ad7b15e9n%40googlegroups.com.
