Page 1 of 1

ESP32 INTERRUPT PROBLEM

Posted: Fri Nov 05, 2021 9:15 pm
by unity-control
Hi guys,

I've been using Flowcode for a very long time, always with PIC16/18/32. It has always been very straightforward to make an LED blink every second from within an interrupt for testing...

However I'm trying ESP32 and need some help with interrupts as can't get this to work at all :?:

I've enabled Interrupt 0 and a simple counter code inside, but the interrupt doesn't seem to be behaving as expected. How is the interrupt period set/calculated in ESP32 chip? :-(

Thanks for your help!
R

Re: ESP32 INTERRUPT PROBLEM

Posted: Sat Nov 06, 2021 12:52 pm
by p.erasmus
Hi.

I have done the setup for 200 mSec interupt in Timer0 ,tested on my WROOM board working fine
it only flash the onbaord led at 200 msec intervals as I tested only the interrupt

ESP32_WROOM_TEST_V1.fcfx
(13.5 KiB) Downloaded 105 times

Re: ESP32 INTERRUPT PROBLEM

Posted: Sat Nov 06, 2021 1:17 pm
by unity-control
Thanks for this,

OK that explains it! The period cannot be set to 1000, it's strange as that's the setting there on the menu when on milliseconds... :evil: And the integer has to be smaller than 256 ;-)

So all fine now, that makes sense. It's not as flexible as the PICs, but very simple to use! :-)

Spasiba!
R

Re: ESP32 INTERRUPT PROBLEM

Posted: Sat Nov 06, 2021 1:52 pm
by p.erasmus
ne cha sto :D

You can also set the properties to seconds and enter 1 in the period then it also works :D for second counts :D