kernel function called with 200Hz

From: Klaus Schneider (klaus.schneider_at_iup.uni-heidelberg.de.x)
Date: 05/17/05


Date: Tue, 17 May 2005 18:25:17 +0200

Hi!

Is there a possibility in the Linux kernel to call a kernel function with
200Hz? What I want to do is PWM (Pulse Width Modulation) at 200Hz frame
rate with the parallel port. So I want to register a function called at
200Hz which switches the port after n calls and back after (200-n) more
calls. But, using kernel timer, I can only register a one-time-called
function. I've searched through google and newsgroups but it was no use.
Or is there perhaps another solution how to do it? I can't use usleep() as
this won't be precise enough.
If it's possible, I don't want to use extensions as RTAI because the code
has to work on a system which also controls other things and this stuff has
to keep on working.

Thanks,
Klaus



Relevant Pages

  • Another case of lockup using combination of devices (sound+net)
    ... key does not register. ... Disabling IO-APIC from kernel configuration apparently solved that, ... 0cf8-0cff: PCI conf1 ... # ACPI Support ...
    (Linux-Kernel)
  • Re: [PATCH 18-rc3] Fix typos in /Documentation : Q-R
    ... The driver will receive them again on the ... The kernel is entered with r3 pointing to an area of memory that is ... Bits are then right shifted into the GP_SAMPLE register at the specified ... you get an interrupt when a full DWORD is recieved. ...
    (Linux-Kernel)
  • 5GB instead of 6GB RAM using 2.6.5 x86_64 (amd)
    ... It is a custom compiled vanilla 2.6.5 kernel. ... Using ACPI for SMP configuration information ... number of MP IRQ sources: ...
    (Linux-Kernel)
  • Re: [patch 2.6.13-git] 8250 tweaks
    ... > is being asked to register two serial ports at MMIO ... port registering and finally picked out the "bug". ... I must confess that I am a stupid guy on kernel ... VFS: Mounted root (nfs filesystem). ...
    (Linux-Kernel)
  • Linux Kernel <= 2.4.21 MXCSR Local DOS Exploitation
    ... I read this news group posting about a possible local DOS exploit, ... that would allow an unprivileged user to crash the kernel. ... While I was tinkering I ran into the MXCSR ... description of a kernel vuln relating to the register. ...
    (Linux-Kernel)