lkml.org 
[lkml]   [2008]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Toggling GPIO at 38Khz
Jon Smirl wrote:

>
> Are there other techniques for generating pulse trains in the 36-56Khz
> range on a simple GPIO pin?
>

Yes.

Use the GPIO pin to enable the output of an external circuit. Or, hope that the
GPIO pin in question is multiplexed with a timer/counter or PWM peripheral.

But somehow, I don't think either answer is what you were looking for. :)

36 KHz bit-banging is a reach for any processor running Linux, methinks. Maybe
you could launch an FIQ (assuming ARM) and then do the bit-bang as a burst in
there, so that you would have more control over the timing. But that kind of
code isn't going to play well with the rest of the kernel...

If the hardware design isn't set, you might want to consider using that GPIO
line as a quasi-SPI link to a small, AVR-type microcontroller that does the
bit-banging on your behalf. Long-term, that's going to be a more reliable and
flexible solution I think.


b.g.
--
Bill Gatliff
bgat@billgatliff.com


\
 
 \ /
  Last update: 2008-10-08 14:37    [W:0.195 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site