Hello there! I am writing a 2000 us pulse to my esc(s) connected to digital pins 33,32,31,30 .I am using following piece of code to drive them.
PORTC |= B11110000; //Set digital poort 33,32,31 and 30 high. delayMicroseconds(2000); //Wait 2000us. PORTC &= B00001111; //Set digital poort 33,32,31 and 30 low.
I am unable to write the pulse. My esc(s) continue to beep. can anyone point what is the problem?
EDIT: I figure out the issue
I have written
DDRC |=B00001111; instead