Emios saic code example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Emios saic code example

ソリューションへジャンプ
10,666件の閲覧回数
James123
Contributor I

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

0 件の賞賛
返信
1 解決策
10,616件の閲覧回数
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 件の賞賛
返信
9 返答(返信)
10,618件の閲覧回数
James123
Contributor I

the value is not updating in icuipgetdutycyclevalue function .

0 件の賞賛
返信
10,617件の閲覧回数
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 件の賞賛
返信
10,650件の閲覧回数
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 件の賞賛
返信
10,636件の閲覧回数
James123
Contributor I

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.

タグ(1)
0 件の賞賛
返信
10,623件の閲覧回数
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 件の賞賛
返信
8,667件の閲覧回数
abdul_rahman
Contributor IV

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 件の賞賛
返信
8,635件の閲覧回数
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 件の賞賛
返信
8,625件の閲覧回数
abdul_rahman
Contributor IV

Hi @Julián_AragónM 

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

8,664件の閲覧回数
abdul_rahman
Contributor IV
Hi @Julián_AragónM 
One more thing. Please send this example code for RTD v4 version of the design studio?
0 件の賞賛
返信