Post Go back to editing

can't read data from adc module on bf506

Hi,

My project 's board is according to the BF506F EZ-KIT, main dsp connection are following pictures.

My codes baseline is on the Power_On_Self_Test (adc_test.c), and I set the IF_I =3.3v, but the result can't read the data from adc test.

My question is how to modified the configure according to my design, I also try different codes from this engineerZone, result failed.

Thank you for your support!

  • Hi,

    Today I dumped the related registers values, the problem is also that can't read the value.

    Thanks.

    *******************************************************

    *** ADC Controller Module Registers

    ********************************************************

    *pACM_CTL    =4003

    *pACM_TC0    =402

    *pACM_TC1    =d

    *pACM_STAT   =0

    *pACM_ES     =0

    *pACM_IMSK   =0

    *pACM_MS     =0

    *pACM_EMSK   =0

    *pACM_ER0    =21

    *pACM_ER1    =0

    *pACM_ER2    =0

    *pACM_ER3    =0

    *pACM_ER4    =0

    *pACM_ER5    =0

    *pACM_ER6    =0

    *pACM_ER7    =0

    *pACM_ER8    =0

    *pACM_ER9    =0

    *pACM_ER10   =0

    *pACM_ER11   =0

    *pACM_ER12   =0

    *pACM_ER13   =0

    *pACM_ER14   =0

    *pACM_ER15   =0

    *pACM_ET0    =0

    *pACM_ET1    =0

    *pACM_ET2    =0

    *pACM_ET3    =0

    *pACM_ET4    =0

    *pACM_ET5    =0

    *pACM_ET6    =0

    *pACM_ET7    =0

    *pACM_ET8    =0

    *pACM_ET9    =0

    *pACM_ET10   =0

    *pACM_ET11   =0

    *pACM_ET12   =0

    *pACM_ET13   =0

    *pACM_ET14   =0

    *pACM_ET15   =0

    *pACM_TMR0   =0

    *pACM_TMR1   =0

    *******************************************************

    *** Pin Control Registers

    ********************************************************

    *pPORTF_FER             =c0fc

    *pPORTG_FER             =ff00

    *pPORTH_FER             =7

    *pPORTF_MUX             =4050

    *pPORTG_MUX             =0

    *pPORTH_MUX             =0

    *pPORTF_HYSTERESIS      =5555

    *pPORTG_HYSTERESIS      =5555

    *pPORTH_HYSTERESIS      =15

    *pNONGPIO_DRIVE         =551

    *pNONGPIO_HYSTERESIS    =15

    *pFLASH_CONTROL         =8101

    *pFLASH_CONTROL_SET     =8101

    *pFLASH_CONTROL_CLEAR   =8101

    *******************************************************

    *** PWM0 Registers

    ********************************************************

    *pPWM0_CTRL    =1d0

    *pPWM0_STAT    =4

    *pPWM0_TM      =7d0

    *pPWM0_DT      =a0

    *pPWM0_GATE    =0

    *pPWM0_CHA     =0

    *pPWM0_CHB     =0

    *pPWM0_CHC     =0

    *pPWM0_SEG     =0

    *pPWM0_SYNCWT  =a0

    *pPWM0_CHAL    =0

    *pPWM0_CHBL    =0

    *pPWM0_CHCL    =0

    *pPWM0_LSI     =0

    *pPWM0_STAT2   =3f

    *******************************************************

    *** PWM1 Registers

    ********************************************************

    *pPWM1_CTRL    =70

    *pPWM1_STAT    =6

    *pPWM1_TM      =0

    *pPWM1_DT      =0

    *pPWM1_GATE    =0

    *pPWM1_CHA     =0

    *pPWM1_CHB     =0

    *pPWM1_CHC     =0

    *pPWM1_SEG     =0

    *pPWM1_SYNCWT  =3ff

    *pPWM1_CHAL    =0

    *pPWM1_CHBL    =0

    *pPWM1_CHCL    =0

    *pPWM1_LSI     =0

    *pPWM1_STAT2   =0

    *******************************************************

    *** SPORT1 Controller

    ********************************************************

    *pSPORT1_TCR1     =0

    *pSPORT1_TCR2     =0

    *pSPORT1_TCLKDIV  =0

    *pSPORT1_TFSDIV   =0

    *pSPORT1_TX       =0

    *pSPORT1_RX       =0

    *pSPORT1_TX32     =0

    *pSPORT1_RX32     =0

    *pSPORT1_TX16     =0

    *pSPORT1_RX16     =6548

    *pSPORT1_RCR1     =7401

    *pSPORT1_RCR2     =10d

    *pSPORT1_RCLKDIV  =0

    *pSPORT1_RFSDIV   =0

    *pSPORT1_STAT     =42

    *pSPORT1_CHNL     =0

    *pSPORT1_MCMC1    =0

    *pSPORT1_MCMC2    =0

    *pSPORT1_MTCS0    =0

    *pSPORT1_MTCS1    =0

    *pSPORT1_MTCS2    =0

    *pSPORT1_MTCS3    =0

    *pSPORT1_MRCS0    =0

    *pSPORT1_MRCS1    =0

    *pSPORT1_MRCS2    =0

    *pSPORT1_MRCS3    =0

    *******************************************************

    *** DMA4 Controller

    ********************************************************

    *pDMA4_CONFIG         =1017

    *pDMA4_NEXT_DESC_PTR  =bc730940

    *pDMA4_START_ADDR     =ff800174

    *pDMA4_X_COUNT        =2

    *pDMA4_Y_COUNT        =c

    *pDMA4_X_MODIFY       =18

    *pDMA4_Y_MODIFY       =ffffffea

    *pDMA4_CURR_DESC_PTR  =13158010

    *pDMA4_CURR_ADDR      =3f6765f0

    *pDMA4_CURR_X_COUNT   =c59c

    *pDMA4_CURR_Y_COUNT   =6220

    *pDMA4_IRQ_STATUS     =8

    *pDMA4_PERIPHERAL_MAP =4000

  • Hi Lau,

                   I checked the Port configuration register and I could not find ACM_SGLDIFF (PG6) and ACM_RANGE (PG7) signals to be configured for peripheral use. You can configure these two ports pins, if you are not directly supplying the signal voltages at the ADC end.

    Also you can refer to the attached ACM example code.

    Regards,

    Kritika

    attachment.zip