Search found 184 matches

by ESP_HengYC
Tue Jan 08, 2019 8:54 am
Forum: ESP-IDF 中文讨论版
Topic: 关于 ULP 的 SUB 指令产生 ALU overflow 的问题
Replies: 1
Views: 4958

Re: 关于 ULP 的 SUB 指令产生 ALU overflow 的问题

减法运算中,正数减负数也可能产生溢出,正溢出; 同理,负数减正数产生的溢出为负溢出
当进行加(减)法计算的时候,进(借)位是常见的现象。当出现了补码后,溢出,也是常见的. :lol:
by ESP_HengYC
Tue Jan 02, 2018 9:26 am
Forum: General Discussion
Topic: Is it possible to use structs in the ULP coprocessor
Replies: 0
Views: 2600

Is it possible to use structs in the ULP coprocessor

There is I found .struct expression https://sourceware.org/binutils/docs/as/Struct.html

.struct 0
field1:
.struct field1 + 4
field2:
.struct field2 + 4
field3:

So in ESP32 compatible with this feature? Could I see an example here?
by ESP_HengYC
Fri Dec 15, 2017 2:58 am
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 58114

Re: ULP global variables

Here I add an example of how to use TSENS command: https://github.com/espressif/esp-iot-so ... /ulp_tsens