View previous topic :: View next topic |
Author |
Message |
deepakomanna
Joined: 06 Mar 2007 Posts: 92 Location: Pune,India
|
Oscillator Calibratiom problem |
Posted: Wed Mar 14, 2007 9:39 pm |
|
|
Dear sir,
here i am using 16f684 with MPLAB 7.5 V & CCS PCM C Compiler, Version 3.249, 34534.
So, My problem is how to assign OSCILLATOR CALIBRATION Freq. to 16f684.
In 12f629 i assign like this,
#byte osccal = 0x90
......
.....
#asm
call 0x03ff
movwf osccal
#endasm |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Mar 14, 2007 10:05 pm |
|
|
The 16F684 doesn't have an OSCCAL register, so there is no factory
calibration value at the end of program memory.
It does have an OSCTUNE register, but you don't need to use it.
The internal oscillator is tuned at the Microchip factory. I assume
it's done by laser trimming. |
|
|
deepakomanna
Joined: 06 Mar 2007 Posts: 92 Location: Pune,India
|
thanks |
Posted: Wed Mar 14, 2007 11:28 pm |
|
|
Dear sir,
Thank you very for ur help,now i will go to write my remaining source code.
Thank You,
With Best Regards,
Deepak. |
|
|
|