Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4874

General • Re: Using PIO to combine two 16-bit words into one 32-bit word

$
0
0
I can't see a faster way to do that (though that doesn't guarantee there isn't one I've missed). But my instinct is that you would be better off keeping the input as 32-bit: it's much easier to split 32-bit input into 16-bit words (or throw away unwanted halfwords) than to glue the 16-bit values back together.
Yes, I believe you're correct. Have dived into it a bit more, I don't see a way in which dropping to 16-bit helps at all--not even in bus traffic. It's better to leave the auto pull threshold at 16, but ship 32-bit values where I need them.

Statistics: Posted by annirak — Mon Jan 22, 2024 3:40 pm



Viewing all articles
Browse latest Browse all 4874

Trending Articles