Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

LAUNCHXL-F28379D: ADC measuring with Simulink getting wrong Values

$
0
0

Part Number: LAUNCHXL-F28379D

Hey,

I'am using the LaunchPadXL F28379D with Simulink and watch the values of the ADC in display with external mode. I wanted to measure temperature sensors. with the 12Bit ADC input A_IN15 (Pin 63) and C_IN5 (Pin 64). The ADC displays an output of 2378.
So that would be in Voltage: 2378 * (3.3 / 4096)  = 1,91V
With multimeter i measured 1.74V. That would be = 2159. 
So the difference between real Voltage and measured in Simulink is about 170mV, What is a lot i think. 

The ADC Block Parameters for the Pin 63 are:
ADC Module: A
ADC Resolution: 12-bit (single-ended input)
SOC trigger number: SOC0
SOCx axquisition window: 64
SOCx trigger source: Software
ADCINT will trigger SOCx: No ADCINT
Sample time: 0.1
Data type: uint16
Post interrupt at EOC trigger: no

Configuration Parameters for ADC_A:
Selected CPU Core: Auto
ADC clock prescaler (ADCCLK): SYSCLKOUT/8.5
ADC clock frequency in MHz: 23.5294
Offset: AdcaRegs.ADCOFFTRIM.bit.OFFTRIM
INT pulse control: Late interrupt pulse
SOC high priority: All in round robin mode
ADCEXTSOC external pin: GPIO0

Do you have any ideas what the problem is.

Greetings 

Stefan

 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>