Hi,
I am new to Teensy, doing first tests and can't understand a behavior of the board.
I took the 'Blink Example" and modified to see simultanious action on all port D0..D7 pins (2,14,7,8,6,20,21,5).
But this does not work out the way I expected:
I see a 100kHz with sharp edges on board's pins 1,4,7 (and 13/LED). Same signal with visibly rounded falling edges on board's pins 0,2,3. Constant high level on 5 and 6 and low level on 8,20,21.
Do I have a broken Teensy or a misunderstandig of the port mapping?
Thanks
Uli
I am new to Teensy, doing first tests and can't understand a behavior of the board.
I took the 'Blink Example" and modified to see simultanious action on all port D0..D7 pins (2,14,7,8,6,20,21,5).
Code:
// Simple LED blink
const int led = LED_BUILTIN;
void setup() {
pinMode(led, OUTPUT);
DDRD = 0xff;
}
void loop() {
PORTD = 0xff;
digitalWrite(led, HIGH);
delay(5);
PORTD = 0x00;
digitalWrite(led, LOW);
delay(5);
}
I see a 100kHz with sharp edges on board's pins 1,4,7 (and 13/LED). Same signal with visibly rounded falling edges on board's pins 0,2,3. Constant high level on 5 and 6 and low level on 8,20,21.
Do I have a broken Teensy or a misunderstandig of the port mapping?
Thanks
Uli