SW500009 Microchip Technology, SW500009 Datasheet - Page 212

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
GET_CAL_DATA
Synopsis
Description
This function returns the 32-bit floating point calibration data from the PIC14000 calibration space.
Only use this function to access KREF, KBG, VHTHERM and KTC (that is, the 32-bit floating point
parameters). FOSC and TWDT can be accessed directly as they are bytes.
Example
Return Value
The value of the calibration parameter
Note
This function can only be used on the PIC14000.
198
#include <htc.h>
double get_cal_data (const unsigned char * code_ptr)
#include <htc.h>
void
main (void)
{
}
double x;
unsigned char y;
x = get_cal_data(KREF);
y =TWDT;
/* Get the slope reference ratio. */
/* Get the WDT time-out. */
Library Functions

Related parts for SW500009