Anyone can write an example of "blink" with ulp? Just toggle on/off a pin...
I tried with "libraries" WRITE_RTC_REG(RTC_IO_TOUCH_PAD0_REG,RTC_IO_TOUCH_PAD0_HOLD_S,1,0) and simillars but doesnt worked. I had sucess with use ulp + delay, for, whiles, vars, but gpio not.
How is the ULP coprocessor going to be programmed?
Re: How is the ULP coprocessor going to be programmed?
Check https://github.com/krzychb/ulp-loop.Just toggle on/off a pin...
Re: How is the ULP coprocessor going to be programmed?
I see before, and dont understand write(reg)Check https://github.com/krzychb/ulp-loop.Just toggle on/off a pin...
You can explain better how it work?
Re: How is the ULP coprocessor going to be programmed?
There are several instances of using "WRITE_RTC_REG" in https://github.com/krzychb/ulp-loop/blo ... op_blink.S.I see before, and dont understand write(reg)
Which one would you like to be clarified?
Or you do not understand description in manual - http://esp-idf.readthedocs.io/en/latest ... ers-access
Re: How is the ULP coprocessor going to be programmed?
Quoute: https://esp-idf.readthedocs.io/en/lates ... the-memoryWhich sentence in readthedocs are you referring to (regarding 'the readthedocs html docu specify that a signed byte offset can be used to read data')?
=============================================================
LD – Load data from the memory
Syntax
LD Rdst, Rsrc, offset
Operands
Rdst – Register R[0..3], destination
Rsrc – Register R[0..3], holds address of destination, in 32-bit words
Offset – 10-bit signed value, offset in BYTES
=============================================================
See also
viewtopic.php?f=2&t=3228&p=15171#p15171
for working subroutines
Re: How is the ULP coprocessor going to be programmed?
That looks correct, please see the following section for an explanation:Offset – 10-bit signed value, offset in BYTES
https://esp-idf.readthedocs.io/en/lates ... addressing
Very nice example, thanks.See also viewtopic.php?f=2&t=3228&p=15171#p15171 for working subroutines![]()
Re: How is the ULP coprocessor going to be programmed?
hoho, sucess! Thanks for this links.There are several instances of using "WRITE_RTC_REG" in https://github.com/krzychb/ulp-loop/blo ... op_blink.S.I see before, and dont understand write(reg)
Which one would you like to be clarified?
Or you do not understand description in manual - http://esp-idf.readthedocs.io/en/latest ... ers-access
See code for simple blink with 1sec delay: https://i.imgur.com/Z7Am2rp.png

Who is online
Users browsing this forum: Applebot, ChatGPT-User, PetalBot, Qwantbot and 4 guests
