emios_ic_mpc5748g

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

emios_ic_mpc5748g

721 Views
Jerry5
Contributor I

Hello:

I'm trying to use "emios_ic_mpc5748g" demo example available in S32 Design Studio. But it's not working. 

2.jpg

When I input 'c', nothing is received. 

[10:04:16.530]Rx←◆\0
[10:04:21.797]Rx←◆**************************************
Press 'c' to print duty value capture
[10:04:25.276]Tx→◇c□
[10:04:25.279]Rx←◆
**************************************
The value capture :
[10:04:28.757]Tx→◇c□
[10:04:29.787]Tx→◇c□
[10:04:30.161]Tx→◇c□
[10:04:30.358]Tx→◇c□
[10:04:30.531]Tx→◇c□
[10:04:30.725]Tx→◇c□
[10:09:06.287]Rx←◆\0
[10:10:34.710]Rx←◆**************************************

so I change the code, the input signal frequency is 8kHz.but the return value is always 0.

1.jpg

[11:04:52.481]Rx←◆**************************************
Press 'c' to print duty value capture
[11:04:54.967]Tx→◇c□
[11:04:54.969]Rx←◆
**************************************
The value capture : 0
[11:04:55.745]Tx→◇c□
[11:04:55.748]Rx←◆
**************************************
The value capture : 0

0 Kudos
3 Replies

698 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I imported your example to the S32DS2.1, generated code, built and debug with DEVKIT (revD1). I connected PE10(J2.10) pin with PF11(J13.2). After running code it works normally.

PetrS_0-1626693122418.png

BR, Petr

0 Kudos

655 Views
Jerry5
Contributor I

Hi, Petr

        Thank you for your information. I reinstalled S32DS2.1 & S32DS_PA_2.1_UP14, generated code, built and debug with DEVKIT (rev BO). I connected PE10(J2.10) pin with PF11(J13.2). It still returned 0. 

 

        And I changed the eMIOS MC. eMIOS0 PA5 output 8kHz PWM and eMIOS PA6 configured as eMIOS_IC.  I connected PA5 pin with PA6 pin. It can return 5000. 

        But I still have no idea why eMIOS1 don't work.

[20:39:19.583]Rx←◆\0
[20:39:19.713]Rx←◆**************************************
Press 'c' to print duty value capture
[20:39:21.746]Tx→◇c□
[20:39:21.749]Rx←◆
**************************************
The value capture2 : 5000
[20:39:22.557]Tx→◇c□
[20:39:22.560]Rx←◆
**************************************
The value capture2 : 5000
[20:39:23.326]Tx→◇c□
[20:39:23.328]Rx←◆
**************************************
The value capture2 : 5000
[20:39:24.089]Tx→◇c□
[20:39:24.092]Rx←◆
**************************************
The value capture2 : 5000

 

0 Kudos

637 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

check SIUL MSCR registers if pins are really configured for eMIOS_1 channels. And measure with scope/analyzer if PWM is generated.

BR, Petr

0 Kudos