bitstream - 1 bit stream in verilog -


i have 6 gas sensors connected arduino uno board use adc. output of each sensor number between 0 , 1023. data transferred arduino altera fpga processing.

i send binary form of number output pin of arduino (serial data) , receiving 'write' signal fpga, data transmit serially input port of fpga, @ 10khz (0.1ms period).

how can original number reconstructed in fpga after serial transmission?

to convert serial parallel, need way identify end or start of sequence. following should off start:

input            clk; input            end_of_sequence; input            sdata; output reg [9:0] result; //10 bit transmission  reg [9:0] pdata;  @(posedge clk) begin   // shift serial data in   pdata <= {pdata[8:0, sdata}; end  @(posedge clk) begin   if (end_of_sequence ) begin     // @ end of shifted data store full parallel word     result <= pdata;   end end 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -