steve.pico
Member
I am currently using an Arduino pro mini and wanted to be have faster I/O write so I am trying a Teensy 3.2. It seemed very slow so I tried this simple test. on my Arduino the output is high for 62.5ns, as expected. On the Teensy 3.2 it is several hundred nsec. Does anyone know why it doesn't write in a single cycle? This is the sole reason for going to the Teensy is to reduce this time to less than 12ns. Is this an IDE compiling issue or does the Teensy take more than 1 cycle to write to I/O?
Any help is appreciated.
*******************
void setup() {
//DDRB=B11111111; }
void loop() {
noInterrupts();
while(1){
PORTB=255;//set all bits high
PORTB=0;//set all bits low - should be high for 1 cycle
}
}
Any help is appreciated.
*******************
void setup() {
//DDRB=B11111111; }
void loop() {
noInterrupts();
while(1){
PORTB=255;//set all bits high
PORTB=0;//set all bits low - should be high for 1 cycle
}
}