Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Mikejstb
#14835 Thanks - that matched a lot. Pretty interesting, more complex then I thought the answers would be.
User avatar
By GerryKeely
#14843 Hi

Using ESP8266Arduino I get an output of 5.71MHz with cpu freq. of 80MHz and 6.67MHz with a cpu freq. of 160MHz.

Code used

Code: Select allextern "C" {
#include "user_interface.h"
}

#define PIN 15
void setup() {
system_update_cpu_freq(160);
pinMode(PIN, OUTPUT);
ESP.wdtDisable();

}

void loop() {
while(1){
GPIO_REG_WRITE(GPIO_OUT_W1TC_ADDRESS, 1 << PIN);

GPIO_REG_WRITE(GPIO_OUT_W1TS_ADDRESS, 1 << PIN);
}

}


regards

Gerry