![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #16 |
|
thanks mr rb.. but i dont understand.. can u explain how it function... thanks again... | |
| |
| | #17 |
|
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 | |
| |
| | #18 |
|
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. | |
| |
| | #19 |
|
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. | |
| |
| | #20 |
|
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?? | |
| |
| | #21 |
|
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).
| |
| |
| | #22 |
|
that mean if high is 10uS and low is 100uS the output voltage is 10/100 x 5v = o.5 v ???
| |
| |
| | #23 |
| 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 | |
| |
| | #24 |
|
anybody can explain more??
Last edited by natasya; 18th October 2009 at 08:31 AM. | |
| |
| | #25 |
|
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?? | |
| |
|
| 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 |