- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I have 2 boards, one marked Rev 4 with QR Barcode labels on it, the other older and no rev or QR
label.
I am using DieTemp component, more recent board gives me a correct reading of 84 F at room Temp,
the older board gives > 200 F.
Code being used trivial (readings at 1 sec intervals) :
SAR1_EnableInjection( ); // On next conversion enable SAR to measure injection channel
while ( SAR1_IsEndConversion(SAR1_RETURN_STATUS_INJ ) == 0);
SARcnts = (int32) SAR1_GetResult16( 1 ); // Get results from SAR ADC injection channel, which is die temp in this design
// SARcnts = (int32) ( (5.000 * (float) SARcnts ) / 1.024 ); // Correct counts becuse we are using 5V Vref versus 1.024 Vref
DieTempF = (int16) DieTemp_CountsTo_Celsius( SARcnts );
DieTempF = ( ( 9 * DieTempF ) / 5 + 32 ); // Convert to degreees F
SARconvCount = 0; // Reset the # SAR conversions counter used to only examine injection channel > 1 sec
Code used inside ISR from SAR at EOC. SAR running continuously. All vars sized correctly for API being used.
Vref is 1.024V
Were the older boards an issue ? Creator 4.4 and 4.4 being used.
Regards, Dana.
- Labels:
-
PSoC Creator Software