Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

ESP32: 2,5 MHz Signal erzeugen mit DigitalWrite(4,LOW) ohne delay

12.12.2022 (πŸ‘1561)

ESP32: 2,5 MHz Signal erzeugen mit DigitalWrite(4,LOW) ohne delay

Ein Bild, das Text, Elektronik, Anzeige enthΓ€lt.

Automatisch generierte Beschreibung

 

//*FASTEST IMPULSE TEST ON ESP32

 

//====< VARIABLES >====

int OUT_PIN = 4;

long nCycles_Start  = 1;

long nCycles_Stop  = 3600000; //1000ms=1sec 60.000=1min 3600.000=1Std

long nCycles_Step = 1;

long nCycles_Pulse = 1;

long iCycles=0;

 

unsigned long msStart = 0;

unsigned long msHold = 1000;  //Milliseconds to Hold Frequece hold=1Sek

//====</ VARIABLES >====

 

//BitMask

//0b11111=GPIO 0, 1, 2, 3, 4,

//0b10000=GPIO4

 

//=============< SETUP >============

 

void setup(){

  //--------< setup() >--------

  //< GPIO >

  pinMode(OUT_PIN, OUTPUT);

  digitalWrite(OUT_PIN, LOW);    // PULS_OFF DEFAULT  

  //</ GPIO >

 

 

  Serial.begin(115200);

  Serial.println("\n FASTEST IMPULSE TEST ON ESP32");

 

  //--------</ setup() >--------

}

//=============</ SETUP >============

 

//=============< Main_Loop >============

 

void loop(){

  //--------< Main Loop() >--------

  //*loop each ImpulseBlock

  //*with write on/off

  //*ImpulsWidth=50-60ns jitter 1/10

  //*PeriodeWidth=140ns (136-156) jitter 1/10

 

  //--< Holdtime: change Pulswith >--

  //if((millis()-msStart) > msHold){

  //Serial.println("\n us=" +  usSeconds);

 

  digitalWrite(OUT_PIN, HIGH);    // PULS_ON

  //delayMicroseconds(1);

  digitalWrite(OUT_PIN, LOW);    // PULS_OFF

  //delayMicroseconds(1);

 

  //--------</ Main Loop() >--------

}

//=============</ Main_Loop >============