ULP Processor.........................................................................................................................548
Preparing a ULP co-processor environment........................................................................549
ULP Instruction set..............................................................................................................549
NOP – No operation........................................................................................................551
ADD – Add to a register..................................................................................................551
SUB – Subtract from register..........................................................................................551
AND – Logical AND of two operands..............................................................................552
OR – Logical OR of two operands..................................................................................552
LSH – Logical Shift Left..................................................................................................552
RSH – Logical Shift Right...............................................................................................552
MOVE – Move to register................................................................................................552
ST – Store data to memory.............................................................................................553
LD – Load data from memory.........................................................................................553
JUMP – Jump to an absolute address............................................................................553
JUMPR – Jump relative with condition............................................................................553
JUMPS – Jump relative based on stage count...............................................................554
STAGE_RST – Reset the stage count register...............................................................554
STAGE_INC – Increment the stage count register..........................................................554
STAGE_DEC – Decrement the stage count register.......................................................554
HALT – End the program................................................................................................554
WAKE – Wakeup the chip...............................................................................................554
SLEEP – Set the ULP wakeup timer period....................................................................554
WAIT – Wait some number of cycles..............................................................................554
TSENS – Do measurement with the temperature sensor...............................................555
ADC – Do measurement with ADC.................................................................................555
REG_RD – Read from peripheral register.......................................................................555
REG_WR – Write to peripheral register..........................................................................555
ULP co-processor assembler coding...................................................................................556
Loading and starting a ULP co-processor application..........................................................557
Waking up the ULP co-processor........................................................................................558
Peripheral registers for ULP co-processor...........................................................................558
SENS_ULP_CP_SLEEP_CYC0_REG...........................................................................558
SENS_ULP_CP_SLEEP_CYC1_REG...........................................................................558
SENS_ULP_CP_SLEEP_CYC2_REG...........................................................................558
SENS_ULP_CP_SLEEP_CYC3_REG...........................................................................558
SENS_ULP_CP_SLEEP_CYC4_REG...........................................................................559
SENS_SAR_START_FORCE_REG...............................................................................559
Electronics...............................................................................................................................560
Transistors as switches.......................................................................................................560
Logic Level Shifting.............................................................................................................561
Projects....................................................................................................................................563
JerryScript library for ESP32...............................................................................................563
The "require" capability...................................................................................................563
API Reference.........................................................................................................................563
Configuration, status and operational retrieval....................................................................564
Page 13