It may be a 'lack of understanding' but hey, Im doing all this so I can gain some understanding!
Ok, I am patiently sticking with Crossware. I am pretty sure it is something minor that I need to get around. Once I have identified the problem, it would be sorted for good.
Yes I can connect and write to my 8051 chip (using FLIP).
The guy at Crossware could not help identify my problem. But he did get a working hex file from the same code (I emailed to him).
Here is the code I wrote:
ORG 0
HERE: MOV A, #255
MOV P1, A
ACALL DELAY
CLR A
MOV P1, A
ACALL DELAY
SJMP HERE
DELAY: MOV R5, #7
HERE1: MOV R4, #255
HERE2: MOV R3, #255
HERE3: DJNZ R3, HERE3
DJNZ R4, HERE2
DJNZ R5, HERE1
RET
END
Here is my hex file:
:1040000031303338383931360050726F647563653A
:1040100064206279207468652043726F73737761DE
:104020007265204E6F6E2D436F6D6D6572636961B1
:104030006C2044656D6F6E73747261746F720043AF
:104040006F70797269676874202863292032303074
:10405000312043726F737377617265204173736FA0
:0740600063696174657300E0
:0440670074F4F58078
:02406B000167EB
:00000001FF
here is his hex file for the same code:
:1000000074FFF590110DE4F590110D80F37D077CE0
:0A001000FF7BFFDBFEDCFADDF622C9
:00000001FF
His hex file works on my 8051, but my one does not.
If I try an even more simple code:
; 8051 Initial Assembler Source File
public START
program segment code
rseg program
START ; startup code jumps to label START
; TODO: Add your assembler source code here
MOV A, #255
MOV P0, A
END
Here is the hex file I get for this one:
:1040000031303338383931360050726F647563653A
:1040100064206279207468652043726F73737761DE
:104020007265204E6F6E2D436F6D6D6572636961B1
:104030006C2044656D6F6E73747261746F720043AF
:104040006F70797269676874202863292032303074
:10405000312043726F737377617265204173736FA0
:0740600063696174657300E0
:0440670074FFF5806D
:03406B00024067A9
:00000001FF
It looks very similiar to the other one.
Sure it may be my 'lack of understanding', but I am doing my best to figure out where it is I am going wrong.
At the moment I have an LCD waiting to be programmed and code all typed up, as I want to, and need to learn to program these devices over the summer, and time is rolling on fast with this unexpected problem which has halted my progress.
I am wondering if it could be anything to do with the fact that I am on Vista.
I appreciate the help I have received here.