PDA

View Full Version : simple RC PULSIN circuit



droptail
- 2nd October 2011, 18:14
I want to test the PULSIN feature on the bench.
Can this be done with a basic RC integrator?
I can't get my DMM to read any frequency or logic state when connected, just the voltage/drop at the junction. Polarity is correct on the cap.

Thanks

droptail
- 2nd October 2011, 23:07
I will look into using my 16F716 with (H)PWM to accomplish the frequency generation by outputting on P1A and jumpering to another I/O to see if PULSIN can read the frequency. Can this be done?

Thanks

cc1984
- 2nd October 2011, 23:32
I am not exactly sure what you are trying to do, but you shold be able to measure the pulsin high or low pulse width with pulsin. Try using multiple readings (loop) for reading in the high pulse width, and then reading in the low pulse width. Then you can calculate the frequency, duty cycle, etc. of the incoming signal. I got it to match what an Oscope was indicating. Good luck.

Charles Linquis
- 3rd October 2011, 03:00
Get a 3-wire fan from an old PC. Connect the tachometer wire (usually white) to the input pin. Use a 2.2K pull up from that pin to Vcc. Make certain the fan gnd is connected to the PIC GND. Power the fan with 12V (it may even run with 5V, depending on the fan). The fan will be a little "signal generator" for you. If the fan is running 2400RPM, the Pulsin value should be about 625, if you are running the PIC at 4Mhz.

droptail
- 4th October 2011, 00:44
thanks, I'll try this.