| ??? 02/03/05 03:13 Read: times |
#86428 - Attached Blink.asm Responding to: ???'s previous message |
This is the Blink.asm file. After loading it into Ram which is at address if 8000h, The Port p3.5 cant blink. If I modify the program and load into Rom at address of 0000h, it Blinks! The Bootloader I am using is Steve's Bootloader3 1995.
Blink.asm : LEDPIN BIT P3.5 ;your favorite port pin (LED preferred) START CODE 8000H ;start address of user programs TIME EQU 8 ;time constant in units of 250 ms (for 12 MHz) ORG START ;program start address BLINK: CPL LEDPIN ;toggle pin (Great, if connected to a LED!) MOV R3,#TIME ;wait for TIME * 125 ms (12 MHz) MOV R2,#0 MOV R1,#0 LOOP: DJNZ R1,LOOP DJNZ R2,LOOP DJNZ R3,LOOP SJMP BLINK ;This is repeated forever, ;if you don't press reset ... END Blink.hex: :10800000B2B57B087A007900D9FEDAFCDBFA80F0A1 :00000001FF Thanks! |
| Topic | Author | Date |
| how to Boot 8052? | 01/01/70 00:00 | |
| Be specific! | 01/01/70 00:00 | |
| Program RAM | 01/01/70 00:00 | |
| Thanks for reminding! | 01/01/70 00:00 | |
| Mods | 01/01/70 00:00 | |
| Read the tutorial | 01/01/70 00:00 | |
| Thanks | 01/01/70 00:00 | |
| Study the code... | 01/01/70 00:00 | |
| test | 01/01/70 00:00 | |
| After Boot Loader...... | 01/01/70 00:00 | |
| blink.ask | 01/01/70 00:00 | |
| Attached Blink.asm | 01/01/70 00:00 | |
| Is the RAM mapped for CODE memory? | 01/01/70 00:00 | |
Great! PROBLEM SOLVED! | 01/01/70 00:00 | |
| Didn't search first? | 01/01/70 00:00 | |
| answer to dual thread question | 01/01/70 00:00 |



