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.

3 pwm signals and only 2 pwm capture pins in PIC?

Status
Not open for further replies.

asic1984

Full Member level 5
Joined
Nov 15, 2003
Messages
257
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,298
Activity points
2,340
pwm and pic?

hi all

in my project there are 3 sensors which output in pwm signals the problem is that i have only 2 pwm capture pins in the pic 18f452 ........so how can i come over that keeping using these type of sensors ...........are there any ic that may convert this signals into analog signals so i can receive them again in the adc of the pic

or are there any suggested solution

thanks
 

Re: pwm and pic?

Hi,
You could try and low pass filter [smooth] one of the PWM signals and feed it into the ADC input [via buffer amplifier..gain etc]
or multiplex two of the PWM signals together and feed into the PWM input... a couple of AND gates plus inverter controlled from a output pin would do this
 

Re: pwm and pic?

hi

thanks for your help but can u explain more :

how can passing the signals int low pass filter output used ......i donnot think it will represent an analog value !
 

Re: pwm and pic?

This is normal practice to convert digital-to-analog: PWM output feeds a low-pass-filter cosisting of a resistors and a capacitor + a buffer. As you know a PWM is a square wave with differen pulse widths. This means that the duty cycle of a square wave is different, so is its average current: this average current (after LPF) is your analog value ..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top