/Designs/Tools/reflow2/SW/reflow.c/reflow.c |
---|
81,11 → 81,11 |
int16 teplota(void) |
{ |
BYTE CONST TEMP_CALLIBRATION[20] = {0x90,0xb7,0x19,0x15,0x36,0x54,0x50,0xb5,0,0x24}; |
//BYTE CONST TEMP_CALLIBRATION[20] = {0x90,0xb7,0x19,0x15,0x36,0x54,0x50,0xb5,0,0x24}; |
int16 Temp; |
/*int16 Temp; |
/* float32 Rpt; |
float32 Rpt; |
float32 Tpt; |
Rpt = 1.0*adc()*2350.0/1024.0; //zapojeni OZ -> R=U/Iconst |
94,11 → 94,11 |
#define B -5.802e-7 |
Tpt = (-A + sqrt(A*A - 4*B*(1.0 - Rpt/1000.0)))/2.0/B; |
*/ |
return Temp; |
*/ |
return adc(); |
} |