summaryrefslogtreecommitdiff
path: root/ldmicro/reg/tests/pic16-hw.ld
diff options
context:
space:
mode:
authorNatsuDrag92018-06-06 11:51:20 +0530
committerGitHub2018-06-06 11:51:20 +0530
commit003741ef327ab000986e6c5a3bc8ff058c171efc (patch)
tree860b10e7f01fdfc25be90aa0f6228fd6672cb333 /ldmicro/reg/tests/pic16-hw.ld
parent8deab843fa6d616086955702c77751f631badc0d (diff)
parent42f0b6abf37b6afc278a218b8301b7d4f1f6b2cc (diff)
downloadLDMicroGtk-003741ef327ab000986e6c5a3bc8ff058c171efc.tar.gz
LDMicroGtk-003741ef327ab000986e6c5a3bc8ff058c171efc.tar.bz2
LDMicroGtk-003741ef327ab000986e6c5a3bc8ff058c171efc.zip
Merge pull request #3 from NatsuDrag9/GUI_port
Gui port 2
Diffstat (limited to 'ldmicro/reg/tests/pic16-hw.ld')
-rw-r--r--ldmicro/reg/tests/pic16-hw.ld61
1 files changed, 61 insertions, 0 deletions
diff --git a/ldmicro/reg/tests/pic16-hw.ld b/ldmicro/reg/tests/pic16-hw.ld
new file mode 100644
index 0000000..9c9ec46
--- /dev/null
+++ b/ldmicro/reg/tests/pic16-hw.ld
@@ -0,0 +1,61 @@
+LDmicro0.1
+MICRO=Microchip PIC16F877 40-PDIP
+CYCLE=10000
+CRYSTAL=4000000
+BAUD=2400
+COMPILED=C:\depot\ldmicro\reg\expected\pic-hw.hex
+
+IO LIST
+ Xinc at 2
+ Aanalog at 3
+END
+
+PROGRAM
+RUNG
+ COMMENT The more hardware-oriented ops (PWM, ADC, UART, EEPROM), test for the\r\nPIC16s.
+END
+RUNG
+ PERSIST saved
+END
+RUNG
+ READ_ADC Aanalog
+END
+RUNG
+ PARALLEL
+ CONTACTS Xinc 0
+ GEQ Aanalog 512
+ END
+ OSR
+ ADD saved saved 1
+END
+RUNG
+ PARALLEL
+ SERIES
+ LES saved 10
+ MOVE duty 20
+ END
+ SERIES
+ GEQ saved 10
+ MOVE duty 50
+ END
+ SET_PWM duty 2000
+ END
+END
+RUNG
+ TON Tfmtd 1000000
+ OSR
+ FORMATTED_STRING saved 15 115 97 118 101 100 32 61 32 92 45 53 92 114 92 110
+END
+RUNG
+ MOVE char 'x'
+END
+RUNG
+ TON Tutx 2000000
+ OSR
+ UART_SEND char
+END
+RUNG
+ UART_RECV inchar
+ EQU inchar 'a'
+ MOVE saved 0
+END