[question] ULP FSM macro

chegewara
Posts: 2333
Joined: Wed Jun 14, 2017 9:00 pm

[question] ULP FSM macro

Postby chegewara » Mon Apr 03, 2023 7:47 am

Hi,
maybe its lame question, but is there some I_MUL and/or I_DIV like macro? I cant find one.


Thanks

boarchuz
Posts: 601
Joined: Tue Aug 21, 2018 5:28 am

Re: [question] ULP FSM macro

Postby boarchuz » Mon Apr 03, 2023 8:07 am

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.

chegewara
Posts: 2333
Joined: Wed Jun 14, 2017 9:00 pm

Re: [question] ULP FSM macro

Postby chegewara » Mon Apr 03, 2023 8:32 am

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.

Who is online

Users browsing this forum: Google [Bot] and 88 guests