Page 1 of 1

help needed for beginners

Posted: Thu Mar 08, 2007 4:06 pm
by christian
We have been given this error when programming with C for picmicro. i think that it may be related with the following piece of code that we are using. i am using a 16F88 pic microcontroller. am i starting the config register at the right address for pic 16F88?
appreciating any help. 10x

asm
{
list p=PIC16F88
__config H'3FF9' ;XT,!CP,!WDT,!PWRT,BODEN,LPV,!CPD,WRT,!DEBUGGER
}

Assembling...

C:\PROGRA~1\MPLABI~1\MCHIP_~1\MPASMWIN.EXE /aINHX8M /pPIC16F88 /rHEX /w2 /q test.asm

Error[113] C:\PROGRAM FILES\SOURCEBOOST\SAMPLES\C\TEST.ASM 66 : Symbol not previously defined (T0IF)
Error[126] C:\PROGRAM FILES\SOURCEBOOST\SAMPLES\C\TEST.ASM 481 : Argument out of range (not a valid config register address)
Done

Failed

Posted: Thu Mar 08, 2007 6:17 pm
by Benj
Hello Christian

The chip is configured by using the spanner icon in the course webpage.

You do not need to manually code it yourself.

Also if the TOIF flag is not being recognised then you can either replace the flag name with the bit number or you can define the bit number at the top of your program using #define T0IF 3

PS 3 is just an example you will need to refer to the PICmicro datasheet for the actual T0IF Bit

Urgent feedback

Posted: Thu Mar 08, 2007 6:50 pm
by christian
Ben,

I am clicking on the spanner icon, and when trying to open the new link,
I have a message saying that windows cannot access the specified path file or device. You may not have the appropriate permission to access the item.

Posted: Fri Mar 09, 2007 12:23 pm
by Benj
Hello

See my responce to your other question.

Posted: Fri Mar 09, 2007 1:16 pm
by Benj
Hello Christian

We have experience with a similar problem. It is detailed in the support section.

http://matrixmultimedia.com/support/viewtopic.php?t=433

This should tell you everything you need to know to fix the problem.