Emios saic code example

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

Emios saic code example

Jump to solution
1,461 Views
James123
Contributor II

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

0 Kudos
Reply
1 Solution
1,411 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
5 Replies
1,418 Views
James123
Contributor II

the value is not updating in icuipgetdutycyclevalue function .

0 Kudos
Reply
1,412 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
1,450 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
1,436 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
1,423 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