teensy 4.0 GPIO pulse lost at 150MHZ

Status
Not open for further replies.

Ming

New member
Teensy 4.0 losing some pulse when toggling GPIO at 150MHz. It happens every 1 ms. Does anyone know why?

int led = 13;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
while(1){
CORE_PIN13_PORTSET = CORE_PIN13_BITMASK;
CORE_PIN13_PORTCLEAR = CORE_PIN13_BITMASK;
}
}

SDS5104X_PNG_4.png
SDS5104X_PNG_3.png
 
And if you leave interrupts disabled, please understand Arduino can't cause Teensy to go into programming mode, because you've disabled the USB interrupt. You will need to press the button on your Teensy to get it to upload code. After several seconds of trying, the software will advise you to press the button, because it couldn't communicate. Don't mistake that message for a dire error. It's perfectly normal when you've done something on your Teensy that inhibits USB communication.
 
Status
Not open for further replies.
Back
Top