Pierpaolo
07-16-02, 12:24 PM
Hi there,
I wonder if anyone could possibly help me in solving this annoying problem.
A few days ago I managed to compile my firs asm code for 8051:
(down here is the file step.asm)
-------------------------
.equ st1,h'fa
.equ st2,h'f9
.equ st3,h'f5
.equ st4,h'f6
.org h'8000
start:
mov P1, #st1
lcall delay
mov P1, #st2
lcall delay
mov P1, #st3
lcall delay
mov P1, #st4
lcall delay
sjmp start
delay:
mov r1, #10h
loop1:
mov r0, #0
loop2:
djnz r0, loop2
djnz r1, loop1
ret
-------------------------
in order to drive a stepper motor, without any error :)) with the command a51 step.
I renamed the file step.obj as step.hex:
(down here is the step.hex file)
---------------------------------------
:108000007590FA12801A7590F912801A7590F5120F
:10801000801A7590F612801A80E679107800D8FEE2
:03802000D9FA2268
:00000001FF
---------------------------------------
I started Maxterm and plugged the NMIY-0031 board getting the > prompt.
I toggled off the line pace char to 0 and with the command alt-D I managed to download the program to the board with no itch at all. The command alt-X made the stepper to run.
(I toggled off to 0 the line pace because I didn't manage to download the program and kept getting an error message regarding a bad character).
Now, after a couple of days I've had the time to improve my original program but first of all I wanted to check again the previous one. I must have changed something in the setting of maxterm because now I'm no longer able to download the .hex program without getting these error messages:
>:108000007590FA12801A7590F912801A7590F5120F
:10801000801A7590F612801A80E679107800D8FEE2
:03802000D9FA2268
:00000001FF
:
invalid command or format
>F
invalid command or format
>1
invalid command or format
>
What can I do. The manual of maxterm doesn't seem to be of any help. I would be grateful to anyone who could suggest a solution to get out of this mess.
Take care,
Pier
I wonder if anyone could possibly help me in solving this annoying problem.
A few days ago I managed to compile my firs asm code for 8051:
(down here is the file step.asm)
-------------------------
.equ st1,h'fa
.equ st2,h'f9
.equ st3,h'f5
.equ st4,h'f6
.org h'8000
start:
mov P1, #st1
lcall delay
mov P1, #st2
lcall delay
mov P1, #st3
lcall delay
mov P1, #st4
lcall delay
sjmp start
delay:
mov r1, #10h
loop1:
mov r0, #0
loop2:
djnz r0, loop2
djnz r1, loop1
ret
-------------------------
in order to drive a stepper motor, without any error :)) with the command a51 step.
I renamed the file step.obj as step.hex:
(down here is the step.hex file)
---------------------------------------
:108000007590FA12801A7590F912801A7590F5120F
:10801000801A7590F612801A80E679107800D8FEE2
:03802000D9FA2268
:00000001FF
---------------------------------------
I started Maxterm and plugged the NMIY-0031 board getting the > prompt.
I toggled off the line pace char to 0 and with the command alt-D I managed to download the program to the board with no itch at all. The command alt-X made the stepper to run.
(I toggled off to 0 the line pace because I didn't manage to download the program and kept getting an error message regarding a bad character).
Now, after a couple of days I've had the time to improve my original program but first of all I wanted to check again the previous one. I must have changed something in the setting of maxterm because now I'm no longer able to download the .hex program without getting these error messages:
>:108000007590FA12801A7590F912801A7590F5120F
:10801000801A7590F612801A80E679107800D8FEE2
:03802000D9FA2268
:00000001FF
:
invalid command or format
>F
invalid command or format
>1
invalid command or format
>
What can I do. The manual of maxterm doesn't seem to be of any help. I would be grateful to anyone who could suggest a solution to get out of this mess.
Take care,
Pier