Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top