help needed for beginners

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

Post Reply
christian
Posts: 4
Joined: Thu Mar 08, 2007 3:47 pm
Contact:

help needed for beginners

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post 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

christian
Posts: 4
Joined: Thu Mar 08, 2007 3:47 pm
Contact:

Urgent feedback

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hello

See my responce to your other question.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post 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.

Post Reply