Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - External Interrupt on AVR

(you are viewing a thread; or go back to list of threads)

External Interrupt on AVR (by napalm0)
How can i use the external interrupts (rising/falling edge)with LDmicro compiler?
Sun May 9 2010, 04:06:27
(no subject) (by Jonathan Westhues)
LDmicro fundamentally doesn't support hardware interrupts; the program always runs on its specified cycle, and nothing can disrupt that.

But if you just want to trigger something on the rising or falling edge of a GPIO input, then look at the one-shot (OSR/OSF) instructions. Your program will respond to the edge no more than one cycle time after it occurs.
Tue May 11 2010, 00:04:41
(no subject) (by Ihor Nehrutsa)
Latest releases of LDmicro v4.1.0 - v4.1.6
http://cq.cx/ladder-forum.pl?action=viewthread&parent=6071
uses External Interrupt to wake-up from Sleep(power-down) mode.
PIC uses RB0/INT pin.
AVR uses PD2/INT0, PD3/INT1 pins.

SLEEP example
https://github.com/LDmicro/LDmicro/wiki/SLEEP-example
https://github.com/LDmicro/LDmicro/wiki/PIC-Configuration-Bits
Sat Feb 18 2017, 05:12:56
(no subject) (by Ahmad sakr)
To José
To Ihor
Is it possible to have interrupt in the next release of LDMICRO in c mode to have the ability of high speed counter (high pulses encoder)
Fri Nov 29 2019, 14:24:15
(no subject) (by José)

Hi Ahmad

An "interrupt" is not a ladder contact ; it's typical of C programming, for aware programmers...

Jose
Fri Nov 29 2019, 14:54:36
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):