Click to See Complete Forum and Search --> : Pic Program


oscillator_1
02-14-2006, 01:42 AM
Hi,

I have a ASM file that I assembled.

Only problem is that it skips Label_0008 & Label_0009.

It keeps sending the reply in Label_0005.

It has to reply to 00 C0 00 12 which is sent at 3 different intervals.
The 1st reply needs to be Label_0008
The 2nd reply needs to be Label_0009
The 3rd reply needs to be label_0005

The error I think is in BOLD

Label_0005 CALL Label_0007
CALL Label_0007
MOVF 0x4D , f
BTFSC STATUS , Z
GOTO Label_0008
BTFSC 0x4D , 00
GOTO Label_0009
MOVLW 0xC0
CALL Label_0002 Transmit
MOVLW 0x85
CALL Label_0002 Transmit
MOVLW 0x10
GOTO Label_0004

I will atatch the ASM file and what it does

Hepl would be appreciated.

Icarus
02-14-2006, 09:22 AM
a few problems here...
1) don't attach .doc files, this is a Linux forum and the people that would be able to help can't or refuse to open these type of files.

2) You'll be hard pressed to find a assembly programmer, but you should put that in the topic as "Pic Program" tells us nothing

3) Might be just me, but that looks like a class assignment ;)

StarKnight83
02-14-2006, 06:03 PM
actually all my robotics are done w/ Picmicro and asm (for a linux assembler use gputils) but I agree w/ Icarus on that this looks like a class assignment but Ill take a look at the file and if i see something that isnt obvious (the picmicro can be a little finicky as far as asm is concerned)

I also made the file into a pdf (should be easier to open if someone else is interested)

oscillator_1
02-14-2006, 08:45 PM
Made some changes to the Doc.

Still the same problem in Label_0005

I will atatch the new doc.

CHEERS

flukshun
02-15-2006, 02:54 AM
how are you testing this? have you confirmed that data is actually being stored in 0x4D?

oscillator_1
02-15-2006, 11:35 AM
I have a program called Angel.

It logs the card and simulated the cam.

I am waiting for my interface to really log the data from the cam.

No I cannot confirm the data in 4D.

CHEERS