Aug 31, 2016
03:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 31, 2016
03:20 AM
Hi
I am toggling a pin continuously with Delay between toggling around 1us using the function CyDelayUs.
Is there a way to toggle the ping faster than 1us? or in other words how do I create a delay less than 1us?
regards
1 Reply
Aug 31, 2016
06:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 31, 2016
06:04 AM
Toggling a pin by CPU is a bit (or byte) old-fashioned. You are burning MIPS and there is no time for controlling or other things.
Better use a PWM, feed it with 12 MHz and you can get an output with 1MHz frequency that is controllable in duty cycle and frequency with just a little effort.
That's PSoC
Bob