I am using Arduino Uno to generate a 4MHz clock signal as clock input for a system I work on. But maybe because mishandling (?) the amplitude of this clock signal become very small (50mV instead of 5V). And two of my Arduino have now facing the same problem.
I don’t actually understand how what happened. My code to generate the clock signal is shown below:
TCCR2A = 0x23; //registers value, tells the chip
TCCR2B = 0x09; //enable fast PWM mode
//When counter equals OCR2A, start over from 0
//When counter equals OCR2B, set pin3 to 0
//When counter equals 0, set ORC1B to 1
//Don’t scale the clock signal (keep 16 MHz)
OCR2A = 3; //The counter will start over at 3. (0,1,2,3,0…)
OCR2B = 1; //Pin3 will toggle off at 1, and toggle back on at 0
Did I burn the I/O port?
Thank you everyone for all possible inputs!