shahrul WROTE:The rate slow because the instruction digitalWrite() is slow compare to direct instruction to the pin.
I have testing using Hi-Tech vs Pinguino with same device.
Hi-Tech = 800ns (for 2 instruction high and low)
Pinguino = 24.4us (for 2 instruction high and low)
If 24.4us, maximum freq you get is 41kHz, that is if don't have any other instruction between the pulse.
Video
Users browsing this forum: No registered users and 3 guests