Picomite(VGA) V5.07.07 betas - bug fixes + focus on PIO


Author Message
Bleep

Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 817
Posted: 08:46pm 13 Jan 2023      

  matherp said  PIO (SHIFTCTRL push_threshold [,pull_threshold] [,autopush] [,autopull] [,in_shiftdir] [,out_shiftdir] [,FJOIN_RX] [,FJOIN_TX]) 'additional optional parameters to create 8-word RX or TX FIFOs

NB: RX and TX are from the Basic code perspective


Hi Peter,
I've just tried using the FJOIN_TX, this is for my Basic code sending out data to the FiFo for transmission by the PIO, however I've found I actually have to use:-
f0=Pio(shiftctrl 0,0,0,1,0,0,1,0) 'Set Auto Pull at 32bits (0) & Extend Tx  FiFo

Which would seem to me to be using FJOIN_RX, so either I'm not understanding the TX RX direction, or I'm doing something wrong. If I actually set FJOIN_TX my code locks up, presumably because there is no FiFo for it to write to.
Regards, Kevin.