S32K142 PDB

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

S32K142 PDB

397 Views
minsky
Contributor I

你好,我正在使用S32K142的pdb模块,我有以下疑问:

1. 使能软件触发,开启背对背模式和连续模式,请问两者同时开启后PDB是怎样工作的呢?ADC会一直不停的转换,或者触发后开始转换,当所有转换完成后暂停,等待再次触发后再开始转换?

2. PDB的索引和ADC的通道是如何对应的呢?如我的PDB0使能通道0索引0~7,ADC1使能通道0,1,7,9,10,11,12,13,是只需要两者数量对应就可以吗?

0 Kudos
Reply
1 Reply

195 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@minsky

1.你说的是ADC的连续模式?该模式是只会对同一个ADC通道进行连续转换,这个模式和PDB的back-to-back模式没关系。我理解的有错的话请纠正我

In continuous conversion configuration, only the initial rising edge to launch continuous conversions is observed, and until conversion is aborted, the ADC continues to do conversions on the same SCn register that initiated the conversion.

2.对的,按照你在ADC配置界面中的顺序来。

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2265852%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ES32K142%20PDB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2265852%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20I%20am%20using%20the%20pdb%20module%20for%20S32K142%20and%20I%20have%20the%20following%20questions%3A%3C%2FP%3E%3CP%3E1.%20enable%20software%20trigger%2C%20turn%20on%20back-to-back%20mode%20and%20continuous%20mode%2C%20may%20I%20ask%20how%20PDB%20works%20when%20both%20are%20turned%20on%20at%20the%20same%20time%2C%20will%20ADC%20keep%20converting%20non-stop%2C%20or%20will%20it%20start%20converting%20after%20triggering%2C%20and%20then%20pause%20when%20all%20the%20conversions%20are%20completed%20and%20wait%20for%20triggering%20again%20to%20start%20converting%20again%3F%3C%2FP%3E%3CP%3E2.%20How%20does%20the%20index%20of%20PDB%20correspond%20to%20the%20channel%20of%20ADC%3F%20If%20I%20have%20PDB0%20enabling%20channel%200%20index%200~7%20and%20ADC1%20enabling%20channels%200%2C%201%2C%207%2C%209%2C%2010%2C%2011%2C%2012%2C%2013%2C%20is%20it%20only%20necessary%20that%20the%20number%20of%20both%20correspond%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2269456%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K142%20PDB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269456%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHi%40minsky%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E1.%20Are%20you%20talking%20about%20the%20continuous%20mode%20of%20the%20ADC%3F%20This%20mode%20is%20that%20only%20the%20same%20ADC%20channel%20will%20be%20converted%20continuously%2C%20this%20mode%20has%20nothing%20to%20do%20with%20the%20back-to-back%20mode%20of%20the%20PDB.%20Correct%20me%20if%20I%20understand%20you%20wrong.%3C%2FP%3E%0A%3CP%3EIn%20continuous%20conversion%20configuration%2C%20only%20the%20initial%20rising%20edge%20to%20launch%20continuous%20conversions%20is%20observed%2C%20and%20until%20conversion%20is%20aborted%2C%20the%20ADC%20continues%20to%20do%20conversions%20on%20the%20same%20SCn%20register%20that%20initiated%20the%20conversion.%20the%20%3CSTRONG%3EADC%20continues%20to%20do%20conversions%20on%20the%20%3C%2FSTRONG%3E%3CSTRONG%3Esame%20SCn%20register%20that%20initiated%20the%20conversion%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E2.%20right%2C%20in%20the%20order%20you%20see%20it%20in%20the%20ADC%20configuration%20screen.%3C%2FP%3E%3C%2FLINGO-BODY%3E