![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
#include "fsl_adc16_driver.h"
#include "fsl_interrupt_manager.h"
#include "i2c_rtos.h"
#include "fsl_pmc_hal.h"
Macros | |
#define | V_TEMP25 |
These values are used to get the temperature. DO NOT MODIFY The method used in this demo to calculate temperature of chip is mapped to Temperature Sensor for the HCS08 Microcontroller Family document (Document Number: AN3031) More... | |
#define | ADCR_VDD |
#define | V_BG |
#define | M |
#define | STANDARD_TEMP |
Functions | |
void | calibrateParams (void) |
Parameters calibration: VDD and ADCR_TEMP25. More... | |
void | task_sample (task_param_t param) |
uint8_t * | get_temp_pointer (void) |
Variables | |
static int32_t | gTemperature |
static uint32_t | adcrTemp25 |
static uint32_t | adcr100m |
#define ADCR_VDD |
#define M |
#define STANDARD_TEMP |
#define V_BG |
#define V_TEMP25 |
void calibrateParams | ( | void | ) |
This function used BANDGAP as reference voltage to measure vdd and calibrate V_TEMP25 with that vdd value.
ADC value of BANDGAP
VDD in mV
uint8_t* get_temp_pointer | ( | void | ) |
Get temperature pointer from the ISR context
void task_sample | ( | task_param_t | param | ) |
task to read ADC for internal temperature
|
static |
|
static |
|
static |