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

adfmcomms1 square wave and adc

$
0
0

Hello all,

Few questions regarding AD-FMCOMMS1 on KC705 no-OS

 

1) How do i generate a square wave through dma?

     I am feeding the LUT values as follows:

 

const uint16_t sine_lut_i[32] = {

    0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,

    0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,

    0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,

    0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF

};

const uint16_t sine_lut_q[32] = {

        0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,

            0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,

            0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,

            0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000

};

 

but still I get some triangular type of wave on chipscope(attached)

 

2) Where does the adc_capture store the received data? At what memory location? How do I find out?

 

 

Thanks


Viewing all articles
Browse latest Browse all 36216

Trending Articles



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