How to setup ADC_ETC/PWM Sync mode in i.MX1170?

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

How to setup ADC_ETC/PWM Sync mode in i.MX1170?

Jump to solution
2,021 Views
kenji
Contributor IV

Hi Team!

I'm using MIMXRT1170-EVK and I want to setup ADC_ETC/PWM sync mode with Config Tools.

I was using MIMXRT1060-EVK, but with i.MX1170, the appearance of Config Tools has changed, and there unknow terms, and I don't know how to set it like before.

Q.1 Following is the i.MX1060 ADC and ADC_ETC settings. How can I set it i.MX1170?

kenji_0-1635142251769.pngkenji_1-1635142287477.pngkenji_2-1635142312182.pngkenji_3-1635142327687.png

kenji_4-1635142346787.png

Q.2 Following is the setting screen of ADC_ETC of i.MX1170.

What was called a channel group and conversion control group in i.MX1060 has been replaced by Command ID and Trigger.

I read the reference manual, but I don't know how to set in actual.
I would like to see the setting screen when the ATC_ETC setting of Q1 is applied to i.MX1170.



kenji_5-1635142543777.png

 

 

Tags (1)
0 Kudos
1 Solution
1,973 Views
kenji
Contributor IV

Hi @kerryzhou -san

I was able to solve by myself.
By enabling the setting of the red frame in the figure below, ADC_ETC worked.

kenji_0-1635432437622.png

View solution in original post

Tags (2)
6 Replies
2,013 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @kenji ,

  Please help to confirm two points:

1. When you use the CFG to configure the RT1060 ADC-ETC+ADC, it works on your side, right?

2. What's the CFG version you are using? Or from the MCUXPresso IDE? Which MCUXPresso IDE version. 

Please give me more information at first, then I can help you to check more details.

Best Regards,

Kerry

0 Kudos
2,011 Views
kenji
Contributor IV

Hi @kerryzhou -san

I will answer the question.

  1. Yes, my PWM+ADC+ADC_ETC  code and settings on i.MX1060 works.
  2. This is the version of IDE I using.
     
    kenji_1-1635240510587.png

     

The following is the current situation.

kenji_0-1635243499007.png

 

I want to do same thing on i.MX1170.
Could you tell me how to set on Config Tools?
I would like to see the screen after end the settings on the i.MX1170.

 

0 Kudos
1,995 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @kenji ,

 Please also share me your working RT1060 configure file or the project, then I will help you to check more details in the RT1170.

  Please keep patient, I need more time to do deeper checking, thanks.

Best Regards,

Kerry

0 Kudos
1,974 Views
kenji
Contributor IV

Hi @kerryzhou -san

I was able to solve by myself.
By enabling the setting of the red frame in the figure below, ADC_ETC worked.

kenji_0-1635432437622.png

Tags (2)
1,988 Views
kenji
Contributor IV

Hi @kerryzhou -san

I uploaded RT1062(MIMXRT1060-EVK) and RT1176(MIMXRT1170-EVK) board folder and .mex file.

Please check it.

  • What I want to do is to do ADC every PWM cycle for PMSM motor.
  • RT1062 works fine.
  • RT1176 doesn't work as expected.  First, ADC_ETC error interrupt occurs. ADC_ETC_IRQ0 is done every two cycles. ADC is working correctly at ADC ETC IRQ0 interrupt. Also, interrupt timing of ADC_ETC_IRQ0 should be the timing of ADC_ETC_ERR in below figure.
    kenji_0-1635386870993.png

     

By the way, is there any way to know why ADC_ETC_ERR interrupt happens? 
I couldn't find out register that have ADC_ETC_ERR interrupt error flags.
I think, if I can know the reason for the error, it will help me to solve the problem.

Tags (1)
0 Kudos
2,005 Views
kenji
Contributor IV

Hi @kerryzhou -san


The following is the manual and setting screen of i.MX1170 regarding ADC_ETC.

  1. How set the conversion trigger of chain configuration?
  2. Is the trigger source and conversion trigger the same or different?
  3. Is segment and command ID the same or different? 
 

kenji_0-1635261519462.png

 

kenji_2-1635261376390.png

 

 

 

 

 

Tags (1)
0 Kudos