Two questions on the ULP
Posted: Sun Aug 25, 2019 6:18 am
I have a couple of questions on the ULP.
I want to do some bit-banging to read an HX711, an ADC device that interfaces to load cells. I have to clock the bits off the HX711, so want to output a single clock bit to one GPIO and input from another. I've got this working on the main CPUs, but want to do it also on the ULP. Can single GPIOs be written and read using the ULP? If so, what's the instruction to do it?
Second question: when the LSH instruction (Logical Shift Left) executes, does the MSB in Rsrc1 shift into the overflow flag? I don't strictly need this, but the code will be a bit uglier without it. There's no mention of this in the docs. This behavior is present in other processors I've written assembly to, and it's been convenient on occasion.
Thanks in advance.
wevets
I want to do some bit-banging to read an HX711, an ADC device that interfaces to load cells. I have to clock the bits off the HX711, so want to output a single clock bit to one GPIO and input from another. I've got this working on the main CPUs, but want to do it also on the ULP. Can single GPIOs be written and read using the ULP? If so, what's the instruction to do it?
Second question: when the LSH instruction (Logical Shift Left) executes, does the MSB in Rsrc1 shift into the overflow flag? I don't strictly need this, but the code will be a bit uglier without it. There's no mention of this in the docs. This behavior is present in other processors I've written assembly to, and it's been convenient on occasion.
Thanks in advance.
wevets