May 19, 2018
03:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 19, 2018
03:36 AM
Hello,
fx2lp pin 50 is connected to another device.i wanted to generate 2 mili second pulse(active high) from this pin.
so i am using timer for delay genaration.i need 2ms active pulse .how to make pin no 50 initaily low .
fx2lp is operating at 24MHZ,TIMER run at the same rate,
how to put this in code.??
pin 50 at logic low
2ms_delay(); //pin 50 at logic 1 upto 2 mili seconds.
pin 50 at logic low.
regards.
Solved! Go to Solution.
1 Solution
May 25, 2018
02:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 25, 2018
02:32 AM
Hello Geethanjali,
Please let know if the mentioned implementation is suitable to your application.
PD5 = 0; // Drive LOW
if(<condition>)
{
PD5 = 1; // Drive HIGH
EZUSB_Delay(2); // Generate 2 ms delay
PD5 = 0; // Drive it LOW
}
Best regards,
Srinath S
26 Replies