S32K116_ Multiple ADC channel with SW trigger?

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

S32K116_ Multiple ADC channel with SW trigger?

1,739件の閲覧回数
anandpalani
Contributor I

Hello, 

Does the S32K116 part Supports multiple ADC channel conversion with SW trigger using SC1A?S32K

Thanks

Anand

2 返答(返信)

1,318件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

I think this was answered in this thread:

https://community.nxp.com/message/981427 

Regards,

Daniel

1,318件の閲覧回数
anandpalani
Contributor I

Hello Daniel, 

             Thanks! With the below configuration i was able to read data of 4 adc channels with back to back conversion.

PCC->PCCn[PCC_PDB0_INDEX] |= PCC_PCCn_CGC_MASK; /* Enable bus clock in PDB0 */

PDB0->SC |= PDB_SC_TRGSEL(0xF) | /* b1111: Software trigger is selected */
PDB_SC_PRESCALER(1) | /* Prescaler: 010 = sysclck/(2*MULT) = 80 / (2*1) = 8MHz */
PDB_SC_MULT(0) | /* 00: Multiplication factor is 1. */
PDB_SC_PDBEN_MASK; /* 1: PDB enabled */
PDB0->CH[0].C1 |= PDB_C1_BB(0xe) | /* DLY[0] : pre-trigger from PDB DLY */
/* DLY[3:1] : back-to-back enabled */
PDB_C1_TOS(0x00) | /* Pretrigger Output Select: 0=bypassed , 1=enabled */
PDB_C1_EN(0xf); /* PDB channel's [3:0] pre-trigger enabled */
PDB0->SC |= PDB_SC_LDOK_MASK;

 But i was trying to configure 8 adc channels with PDB0, looking for your help with the configuration.

I could see in the RM that this micro supports up to 8 configurable PDB channels for ADC hardware trigger.

Thanks in advance!

Anand

0 件の賞賛
返信