diff options
author | akshay-c | 2019-01-30 12:23:44 +0530 |
---|---|---|
committer | akshay-c | 2019-01-30 12:23:44 +0530 |
commit | 4196481f74afb84e5cc59cdf00c06c1ca1becab7 (patch) | |
tree | b531deb0466897691f08f9076b7012592f026664 /ldmicro/sample/serial.ld | |
download | LDmicroQt-4196481f74afb84e5cc59cdf00c06c1ca1becab7.tar.gz LDmicroQt-4196481f74afb84e5cc59cdf00c06c1ca1becab7.tar.bz2 LDmicroQt-4196481f74afb84e5cc59cdf00c06c1ca1becab7.zip |
First commit
Diffstat (limited to 'ldmicro/sample/serial.ld')
-rw-r--r-- | ldmicro/sample/serial.ld | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/ldmicro/sample/serial.ld b/ldmicro/sample/serial.ld new file mode 100644 index 0000000..1285e4f --- /dev/null +++ b/ldmicro/sample/serial.ld @@ -0,0 +1,92 @@ +LDmicro0.1 +MICRO=Microchip PIC16F877 40-PDIP +CYCLE=10000 +CRYSTAL=4000000 +BAUD=2400 +COMPILED=c:\temp\ser.hex + +IO LIST + Yled at 22 +END + +PROGRAM +RUNG + CONTACTS Rosc 1 + TOF Tct1 250000 + TON Tct2 250000 + COIL Rosc 0 0 0 +END +RUNG + CONTACTS Rfast 1 + TOF Tct3 100000 + TON Tct4 100000 + COIL Rfast 0 0 0 +END +RUNG + CONTACTS Rosc 0 + CTC Cwhich 4 +END +RUNG + PARALLEL + SERIES + EQU Cwhich 0 + MOVE ch 'A' + END + SERIES + EQU Cwhich 1 + MOVE ch 'b' + END + SERIES + EQU Cwhich 2 + MOVE ch 'c' + END + SERIES + EQU Cwhich 3 + MOVE ch 13 + END + SERIES + EQU Cwhich 4 + MOVE ch 10 + END + END +END +RUNG + CONTACTS Rosc 0 + OSF + UART_SEND ch +END +RUNG + UART_RECV inch + COIL Rjustgot 0 1 0 +END +RUNG + CONTACTS Rjustgot 0 + TON Tnew 1000000 + COIL Rjustgot 0 0 1 +END +RUNG + PARALLEL + SERIES + CONTACTS Rjustgot 0 + CONTACTS Rfast 0 + END + SERIES + CONTACTS Rjustgot 1 + PARALLEL + SERIES + EQU inch 'o' + SHORT + END + SERIES + EQU inch 'b' + CONTACTS Rosc 0 + END + SERIES + SHORT + OPEN + END + END + END + END + COIL Yled 0 0 0 +END |