Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 24339

Re: AD9361 ADC Clock Configuration using No-OS

$
0
0

Hi Dragos,

Let's assume I am using a Square root raised cosine at 200kHz cut off and I have gone over the matlab filter design wizard. since  am using No_OS Sw the next steps are

1. to make change (0-1) in ad9361.h as shown below?

 

#define THB2_EN (1 << 3) /* THB2 Enable */

#define THB1_EN (1 << 2) /* THB1 Enable */

#define TX_CHANNEL_ENABLE(x) (((x) & 0x3) << 6) /* Tx channel Enable<1:0> *

#define THB3_ENABLE_INTERP(x) (((x) & 0x3) << 4) /* THB3 Enable & Interp<1:0> */

#define TX_FIR_ENABLE_INTERPOLATION(x) (((x) & 0x3) << 1) /* Tx FIR Enable & Interpolation<1:0> *

#define TX_1 1

#define TX_2 2

#define TX_ENABLE 1

#define TX_DISABLE 0

#define RHB2_EN (1 << 3) /* RHB2 Enable */

#define RHB1_EN (1 << 2) /* RHB1 Enable */

#define RX_CHANNEL_ENABLE(x) (((x) & 0x3) << 6) /* Rx channel Enable<1:0> */

#define DEC3_ENABLE_DECIMATION(x) (((x) & 0x3) << 4) /* DEC3 Enable & Decimation<1:0> */

#define RX_FIR_ENABLE_DECIMATION(x) (((x) & 0x3) << 1) /* Rx FIR Enable & Decimation<1:0> */

#define RX_1 1

#define RX_2 2

#define RX_ENABLE 1

#define RX_DISABLE 0

 

2. change the FIR inter/dec in main.c as follow

AD9361_RXFIRConfig rx_fir_config and AD9361_TXFIRConfig tx_fir_config structures. where I need to change filter coef but also set rx_dec and tx_inc to 4.

 

is that all I need to go through?

 

Thanks,

 

Ahmed,


Viewing all articles
Browse latest Browse all 24339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>