MK20 single ended ADC B channels

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MK20 single ended ADC B channels

1,700 次查看
kbhadane
Contributor I

Hello, 

We are using MK20DX256 and as we are using all the ADC channels, we have wired up a new product using the B channel of the ADCs.  But we find that we can not start the Conversion process.  We have verified that the they are configured correctly. There are reference in the Reference Manual (November 2011) that suggest that these "B" type ADCs might require some kind of external trigger on a pin named ADHWT and ADHWTS.   But we can not find any reference to pins or registers with that designation.   In the application note linked below, we have also seen reference to triggering the ADC with PDB, but there was no clear explanation on how to start the trigger (from within software) using that method.  Can you provide us with Sample Code that initializes a B-channel ADC, initiates the Conversion, and then reads back the value?
标签 (1)
0 项奖励
回复
3 回复数

1,623 次查看
kbhadane
Contributor I

Hello Kerry, 

We are using MK20DX256VLK10. We aren't planning to use DMA. We are using software trigger for rest of the channels. Here are few questions I have,

  1) As all channel B need hardware trigger, is there any way I can trigger the channel B without any hardware modifications? e.g. using FTM channel or just PDB for triggering? What are the options?

2) We are using software trigger for other channels and we don't want to use DMA, how can I configure channel B to be triggered using hardware trigger for single shot. We are using ADC1_SE4B, ADC1_SE5B, ADC1_SE6B, ADC1_SE7B in our project. 

 

It would be really helpful if you can provide a sample code and information on how to use channel b. 

Thank you,

Kunal

0 项奖励
回复

1,623 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Kunal Bhadane,

  I have a question, why you don't  use the channel A? Channel can be used both the software and hardware trigger.

  You can don't use the DMA, just the other module hardware trigger.

  Anyway, I will checking the 100M related code, if I find it, I will share it with you.

Best Regards,

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

1,623 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Kunal Bhadane

  Please also let us know your detailed K20 chip part number, as K20 has a lot of series. 100Mhz, 72Mhz, 50Mhz.

 About the ADC SC1B with PDB, you also can refer to this post:

https://community.nxp.com/message/347622?commentID=347622#comment-347622 

  There has some code sharing for your reference.

Wish it helps you!

Best Regards,

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复