Simple editing of a source code problem, Willing to pay for help.

Thread Starter

r0cksta7

Joined Jul 31, 2008
1
I've decided on building the turing alarm clock, found here:
http://www.cheaphack.net/2008/01/turing-alarm-clock.html

Source code: http://nicholas.paul.johnson.googlepages.com/turing-alarm.tar.bz2

I'm starting the editing of a program for a microprocessor, I have a PIC16F728A microchip which I'm trying to program, but am getting numerous errors. The only edit I made to an original source code was the change of my name in place of "eric", and the required processor header change from "LIST p=p16f716" to "LIST p=p16f728". The name change was accomplished by simply changing:


WriteGoodMorningNick:
MOVLW 'G'
CALL PutChar
CALL WriteO
CALL WriteO
MOVLW 'd'
CALL PutChar
CALL WriteSpace
MOVLW 'm'
CALL PutChar
CALL WriteO
MOVLW 'r'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'i'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'g'
CALL PutChar
CALL WriteSpace
MOVLW 'E'
CALL PutChar
MOVLW 'r'
CALL PutChar
MOVLW 'i'
CALL PutChar
MOVLW 'k'
CALL PutChar
CALL WriteBang

to:

WriteGoodMorningNick:
MOVLW 'G'
CALL PutChar
CALL WriteO
CALL WriteO
MOVLW 'd'
CALL PutChar
CALL WriteSpace
MOVLW 'm'
CALL PutChar
CALL WriteO
MOVLW 'r'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'i'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'g'
CALL PutChar
CALL WriteSpace
MOVLW 'D'
CALL PutChar
MOVLW 'a'
CALL PutChar
MOVLW 'm'
CALL PutChar
MOVLW 'a'
CALL PutChar
MOVLW 'n'
CALL PutChar
CALL WriteBang

However even without the changes, I get MAIN.ASM 709 : Illegal digit (- in decimal) error when trying to build. And on 709 line it reads "D-25" written in red. I'm using MPLAB to convert this asm file into HEX.

My questionsare, Where am I going wrong? and is the orginal source code flawed?

Any Help is appriciated. If you can somehow get this running on your system, please let me know, i'm willing to pay for the converted HEX file so I can load it on as soon as possible.
 

bertus

Joined Apr 5, 2008
20,653
Hello,

You say that you have changed the 16f716 to 16f728.
Did also do it on the .inc filename, the line below this?
Is the 16f728 the same as the 16f728a, as you named in your post?

Greetings,
Bertus

PS I can not find the 16f728 or 16f728a datasheets at the microchip website.
Are you sure of the type-number?
 
Top