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?
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: How is the ULP coprocessor going to be programmed?
Check https://github.com/krzychb/ulp-loop.urbanze wrote: Just toggle on/off a pin...
Re: How is the ULP coprocessor going to be programmed?
I see before, and dont understand write(reg)krzychb wrote:Check https://github.com/krzychb/ulp-loop.urbanze wrote: Just toggle on/off a pin...
You can explain better how it work?
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
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.urbanze wrote: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-memoryESP_igrr wrote:Which 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:tomtor wrote: Offset – 10-bit signed value, offset in BYTES
https://esp-idf.readthedocs.io/en/lates ... addressing
Very nice example, thanks.tomtor wrote: 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.krzychb wrote:There are several instances of using "WRITE_RTC_REG" in https://github.com/krzychb/ulp-loop/blo ... op_blink.S.urbanze wrote: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: No registered users and 98 guests