CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

12C671 oscillator calibration problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Francois



Joined: 29 Mar 2005
Posts: 2

View user's profile Send private message

12C671 oscillator calibration problem
PostPosted: Tue Mar 29, 2005 6:07 am     Reply with quote

Hello,

i use PCW software on a p12C671 project. There are some problems during emulation, i use a Mathias emulator, and when i expect the .lst file, there is a call at 0x3FF adress at the Reset vector. It's ok to calibrate oscillator on a chip but during emulation there is no code at this adress so the program stop.

The solution could be to put at 0x3FFF adresse the instruction 'retlw .50' for exemple to simulate the chip but i can't put this. I have tried the 'ORG' directive like that :

#org 0x3FF, 0x3FF
#asm
retw .50
#endasm

but the compiler doesn't accept this.

What are the solutions ?

Francois
Ttelmah
Guest







PostPosted: Tue Mar 29, 2005 6:42 am     Reply with quote

Use:
#ROM 0x3FF = { 0x349c }

Alternatively, just change the oscillator type definition, when using the emulator.
The #org ability, assumes it is required to insert a 'routine', and as such requires a suitably defined function to work. Unfortunately, this prevents it from accepting 'one instruction' definitions.

Best Wishes
Guest








PostPosted: Wed Mar 30, 2005 12:43 am     Reply with quote

it's ok. Thank you very much.

Francois.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group