Anonymous
Not applicable
Dec 23, 2017
12:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 23, 2017
12:24 AM
Hi everyone,
I need to generate 30 high speed pulses reach 12MHZ ,
so I try to control GPIO pin as following code to achieve my purpose but its speed is around only 1MHZ
for (i=0;i<15;i++)
{
PRT5DR&=~0x02;
PRT5DR|=0x02;
}
I try another way using other user modules like Counter, Timer or PWM, their speed can reach 12MHZ but I can't stop them immediately when counting to the specified number I want, even I use interrupt.
Dose anyone can give me a suggestion for this?
thanks~~
Labels
3 Replies
Dec 23, 2017
02:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 23, 2017
02:44 AM
Difficult when running at the rim of maximum frequency. Consider switching to PSoC4 which could handle that in hardware.
Bob
Dec 26, 2017
07:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 26, 2017
07:39 AM
Thanks, maybe will consider using PSoc4 as your suggestion.
Attachments are accessible only for community members.
Jan 15, 2018
02:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 15, 2018
02:07 PM