Re: Atmel AVR, too slow encoder tics counting

From: Umpa (¹¿æó_at_umpaumpalala.com)
Date: 05/07/04


Date: Fri, 7 May 2004 10:54:46 +0200


> You may want to check your LCD output routines. Check if it's disabling
> interrupts somewhere.
>
I didn`t disable interrupts myself in any code.
But, after translating code to assembler, I can see many "cli"
instructions in my source code.
When I cut LCD library and left pure interrupt function and
main(), there were no "cli" instructions in source code.

Umpa.



Relevant Pages

  • Re: [PATCH 04/10] memcg: disable local interrupts in lock_page_cgroup()
    ... accounting will be updating memcg page accounting (specifically: ... num writeback pages) from softirq. ... By disabling interrupts in lock_page_cgroup, ... page_cgroup spinlock must disable interrupts to prevent ...
    (Linux-Kernel)
  • Re: [PATCH] Documentation: Make fujitsu/frv/kernel-ABI.txt 80 columns wide
    ... -The internal FRV kernel ABI is not quite the same as the userspace ABI. ... -most of them do not have any scratch registers, thus requiring at least one general purpose ... +single-stepping will blithely go on stepping into things like interrupts. ... -to read and once to write), we don't actually disable interrupts at all if we don't have to. ...
    (Linux-Kernel)
  • Re: VMI Interface Proposal Documentation for I386, Part 4
    ... For one, the X server wants to disable interrupts temporarily during probing of dot clocks to get accurate timings, and also to avoid the kernel interrupting during a sensitive VGA register access. ... Several other userspace programs, including CMOS time sync utilities do this as well. ... The code you show above can be made to work in a virtual machine, and you can allow userspace to disable interrupts and still have a perfectly fine solution -- if you restrict the enabling and disabling of interrupts in userspace to the cli and sti instructions. ...
    (Linux-Kernel)
  • Re: Problem with /boot/loader [A new patch]
    ... I have a problem with loader. ... After boot I install the new ... the problem was interrupts being disabled when they should have been enabled. ... disable interrupts just like hardware interrupts do. ...
    (freebsd-stable)
  • Re: Re-install Warp 4.52
    ... > This is done by the LAPIC (built into every CPU) and assorted, ... the PSD_IRQ_xxx functions would only allow up to 32 interrupts ... I suspect some more audio drivers, ... Tropez or PciAudio source code from the DDK as template). ...
    (comp.os.os2.misc)