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.

Input PWM Signal to Other PIC

Status
Not open for further replies.

bhai_kaju

Newbie level 4
Joined
Mar 22, 2010
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,321
Hi Guys,

What I am trying to do is to give a PWM signal input to one of the input pins of PORTA ( using PIC16F877 ) and get the same PWM signal at the CCP1 Output pin of PORTC with a delay of 300 milliseconds .. However, I am not able to accomplish this task as the IC is not able to detect the input and transfer it over to the output pin .. I am using MikroC Pro and tried every possible way .. Is there any way to get it done, or do I need to give the input signal to some specific pin with specific function or so ...

I am new to PIC world so kindly help .. :???:
 

Attachments

  • sample circuit.jpg
    sample circuit.jpg
    275 KB · Views: 60

as the IC is not able to detect the input and transfer it over to the output pin
If you want to be able to detect the PWM input clock edges, then use a pin that has "interrupt-on-change" capabilities (only available on PORT B I think)
 

Hi,

Your simulation will not run until your tie the chips pin 1 to VDD direct or via a pull up resistor 10k.

As Rog232 says you can use PortB input interrupt functions, but how are you wanting to read the input PWM pulses and how are you wanting to output them on the second pic, directly controlled port pulses or via a PWM module.
The latter way means you have to not only read and determine the input pulses frequency and m/s ratio but then convert them into a usable formula for the PWM module.

Is this project an assignment or are you trying to prove some point ?
 

Hi, all and thank you for your valuable comments .. Really helpful .. This is basically a project which needs to be completed but somehow I am not able to find the logic .. I know a little on how to use an interrupt but I am not sure how to transfer that to the output pin ... :(
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top