10 years, 3 months ago.

Nooby... How can you speed up the digital i/o on FRDM K64F?

FRDM K64F Digital output toggle speed... why so slow?

  1. include "mbed.h" DigitalOut pin9(PTC4); int main() { while (true) { pin9 = 0; dumb toggle (without read/negate) 1.25MHz (800ns/cycle) pin9 = 1; pin9 = !pin9; "smart" toggle square wave 732kHz (1.36us/cycle) } }

Can you use <<code>> //your code here<</code>> to make ir easier to read?

posted by Thiago . 21 Feb 2016
Be the first to answer this question.