|
|
View previous topic :: View next topic |
Author |
Message |
Francois
Joined: 29 Mar 2005 Posts: 2
|
12C671 oscillator calibration problem |
Posted: Tue Mar 29, 2005 6:07 am |
|
|
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
|
|
Posted: Tue Mar 29, 2005 6:42 am |
|
|
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
|
|
Posted: Wed Mar 30, 2005 12:43 am |
|
|
it's ok. Thank you very much.
Francois. |
|
|
|
|
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
|