Hello,
I am also very interesting about this. I need to complete a fast ADC / DAC with some numeric matrix calculation. I thought about using a BBB, and the PRUs seemed to be a very interesting point. The numeric part could be done using Xenomai. Apparently the use of SPI with the PRUs is possible. So can I use SPI ADC / DAC with the PRU? Could anyone be more precise on how to do it? Write SPI drivers for the PRU? If I was not clear enough, tell me :) Thank you very much Le mardi 22 octobre 2013 17:23:11 UTC+2, u.pel...@srett.com a écrit : > > Hi, > > Thanks for these informations. > > But I would like to use the PRU to get data from a fast ADC connected by > SPI. I get that there is no example of SPI connection but is it possible ? > It seems that the PRU can only access to UART, CFG, eCAP interfaces. Am I > right ? > > Thanks. > > Ugo > > Le jeudi 26 septembre 2013 00:05:00 UTC+2, Charles Steinkuehler a écrit : >> >> On 9/25/2013 4:48 PM, Mark A. Yoder wrote: >> > What's the current status of the PRUs? Has anyone produced some >> tutorials >> > on how to do simple things on it? I've looked at the examples in >> Jason's >> > post, but more examples on how to do simple things would be helpful. >> >> I have some basic example code I tried to comment very well for use as >> an example of the PRU debugger available with LinuxCNC. It mostly just >> sets up the timer portion of the industrial Ethernet controller (the >> only part that's documented) and blinks some LEDs. I tried to provide >> examples of various assembler features (like using records/structs) as >> well as use a variety of coding techniques (including a jump table for >> case logic). Perhaps you might find something useful reading through >> the code: >> >> >> https://github.com/cdsteinkuehler/linuxcnc/blob/MachineKit-ubc/configs/ARM/PRU-Debugger/pruexample.p >> >> >> ...or if you've got a copy of my MachineKit image you can try running it >> with the debugger and single-stepping through the code. >> >> > For example, how does on set up a double buffer between the ARM and the >> PRU >> > with the PRU interrupting the ARM when it's finished with one buffer >> and is >> > working on the next so the ARM can refill the buffer. >> >> That is totally *NOT* simple and has a *LOT* of places where things can >> go wrong (race conditions, deadlocks, cache management, etc). I'll >> probably have code that deals with all of this at some point, but I >> wouldn't expect it to be a newbie oriented HOWTO code example. >> >> > Or, examples of the PRU talking to things on the i2c or SPI buses. >> > >> > Has anyone gotten the PRU to control a quadcopter? >> >> No to both of the above, AFAIK. >> >> -- >> Charles Steinkuehler >> cha...@steinkuehler.net >> >> -- 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 beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.