MPASM 02.13 Released EXPT2.ASM 9-20-1981 1:19:15 PAGE 1 LOC OBJECT CODE LINE SOURCE TEXT VALUE 00001 ;Test2 for 5x7 Video Screen 00002 ;Program for PIC16F84 and only F84 chip 00003 ;Jumper between collector and emitter of first transistor 00004 ;Botton left-hand LED flashes at 2Hz 00005 00006 00007 0000 00008 START ORG 0X00 0000 1683 00009 BSF 03,5 ;Go to page1 for setting-up the ports 0001 3000 00010 MOVLW 00H ;Put 00 into W              0002 0085 00011 MOVWF 05H ;Make all RA lines output         0003 0086 00012 MOVWF 06H ;Make all RB lines output 0004 1283 00013 BCF 03,5 ;Go to Page0 for programming 0005 3002 00014 MOVLW 02H ;Put 02 into W 0006 0085 00015 MOVWF 05H ; to reset the 4017 00016 0007 3001 00017 FLASH MOVLW 01 ;Put 1 into W 0008 0086 00018 MOVWF 06H ; and output to turn on LED 0009 200E 00019 CALL DELAY ;Call delay 000A 3000 00020 MOVLW 00 ;Put 00 into W 000B 0086 00021 MOVWF 06H ;To turn off LED 000C 200E 00022 CALL DELAY ;Call delay 000D 2807 00023 GOTO FLASH ;Repeat cycle 00024 00025 000E 3003 00026 DELAY MOVLW 03 000F 009A 00027 MOVWF 1AH 0010 0B9B 00028 DELAY1 DECFSZ 1BH,1 0011 2810 00029 GOTO DELAY1 0012 0B9C 00030 DECFSZ 1CH,1 0013 2810 00031 GOTO DELAY1 0014 0B9A 00032 DECFSZ 1AH,1 0015 2810 00033 GOTO DELAY1 0016 0008 00034 RETURN 00035 00036 00037 END MPASM 02.13 Released EXPT2.ASM 9-20-1981 1:19:15 PAGE 2 SYMBOL TABLE LABEL VALUE DELAY 0000000E DELAY1 00000010 FLASH 00000007 START 00000000 __16F84 00000001 MEMORY USAGE MAP ('X' = Used, '-' = Unused) 0000 : XXXXXXXXXXXXXXXX XXXXXXX--------- ---------------- ---------------- All other memory blocks unused. Program Memory Words Used: 23 Program Memory Words Free: 1001 Errors : 0 Warnings : 0 reported, 0 suppressed Messages : 0 reported, 0 suppressed