Re: Encoder Emios Interrupt Map

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

Re: Encoder Emios Interrupt Map

ソリューションへジャンプ
2,619件の閲覧回数
gadilinga
Contributor III

 

Hi, I Stared Configuration of the Emios ICU For Encoder Currently i need to Use Interrupt for Emios For Different channels so but i didn't get Proper Interrupt name In the Interrupt map File. Whether I need to Select The Same Emios Instance 0 (Emios 0 to 5 in the EB Tool) name for  all 23 channels in Interrupt Map. 

1)

gadilinga_1-1727259304215.pnggadilinga_2-1727259394437.png

1)  can u See the Above Snippet. I have Doubt in the Icu Module, While i Configure the Icu  channels for Encoder TRAIXS_A, TRAIXS_B,TRAIXS_PWM,TRAIXS_I, for Customized board. I need to Configure the Port Pin Mode was emios_ch, EIRQ and TRGMUX_IN in these 3 which one need to select for Icu Channels for Input Direction.

2) Another Question was whatever we Tried in evaluation board S32K344 its Working. But when we Check in S32K322 Board.  i won't get the Any Response From the Board. i didn't get the What was the Root Cause for my Output.

3) For MCL module need to Configure the TRGMUX and LCU for ICU and Pwm. As RTD training Material For LCU. I tried but I was Not Worked in Evaluation board. Question was Pwm Portpin Mode As Lcu Out  Or Emios Output Mode enough to get the Output.

gadilinga_3-1727260635137.png

 

 

0 件の賞賛
返信
1 解決策
2,442件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @gadilinga 

Sorry for the inconvenience, but I think I do not quite understand what you are looking for. I suggest you check out the MCSPTE1AK344 Development Kit Application Software, which might help you clarify any doubts regarding the configurations.

元の投稿で解決策を見る

0 件の賞賛
返信
10 返答(返信)
2,554件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @gadilinga 

1) Each eMIOS instance is assigned 6 interrupts that can only be requested through specific channels, for example:

EMIOS0_0_IRQn = 61,               /**< Interrupt request 23,22,21,20 */
EMIOS0_1_IRQn = 62,               /**< Interrupt request 19,18,17,16 */
EMIOS0_2_IRQn = 63,               /**< Interrupt request 15,14,13,12 */ 
EMIOS0_3_IRQn = 64,               /**< Interrupt request 11,10,9,8 */
EMIOS0_4_IRQn = 65,               /**< Interrupt request 7,6,5,4 */
EMIOS0_5_IRQn = 66,               /**< Interrupt request 3,2,1,0 */

Each interrupt handler processes the interrupt for the specified EMIOS channels when configured in GPT, ICU, OCU or PWM mode. For example, if we want to enable the eMIOS 0 Ch 2 interrupt configured as ICU, make sure to have the IcuIsr and interrupt enabled and assign the handler. Use the following images as a reference.

VaneB_0-1727725437965.pngVaneB_1-1727725450170.png

2) The hardware resources configured by the Icu driver are LPCMP, SIUL2, EMIOS and WKPU. 

As mentioned in the application note 3-phase Sensorless PMSM Motor Control Kit with S32K344, channels 5 and 6 of eMIOS0 must be configured with the ICU Driver to control the input capture.

3) It is difficult to determine the cause of the problem. You have to make sure that when porting the code, the differences between both devices are taken into account.

4) Could you share the settings made in the MCL driver?

 

BR, VaneB

0 件の賞賛
返信
2,531件の閲覧回数
gadilinga
Contributor III

Hi @VaneB ,

thank u For Ur Quick Response. I have one Query regarding Encoder in ICU Module Which Portpin Mode i need to  Configure and ICU module Configuration for  ICU encoder . which one  I need to Select 1)emios channel Input 2)SIUL2 EIRQ  Input channel 3)TRGMUC_IN. channel 

gadilinga_0-1727774853601.png

 

0 件の賞賛
返信
2,504件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @gadilinga 

As mentioned in the application note 3-phase Sensorless PMSM Motor Control Kit with S32K344, channels 5 and 6 of eMIOS0 need to be configured in the pin tool as input and then configured in the ICU Driver.

0 件の賞賛
返信
2,494件の閲覧回数
gadilinga
Contributor III
Hi @VaneB,
thank u For replay. sorry for Miscommunication actually i asked about Port pin Configuration for ICU module so I have doubt In Portpin Mode Configuration. plz can I know the which one i need to select for ICU Encoder.
1)As for the Application TRGMUX_IN mentioned in AN13767.
2)if I Select the Emios CH[2]_IN it will work for ICU encoder.
3)if i Use SIUL2 for EIRQ[1]_IN, it support the ICU encoder. plz guide me for Which Portpin Mode In need to Select. which is More Suitable for ICU Encoder.
0 件の賞賛
返信
2,479件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @gadilinga 

Sorry for the misunderstanding.

The PortPin mode for the pin that will be configured with the ICU controller should be the eMIOS channel as input. So for example, if we want to configure eMIOS 0 channel 5 with the ICU driver to count the edges of the encoder signals PHA (as mentioned in the AN13767), it should be set as input and in the PortPin configuration it should be as shown in the following image:

VaneB_0-1727976454852.png

Please let me know if this answers your question.

0 件の賞賛
返信
2,461件の閲覧回数
gadilinga
Contributor III

Hi @VaneB ,

gadilinga_0-1728018807729.pnggadilinga_1-1728018902518.pnggadilinga_2-1728018955754.png

thank u For Quick Response. Plz Focus On whichever thing  Highlighted matter mentioned in AN13767 See the Pin Assignment, Trigger MUX and Quadrature encoder. Plz get to know what was the PortPin mode for  ICU Encoder.

0 件の賞賛
返信
2,443件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @gadilinga 

Sorry for the inconvenience, but I think I do not quite understand what you are looking for. I suggest you check out the MCSPTE1AK344 Development Kit Application Software, which might help you clarify any doubts regarding the configurations.

0 件の賞賛
返信
2,383件の閲覧回数
gadilinga
Contributor III
Hi @VaneB,
thank u For Support. i will through that which is u shared. Actually I'm Referring S32K344 Development Kit application Software As for the application Note Mentioned input And Configuration I'm Referring. thank u
0 件の賞賛
返信
2,566件の閲覧回数
gadilinga
Contributor III
Hi , Plz Can I get Solution for above Query ASAP. I'm Stuck with This Issue. Thank u
0 件の賞賛
返信
2,372件の閲覧回数
gadilinga
Contributor III
Hi @VaneB,

My Question Was , which Port pin function I need to Select for Encoder.
0 件の賞賛
返信