Page 1 of 1

[question] ULP FSM macro

Posted: Mon Apr 03, 2023 7:47 am
by chegewara
Hi,
maybe its lame question, but is there some I_MUL and/or I_DIV like macro? I cant find one.


Thanks

Re: [question] ULP FSM macro

Posted: Mon Apr 03, 2023 8:07 am
by boarchuz
No, it can't multiply or divide. You can left and right shift though, so if the required logic can work with powers of 2 then you can multiply and divide using shifts.

Other options would be to write subroutines for these operations if you really need them, or gather raw data and let the SoC process it.

Re: [question] ULP FSM macro

Posted: Mon Apr 03, 2023 8:32 am
by chegewara
Thanks.

I have the logic to read ADC data from thermistor and i wanted to eventually wake up when out of range.
Probably i can do it with just a simply comaparison, just i have to think how.
It is for CE cert, battery charging state in temp conditions.