A questions about example "adc_pal_mpc5748g"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

A questions about example "adc_pal_mpc5748g"

593 Views
shingo
Contributor II

Hi:
    I "New" a project from example "adc_pal_mpc5748g" using SDK PARTM v3.03.
    Here is my question: Where to config in the S32DS IDE to generate the PB4 to "Analog Pad Control : Enabled" and "Input Buffer Enable: Enabled" in the file "pin_mux.h"?

shingo_0-1617947096429.png

BR,

zhou

 

0 Kudos
3 Replies

576 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you can config it if needed within "Functional Properties" tab of the pin mux component

PetrS_0-1617965190690.png

 

BR, Petr

0 Kudos

587 Views
shingo
Contributor II

Hi:

 By the way, the "Num sets of results in buffer" is set "2" in this example.

shingo_0-1617950764961.png

What does this variable "Num sets of results in buffer" do? What's wrong with setting it to "1"?

0 Kudos

575 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

"Num sets of results in buffer" defines how many times a number of channels defined will be stored into result buffer. Thus the length of the result buffer = numChannels * numSetsResultBuffer.
Each time a group of conversions finishes execution, a set of results for all conversions in the group will be copied by the PAL into the corresponding result buffer. The PAL considers the result buffer as circular, with the length configured via previously described.

BR, Petr

0 Kudos