From 4196481f74afb84e5cc59cdf00c06c1ca1becab7 Mon Sep 17 00:00:00 2001 From: akshay-c Date: Wed, 30 Jan 2019 12:23:44 +0530 Subject: First commit --- ldmicro/sample/blink.ld | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 ldmicro/sample/blink.ld (limited to 'ldmicro/sample/blink.ld') diff --git a/ldmicro/sample/blink.ld b/ldmicro/sample/blink.ld new file mode 100644 index 0000000..e86d7a3 --- /dev/null +++ b/ldmicro/sample/blink.ld @@ -0,0 +1,61 @@ +LDmicro0.1 +MICRO=Microchip PIC16F877 40-PDIP +CYCLE=10000 +CRYSTAL=4000000 +COMPILED=C:\depot\ldmicro\pic.hex + +IO LIST + Xbutton at 21 + Yled at 30 +END + +PROGRAM +RUNG + CONTACTS Xbutton 1 + CTC Cwhich 4 +END +RUNG + CONTACTS Xbutton 1 + OSF + TOF Tdblclk 500000 + COIL Rdblclk 0 0 0 +END +RUNG + CONTACTS Xbutton 1 + CONTACTS Rdblclk 0 + MOVE Cwhich 3 +END +RUNG + CONTACTS Rfast 0 + TOF Tffast 100000 + TON Tnfast 100000 + COIL Rfast 1 0 0 +END +RUNG + CONTACTS Rslow 0 + TON Tnslow 100000 + TOF Tfslow 1000000 + COIL Rslow 1 0 0 +END +RUNG + PARALLEL + SERIES + EQU Cwhich 0 + CONTACTS Rfast 0 + END + SERIES + EQU Cwhich 1 + CONTACTS Rslow 0 + END + SERIES + EQU Cwhich 2 + CONTACTS Rslow 1 + END + EQU Cwhich 3 + SERIES + EQU Cwhich 4 + OPEN + END + END + COIL Yled 0 0 0 +END -- cgit