Hi Ben
I would like to sample each peak, both positive and negative. What i have is a scaled mains voltage between 0 and 5V centered at approximately 2.5V. So i need to measure the positive peak and negative peak, add the two peaks and divide by 2 to get the real peak as it may not be centered on 2 ...
Search found 3 matches
- Tue Feb 14, 2012 1:33 am
- Forum: Flowcode V4
- Topic: Measure peak voltage
- Replies: 4
- Views: 3568
- Mon Feb 13, 2012 4:50 pm
- Forum: Flowcode V4
- Topic: Measure peak voltage
- Replies: 4
- Views: 3568
Measure peak voltage
Hi
I would like to know how i would proceed to measure the peak voltage of the sine waveform. I am new to programming and flowcode. What i have thought so far is to use:
20MHz crystal/4 = 5MHz and then a prescale value of 8 brings the timer to 625kHz
FCV_COUNT = 625000/(256*tmr1h + tmr1l);
FCV_POS ...
I would like to know how i would proceed to measure the peak voltage of the sine waveform. I am new to programming and flowcode. What i have thought so far is to use:
20MHz crystal/4 = 5MHz and then a prescale value of 8 brings the timer to 625kHz
FCV_COUNT = 625000/(256*tmr1h + tmr1l);
FCV_POS ...
- Tue Feb 07, 2012 12:52 pm
- Forum: Flowcode V4
- Topic: Frequency Counter
- Replies: 3
- Views: 4391
Frequency Counter
Hi
I am trying to program a 16f88 PIC using Flowcode v4 to display a frequency to 4 decimal points. I am using an interrupt and tmr0 and can get a result displayed on an LCD as a whole number but not with decimal points as the counter result is an integer. Any help would be appreciated to get the ...
I am trying to program a 16f88 PIC using Flowcode v4 to display a frequency to 4 decimal points. I am using an interrupt and tmr0 and can get a result displayed on an LCD as a whole number but not with decimal points as the counter result is an integer. Any help would be appreciated to get the ...