I am waiting for my hardware…
I want to be able to toggle changing bit patterns to an output port at about 400HZ.
The Timer class callbacks seem to use internal threads in the emulator, so it will not be possible to use it to drive the bit stream with minimal jitter.
The next approach that came to mind would be to output PWM on a pin and then take the output of that pin and connect it to another pin. On the second pin, set it for input interrupts on the rising edge.
My questions… Are interrupts dispatched through a thread, or do they go directly to the specified interrupt routine?
Is it possible to setup a clock which generates interrupt directly without external wiring?