![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
As a cheap & cheerful kit aimed at less than $10 I'd like to build a simple logic probe and frequency counter using the minimal of parts. Of couse the counter will not be accurate beyond the RC calibration of the 16F629 but should give an indication of something running ![]() I'll add the caps to the design 10uf & 0.1uf of course. Opps MCLR & VDD are reversed, I'll fix that too. Comments? Last edited by blueroomelectronics; 10th June 2007 at 06:05 PM. | |
| |
| | #2 | |
|
Are you the same person who wrote (grin)? Quote:
(1) You don't need to tie up a pin to "gate" the counter input. Gate the counter input by changing the pin from an input to an output. Actually, since you're using TMR1 instead of TMR0, you could probably just toggle the TMR1ON bit. Code: ;
movlw TRISIO ; TRISIO register address |B0
movwf FSR ; setup indirect access |B0
;
; perform new 200-msec count
;
bsf INDF,GP1 ; T1CKI gate 'on' (input) |B0
DelayUS 200000 ; delay 200-msecs |B0
bcf INDF,GP1 ; T1CKI gate 'off' (output) |B0
Now you have 2 pins left over. What other functions can be added (grin)? | ||
| |
| | #3 | |
|
A somewhat similar concept can seen at http://www.phanderson.com/logic_probe.html It is a bit simpiler on the frequency counter end and includes a clock output. It is $2.49 Quote:
__________________ Please post questions to the forums. PM's are for personal communication. BCHS/3v0's Tutorials Junebug USB PIC programmer kit., USB Bit Whacker, The 15 Minute Printed Circuit Board! (+drill time) | ||
| |
| | #4 |
|
While Mr. Anderson's kit isn't that impressive in and of itself, his mention of using it for a 555 replacement is very interesting. I wonder how many different 555 functions you could emulate with an 8 pin PIC? Perhaps use a pot' for frequency, another pot' for duty cycle, a serial interface to actually see what those settings are (hey, why not? you only need 1 pin). A couple jumpers to select the mode; Astable, One-Shot, etc. I can imagine several uses for it. What do you think guys? Mike | |
| |
| | #5 | |
| Quote:
An open condition would leave all LEDs off, Above 3.0V High LED on, below 1.5V Lo LED on. The amber LED would be flashing with the other two at frequencies above 10Hz Ie 500 Hz Green 5 flashes wait Red 0 flashes Amber 1 flash wait (multiplier = 1 zero) 82 Hz Green 8 flashes wait Red 2 flashes wait Amber on solid if >10Hz or <100Hz 3 Hz Red and Green (oversampled using VREF) will attempt to display true data using the comparator mode Amber off Last edited by blueroomelectronics; 10th June 2007 at 11:45 PM. | ||
| |
| | #6 |
|
How do you test for an open circuit?
| |
| |
| | #7 | |
| Quote:
http://ww1.microchip.com/downloads/e...tes/00689a.pdf | ||
| |
| | #8 |
|
Ok, I see. An open wouldn't pull up or down. I'm stupid (grin)...
| |
| |
| | #9 |
|
Hey it's a theory, might not work in practice but that's why I posted it. Just don't dig up my old MyBlueRoom posts (you'll see stupid) I'll simulate the design with the 16F88 and debugger. Now the real question are what should TTL High min and TTL Lo max values be? I've seen 2.0V and 0.8V (VREF = 0.833 & 2.083V) at 5V or slightly lower because of the 0.7V diode drop. Must calculate... Last edited by blueroomelectronics; 11th June 2007 at 12:47 AM. | |
| |
| | #10 | |
| Quote:
When one sets out to design most anything it is a good idea to look at what is already out there. It does provide the clock outputs and another way to deal with pulses/frequency. For about ten cents more you can move up to the PIC12F683 with twice the mem, 10 bit ADC, and PWM. Not sure if any of that would come in handy.
__________________ Please post questions to the forums. PM's are for personal communication. BCHS/3v0's Tutorials Junebug USB PIC programmer kit., USB Bit Whacker, The 15 Minute Printed Circuit Board! (+drill time) | ||
| |
| | #11 |
|
All of it comes in handy at various times. The 12F683 is my favorite 8 pin PIC...
| |
| |
| | #12 | |
| Quote:
| ||
| |
| | #13 | |
| Quote:
| ||
| |
| | #14 | ||
| Quote:
Quote:
__________________ Please post questions to the forums. PM's are for personal communication. BCHS/3v0's Tutorials Junebug USB PIC programmer kit., USB Bit Whacker, The 15 Minute Printed Circuit Board! (+drill time) | |||
| |
|
| Tags |
| based, concept, counter, frequency, logic, pic, probe |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Using Oscilloscopes | mechie | Electronic Theory | 9 | 29th November 2007 10:49 PM |
| frequency counter | SocMatt | Micro Controllers | 2 | 15th June 2004 11:52 AM |
| frequency counter | samcheetah | Electronic Projects Design/Ideas/Reviews | 4 | 5th May 2004 11:42 PM |
| Frequency counter range extender | ray heady | General Electronics Chat | 2 | 11th March 2004 12:12 AM |
| a simple frequency counter with lcd display | tronix_seeker | Electronic Projects Design/Ideas/Reviews | 5 | 23rd February 2004 06:13 PM |