-->
Page 3 of 3

Re: Uknown basic features

PostPosted: Fri May 29, 2015 10:38 am
by kenn
In the software you can have multiple timers. The ESP OS is a sort of real-time operating system, that's why there's no main(); everything is a task that is queued up to be done in turn. I don't know the limit for these... might be something like 8 or 16 separate timers running. Hey, it's just a $4 chip! ;)

Re: Uknown basic features

PostPosted: Mon Jun 01, 2015 1:14 am
by mampomat
eriksl wrote:It looks like there actually is only one timer available (I guess others are used for wlan etc).

Cheers, would you mind telling where you found this info?

Re: Uknown basic features

PostPosted: Tue Jun 16, 2015 12:01 pm
by eriksl
IIRC the sdk only gives access to one timer anyway.

But that doesn't need to be a problem. If the timer runs fast enough, it can be used to emulate several timers in software.

Re: Uknown basic features

PostPosted: Thu Jun 18, 2015 12:01 pm
by Makuna
there is another timer from the chip, look for Timer0 in the github esp8266\Arduino source for how to access it. It isn't configurable other than setting the compare register to trigger the interrupt. It is what I used to implement the Servo library.