kkutis1989
New member
Hi there,
I was trying to get fast digital iIO in teensy 4.1. Only use digitalWriteFast gives me a ~50ns window for GPIO toggling between HIGH and LOW. So I followed the code from https://forum.pjrc.com/index.php?th...ast-ring-oscillator-example.41874/post-132359
But when I compile there is an error:
My full code is:
Any hints for that?
I was trying to get fast digital iIO in teensy 4.1. Only use digitalWriteFast gives me a ~50ns window for GPIO toggling between HIGH and LOW. So I followed the code from https://forum.pjrc.com/index.php?th...ast-ring-oscillator-example.41874/post-132359
But when I compile there is an error:
C:
Arduino/my_project/sketch_jun4d/sketch_jun4d.ino:25:25: error: 'PORT_PCR_MUX' was not declared in this scope
25 | CORE_PIN20_CONFIG = PORT_PCR_MUX(1);
| ^~~~~~~~~~~~
Error during build: exit status 1
My full code is:
C:
const int my_pulse_pin = 20;
void setup()
{
pinMode(my_pulse_pin, OUTPUT);
CORE_PIN20_CONFIG = PORT_PCR_MUX(1);
}
void loop()
{
while(1){
digitalWriteFast(my_pulse_pin, HIGH);
digitalWriteFast(my_pulse_pin, LOW);
}
}
Any hints for that?