Dakota wrote:Thank a lot for your answer. I make this piece of code , it seems to work in a ESP8266 (Lolin nodemcu v3)
It give a 77.5 khz signal ( a lot of noise at least in my radio receiver XDD , I have not any oscilloscope )
but my clock does not syncronize, it does not work
Antenna is pin D8
-----------------------------------------------------------
#define Antenna D8
unsigned long frec = 80000000L / 77500 ;
volatile unsigned long next;
boolean TickTock = false;
void inline radioISR(void){
TickTock = !TickTock;
digitalWrite(Antenna,TickTock);
timer0_write(ESP.getCycleCount()+frec);
}
void setup()
{
noInterrupts();
timer0_isr_init();
timer0_attachInterrupt(radioISR);
timer0_write(ESP.getCycleCount()+frec);
interrupts();
}
----------------------------------------------------------------
try to use OS_TIMER_US, i tested and works! find in google how to active OS_TIMER_US, because is default "disable".. if you can't do this, tell me. i help you!