Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- I sense something wrong with your interpretation of that concatenation. Reading back your previous posts you talk about two adcs one for voltage(does not need filter) and one for current(needs filter) yet you are filtering two adcs and there seems to be four adcs in total. each adc is 12 bits then you talk about concatenating two 12 bits into 24 bits for GUI. Do you have one adc for current(not voltage) or do you have two adcs for current(not voltage). If so why do you concatenate them. Is it just for passing purpose and that GUI will read ech 12 bits value separately or will it read the 24 bits as one value? I think you need to clear this confusion. --- Quote End --- @kaz, I have figured it out that my average block was not running at all because I was running it at 20MHz and the done signal coming from SPI block is running on 78KHz which means I get the next data_in after every 78KHz. I am now running my average block on CS (78kHz) coming from spi master instead of normal clock of 20MHz. Now I am getting the result like before i-e 10mA, 20mA, 40mA,......100mA and the value gets stable after that. I am not sure but I think I need to further divide down the CS to 39KHz to get the 100mA directly. Am I right?