problem about adc_pal_MPC5744P

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

problem about adc_pal_MPC5744P

829 Views
supra0309
Contributor I

Excuse me, what should I do to make this example run successful. I need to print string in console. Does it need any inputs or just need to connect to the PC and debug? Is there any settings need to do? Thanks. 

 

Best Regards,

Xantia

Labels (1)
0 Kudos
6 Replies

671 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

I just compiled the example file without any further configuration needed with no errors.

It should be simple, just connect the board to PC and run it.

I did not find any setting which you should set, except RTOS (which is optional)

regards,

Peter

0 Kudos

671 Views
supra0309
Contributor I

Hi,

Thanks for your reply. I have another question, when after run it what does the result should be?

Best Regards,

Xantia

0 Kudos

671 Views
petervlna
NXP TechSupport
NXP TechSupport

Hmm,

You mean ADC results.

It will depend on voltage on measured analog pin.

regards,

Peter

0 Kudos

671 Views
supra0309
Contributor I

Hi,

Thanks for your answer. There's another problem. In this example, I find "extern uint16_t adc_pal1_Results00[(3u) * (2u)]; " and "resVolts = ((float) adc_pal1_Results00[idx] / adcMax) * 5". But I can't understand why uses these. Could you help?

Best Regards,

Xantia

0 Kudos

671 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Where is the example from?

Could you link it / share it here?

best regards,

Peter

0 Kudos

671 Views
supra0309
Contributor I

Hi,

 

Sure, I can show you where's it.

 

Best Regards,

Xantia

1.png

0 Kudos