Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Need help with VHDL code for metal detector
I am working on a metal detector at the moment but cant figure out how to implement it my VHDL code.
ENTITY sensor IS
port ( metaldetector : in std_logic;
metal : out std_logic;
END ENTITY sensor;
As long as there isnt any metal close to the sensor 'metaldetector' gets pulses on a 6.1kHz frequency. So as long as the 'metaldetector' keeps getting pulses the out port 'metal' should be '0'.
When there is a pulse missing (or multiple pulses) 'metal' should become '1' until the next pulse.
It shouldnt be that hard to make a code that can do that, but i just cant figure it out. Any help would realy be great!