Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- Thanks for your reply. i think that my sensor is not generating the right data , it just produce pulses, it is maximum voltage is 1.2V ,and the minimum voltage is .5V . what i don't understand is how to make the FPGA(Altera DE2-70) broad understand these pulses? and count only the pulses with the maximum voltage. and do you think in that case that the rs232 will be the best choice for me or do you recommend something else ? Kindly Note : am using verilog language ,and Quartus ii to download the code on the fpga. thank you for your help . --- Quote End --- 1. First you amplify this voltage level (translater can do this job) and make data suitable for FPGA readiable ( like 3.2 volt etc) 2. Give this pulse to FPGA and inside FPGA design a Counter which trigger by this pulses. evely pulse, increase counter value and u can easily track the max value. 3. if youre sensor give data in RS232 format than you daon't have any problem if not thyen follow the point 2.. 4. i am not much familear with verilog.....but you can do this job in verilog also. gud luck kaushal