For my project, I must create wave signal with data that I received by bus CAN.
I must have 400 ns resolution for the output signal.
To verify this resolution, I send value "1" in bus CAN and I mesure output signal's period. But I don't find 400 ns.
For have this period, I try to change clock (after I use 4MHz and now 16MHz) but I still do not get the right value.
Now, I have a bus clock of 8MHz.
So I wanted to change some functions to further reduce the period. For example use a semaphore instead of interruptions.