|
local | JPG file of the Autocad schematic (390 Kbyte) |
************************************ Here is a test program in assembly language that will work: ; ******* Program 4 ****************** ; LED lighter with inline delay .ORG 0 JMP MAIN MAIN .ORG 100H LXI SP,1800H NOP MVI A,10000000B OUT CTRLW MVI A,7FH LOOP OUT PORTA ; save to memory STA SAVE ; read from memory ; (need to save value in A) MOV E,A MVI A,0 LXI H,SAVE MOV A,M OUT PORTB MOV A,E OUT PORTC ; inline delay W2 DCR C JNZ W2 DCR D JNZ W2 DCR B JNZ W2 RRC JMP LOOP NOP PORTA .EQU 0 PORTB .EQU 1 PORTC .EQU 2 CTRLW .EQU 3 SAVE .EQU 1000H .END 100H .END
www.spacetimepro.com/dyop.htm | Design Your Own Processor (in FPGA*)! |
Goto: | Main | Mirror | About | Author |
Register: | Yourself | Company | ||
Feedback: | Correction | Addition | Question | Forum |
Order: | Chips (Deutsch) | Chips (English) | Chips (Nederlands) |