Use ULP to blink LED

apuder
Posts: 44
Joined: Mon Mar 26, 2018 7:27 pm

Use ULP to blink LED

Postby apuder » Sat Jun 05, 2021 6:03 am

Hi,

I have been looking at this example where the author used the ULP to make an LED blink:
https://github.com/joba-1/Blink-ULP

The example uses GPIO 2 (RTC GPIO 12) to connect the LED. I tried unsuccessfully to change the example to make use of GPIO 25. According to table 4.4 of the TRM GPIO 25 is equivalent to RTC GPIO 6. The blink example uses RTC_IO_TOUCH_PAD2_REG to set the digital function for RTC GPIO 12. There is no corresponding register for RTC GPIO 6, so my question is if it is possible to use GPIO 25 and if yes, how to configure RTC IO_MUX.

TIA,
AP

WiFive
Posts: 3241
Joined: Tue Dec 01, 2015 7:35 am

Re: Use ULP to blink LED

Postby WiFive » Sat Jun 05, 2021 7:22 am

RTC_IO_PAD_DAC1_REG

apuder
Posts: 44
Joined: Mon Mar 26, 2018 7:27 pm

Re: Use ULP to blink LED

Postby apuder » Sun Jun 06, 2021 4:15 am

Thanks, that helped. I got it to work with:

Code: Select all

WRITE_RTC_REG(RTC_IO_PAD_DAC1_REG, 17, 1, 1)
WRITE_RTC_REG(RTC_IO_PAD_DAC1_REG, 15, 2, 0)
AP

Who is online

Users browsing this forum: No registered users and 49 guests