- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, guys! I really need your help. I have a FPGA MAX10 10M50DAF484C6G Development Kit and I want to write a code in VERILOG or VHDL so that when I move the potentiometer to light different LEDs. For example, if my potentiometer is at 0.5V, my LED 1 will light up, if it is between 0.56-1 V, my LED 2 will light up and so on. In total I have 5 LEDs. The max value is 2.5V. I read a lot about ADC. I know that there is a formula that calculates the conversion from analog to digital, more precisely Digital Code = Vin / VREF) × 2 ^ 12 where Vin is the voltage from the potentiometer and VREF is 2.5 V, but I don't know how to implement it in VERILOG or VHDL. Can someone help me?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Will close this case as its duplicate of case 05298188. Will communicate with customer using the other case.
![](/skins/images/D3C0B914909A6564BBB97F4AD1ED1973/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page