Help with PIC Microcontroller

Status
Not open for further replies.

ama1703

Newbie level 4
Joined
Sep 15, 2009
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,314
How are you.
Can you please help me in this code by using C languages.
I want the pic takes square pulses (50% duty cycles and 5V) and then delays this signal by 10ms.
Thanks,
ama

Added after 1 minutes:

pic is 16F877
thanks
 

ama1703 said:
How are you.
Can you please help me in this code by using C languages.
I want the pic takes square pulses (50% duty cycles and 5V) and then delays this signal by 10ms.
Thanks,
ama

Added after 1 minutes:

pic is 16F877
thanks

50 Hz
 

As long as the ege of your signal are less than 10mS apart, the easiest way would be to use the "Interrupt On Change" interrupt to detect an edge, and set a timer to trigger 10mS later. When the timer interrupt fires, set an output bit according the the input level at capture time.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…