Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 6th October 2009, 01:18 AM   #16
Default

thanks mr rb..

but i dont understand..
can u explain how it function...
thanks again...
natasya is offline  
Old 6th October 2009, 02:19 AM   #17
Default

It works like this It don't work. All he posted was how to get 1 volt by pulsing RB0 at 1000hz
You still need to cheak for 100 hz 200 hz and so on.

Which means you have a little more then this
Code:
btfsc PORTA.0 ; first wait for input to be low
 goto $-1

 btfss PORTA.0 ; now wait for input to go high
 goto $-1
this will not tell you if it was 10 100 or 1000hz all it will do is give you 1 volt on RB0 if RA0 is high
be80be is offline  
Old 6th October 2009, 02:33 AM   #18
Default

Have a think again.

The system I posted makes exactly one output pulse for every input pulse. Zero error and infinite resolution.

The 200uS output pulse is always the same period, again zero error.

It will make 0.1v for 100Hz, 0.3v for 300Hz, 1v for 1000Hz etc just as the OP asked.
Mr RB is online now  
Old 6th October 2009, 02:44 AM   #19
Default

RB what you posted just scales PORTA,0 by 10 and outputs on PORTB,0
PORTA,0 = 100hz then PORTB,0 scales to 1000hz the code you posted will do that.

Last edited by be80be; 6th October 2009 at 03:43 AM.
be80be is offline  
Old 6th October 2009, 07:56 AM   #20
Default

thanks all...
i think i has understand it..
can you give the value for R&C and how to calculate the delay and output voltage..
for example, the PWM amplitude is 10 volts.
high delay is 99uS and low delay is 1us will give approximately 10 volt.
if high is 90 and low is 10, how to calculate the voltage output??

is it i was understood??
natasya is offline  
Old 6th October 2009, 08:22 PM   #21
Default

The output of the PIC cannot be more than 5V. The mark/space time ratio will determine the voltage after the filter (percent of 5V).
__________________
Mike
My website: www.ElectroBird.net
birdman0_o is offline  
Old 7th October 2009, 01:14 AM   #22
Default

that mean if high is 10uS and low is 100uS the output voltage is 10/100 x 5v = o.5 v ???
natasya is offline  
Old 8th October 2009, 03:45 PM   #23
Default

Quote:
Originally Posted by be80be View Post
He can I was just letting use what he had
I thought 'he' was a girl. Natasya?
__________________
-The kinda guy who would improvise so much that you'd say "Here's 50 bucks for your Gigantron"
http://vortexelectricaz.blogspot.com
Vizier87 is offline  
Old 18th October 2009, 08:21 AM   #24
Default

anybody can explain more??

Last edited by natasya; 18th October 2009 at 08:31 AM.
natasya is offline  
Old 26th October 2009, 04:24 AM   #25
Default

hye all..
i has try to change pwm to dc voltage..but failed in simulation..how to use low pass filter to convert pwm to dc voltage??
natasya is offline  
Reply

Tags
converter, frequency, pic, voltage

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
constant dc output voltage for frequency to voltage converter nnb29 Electronic Projects Design/Ideas/Reviews 13 6th September 2009 01:03 PM
Voltage to Frequency Converter km General Electronics Chat 39 3rd March 2009 11:54 AM
Voltage to Frequency Converter viju General Electronics Chat 3 27th October 2008 09:19 AM
Voltage to frequency converter with PIC Andy_123 Micro Controllers 25 6th April 2004 02:19 AM
Voltage to frequency converter with PIC Andy_123 Electronic Projects Design/Ideas/Reviews 0 23rd March 2004 12:44 AM



All times are GMT. The time now is 05:02 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker