- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May anyone give me a hint how to generate a square pulse with VHDL to transmit it in a transducer for a distance sensor.
Thanks Francisco.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What's your fpga clock frequency?
a-For example, if your fclk is 50MHz, count from 0 to 50MHz/40KHz=1250. b-add a comparator to the counter: when count<625 output is '1' else '0'. c-register the output to avoid glitches.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I is actually 50 MHz, yet I have a given clock divider so I have different possible outputs, such as: 1 MHz, 100KHz, 10KHz, 1KHz, 100Hz,and 1 Hz. Ok, Thanks
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page