emios_gpt Notification

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

emios_gpt Notification

Jump to solution
2,570 Views
Ayaz
Contributor IV

Hi 

I would like to explore different ways to trigger the BCTU -ADC :

1) EMIOS_mcl ---> BCTU ----> ADC.

2) PIT---> TRGMUX ----> BCTU ----> ADC.

3) EMIOS_gpt----> BCTU ----> ADC.

1 ) are there more possibilities ?

in this case ( EMIOS_gpt----> BCTU ----> ADC).

 Initializing EMIOS_gpt is only possible via EMIOS_mcl ??

Skærmbillede 2024-02-26 172921.pngSkærmbillede 2024-02-26 172930.png

Skærmbillede 2024-02-26 172812.png

Skærmbillede 2024-02-26 173015.png

Skærmbillede 2024-02-26 174312.png

Skærmbillede 2024-02-26 172832.png

I am trying to toggle a SIUL2 pin every time the EMIOS_gpt is triggered

vEMIOSTR function should be called every time the  EMIOS_gpt  is triggred.

vBctu this function should be called every time the BCTU is triggred.Skærmbillede 2024-02-26 173531.png

The issue i am facing is that vEMIOSTR  function is not been called, however the vBCTU is been called.

I can not  find the issue !! 

 

0 Kudos
Reply
1 Solution
2,501 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

There are four uses for emios in RTD:
1.eMIOS General Purpose Timer  ->Emios_Mcl_Ip
2.eMIOS Output Compare Unit     ->Emios_Ocu
3.eMIOS Pulse Width Modulation ->Emios_Pwm
4.eMIOS Input Capture Unit          ->Emios_Icu

eMIOS_Mcl refers to eMIOS Mocrocontroller Library. It is not a working mode of eMIOS.

When you use the above four working modes, you must add Emios_Mcl

I hope I've explained it clearly.

View solution in original post

8 Replies
2,552 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

1.Emios_Mcl_Ip means eMIOS Microtroller Library which is not a emios work mode. 

−The Emios_Mcl_Ip  must be added in your project if you want to use the other four derivers(Gpt,Ocu,Pwm,Icu).

2.you enabled eMIOS0-CH5 but actually the CH0 used for Gpt

Senlent_1-1709025450220.png

 

 

0 Kudos
Reply
2,542 Views
Ayaz
Contributor IV

I have enabled  interrupt  (EMIOS0_5_IRQn) Skærmbillede 2024-02-27 123025.png

based on this fact:

Skærmbillede 2024-02-27 123155.png

which handle should be used for eMIOS0 -ch0 ?

0 Kudos
Reply
2,527 Views
Ayaz
Contributor IV
The image is from Emios_Mcl_Ip_Irq.c file
0 Kudos
Reply
2,523 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

Thank you for the information, I'm working on your problem, I still need some time

0 Kudos
Reply
2,521 Views
Ayaz
Contributor IV
Thanks for the responding, i am waiting for you replay
0 Kudos
Reply
2,518 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

I made a demo for your reference, the RTD version is RTD 3.0.0 , hardware is S32K3X4-Q257

EMIOS0_CH0 used for Gpt and the timing is 200Hz.

0 Kudos
Reply
2,509 Views
Ayaz
Contributor IV
Thank you; it's working now. Just one last question: what's the difference between using Emios_mcl and Emios_gpt to trigger the BCTU? I'm trying to figure out the best method to do this using EMIOS. Which approach is the most effective(note: i am also using emios_mcl to configure the main bus into emios_pwm)
0 Kudos
Reply
2,502 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

There are four uses for emios in RTD:
1.eMIOS General Purpose Timer  ->Emios_Mcl_Ip
2.eMIOS Output Compare Unit     ->Emios_Ocu
3.eMIOS Pulse Width Modulation ->Emios_Pwm
4.eMIOS Input Capture Unit          ->Emios_Icu

eMIOS_Mcl refers to eMIOS Mocrocontroller Library. It is not a working mode of eMIOS.

When you use the above four working modes, you must add Emios_Mcl

I hope I've explained it clearly.