I am thinking that I'll have PRU0 do all the configuration and enabling of 
the TSC and have the values for the two sensors that I want PRU1 to monitor 
put in FIFO1.  I'll have PRU0 only read from FIFO0 and let PRU1 only read 
from FIFO1.  
I will set up the three I want to read in one-shot mode and have PRU0 
enable them to be read again.   the other two will be in continuous mode so 
PRU0 won't have to do anything as long as it doesn't change their 
configuration.   
If PRU-1 waits until PRU-0 is done then it can read FIFO1 as needed to get 
the data.  I only need it to read these possibly as little as once per 
second so that alone will reduce the number of potential conflicts with 
PRU0.

If this will work it will eliminate having PRU0 read FIFO1 and write the 
data into shared memory space where PRU1 could read it.  That in itself 
would have a potential conflict on PRU0 write/PRU1 read.
On Sunday, June 13, 2021 at 11:38:06 AM UTC-4 TJF wrote:

>
> wal...@edenconceptsllc.com schrieb am Freitag, 11. Juni 2021 um 18:44:27 
> UTC+2:
>
>> ... setting up steps 1, 2 and 3 to read three analog lines in one-shot 
>> mode while steps 4 & are set up to read the other two analog lines in 
>> continous mode.  I'll write data from steps 1, 2 and 3 into FIFO0 and 4 & 5 
>> into FIFO1.
>>
> Yes. You can use the FIFO_select bit (26) in the STEPCONFIGx registers to 
> spread the samples. And when the Mode bits (1-0) are cleared (one-shot) the 
> sequencer will disable that step after operation (in STEPENABLE register). 
> Next turn  the sequencer will again consider only enabled steps.
>
> The question is can PRU0 read FIFO0 while PRU1 might try to read FIFO1 at 
>> the same time?
>>
> Not at the same time, but one after the other (L3 access control). AFAIR 
> PRU-1 waits until PRU-0 is done. And both PRUSS are waiting until ARM is 
> done.
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/fc828903-9075-412a-9f1a-ca8aec37eb1an%40googlegroups.com.

Reply via email to