Emios saic code example

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

Emios saic code example

Jump to solution
2,149 Views
James123
Contributor II

is there any example code available for ICU Emios for SAIC Mode 

0 Kudos
Reply
1 Solution
2,099 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @James123,

Are you utilizing the example from the RTD, or are you implementing the configuration in a new project? If you are using the example, please take into consideration which channel was initialized:

Julin_AragnM_0-1707245369475.png

Also, the function states the following: Emios_Icu_Ip_Init must be called before. The given channel must be configured in Measurement Mode Signal Measurement, Duty Cycle Values.

Best regards,
Julián.

View solution in original post

0 Kudos
Reply
9 Replies
2,106 Views
James123
Contributor II

the value is not updating in icuipgetdutycyclevalue function .

0 Kudos
Reply
2,100 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @James123,

Are you utilizing the example from the RTD, or are you implementing the configuration in a new project? If you are using the example, please take into consideration which channel was initialized:

Julin_AragnM_0-1707245369475.png

Also, the function states the following: Emios_Icu_Ip_Init must be called before. The given channel must be configured in Measurement Mode Signal Measurement, Duty Cycle Values.

Best regards,
Julián.

0 Kudos
Reply
2,138 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @James123,

You can find the Emios_Icu_Ip_BlinkLed_S32K344 example under the following installation path for the RTD: 

  • C:\nxp\SW32K3_S32M27x_RTD_R21-11_4.0.0\eclipse\plugins\Icu_TS_T40D34M40I0R0\examples\S32DS\S32K3XX

With the following examples as well:

Julin_AragnM_1-1706913651647.png

This example controls with input in ICU-eMios pin through IcuSignalNotification function, a GPIO trigger will generate edges to ICU input pins. The interrupts will be generated for the ICU channels and the user's functions will be called; the user's functions will blink LED.

Hope you find this helpful!

Best regards,
Julián.

0 Kudos
Reply
2,124 Views
James123
Contributor II

The file is not found on my nxp folder, also which function is needed to measure the pulse width using SAIC mode in emios channel we have used the emios1_3 irq and it is detecting the high and low pulses ... to measure the pulse can you help me to find out which function need to be used.

Tags (1)
0 Kudos
Reply
2,111 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @James123

This example is found under the RTD installation path. If you have the latest RTD installed, you can import the example instead from Design Studio:

Julin_AragnM_0-1707147388606.png

As for the functions, you can try to implement Emios_Icu_Ip_GetDutyCycleValues, this function reads the coherent active time and period time for the given ICU Channel.

Hope you find this helpful.

Best regards,
Julián

0 Kudos
Reply
155 Views
abdul_rahman
Contributor III

Hi @Julián_AragónM 

This SAIC example code is not working. The Red LED of the S32K3X4EVB-T172 evaluation board is not blinking according to the given program. Can you send me the working version of this example code for the board I'm using?

0 Kudos
Reply
123 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @abdul_rahman,

Have you connected the GPIO trigger and channel 1 for EMIOS? 

Julin_AragnM_0-1728515171180.png

Best regards,
Julián

0 Kudos
Reply
113 Views
abdul_rahman
Contributor III

Hi @Julián_AragónM 

Must've slipped my eye about connecting the pins. The code is working fine now. Thanks for the help.

152 Views
abdul_rahman
Contributor III
Hi @Julián_AragónM 
One more thing. Please send this example code for RTD v4 version of the design studio?
0 Kudos
Reply