Voltage programmable square wave generator


Posted on Aug 18, 2012

Here's another daft yet interesting PIC12F675 idea I came up with. When I wanted to show someone how logic gates worked I could only find a NAND gate which wasn't very handy for demonstrating AND's OR's, NOR's and ExOR's. I also wanted to have a play with the A/D converter on the 12F675 so I came up with the idea of a PIC that could function as a single 2-input logic element. The logic function is determined by an analogue voltage applied to the GPIO4 pin when the device is first reset, it isn't sampled again after this so logic can't be changed on the fly. The 3 MSBs of the A/D conversion give eight distinct voltage levels that map to specific logic functions.



Six functions have been implemented; these are 2 input AND, OR and EXOR gates and their negated equivalents. Just to prove the concept, here is a 'D' type flip flop (PIC Flop:-) I built out of five 12F675 Logic Elements operating as NAND gates. The




Leave Comment

characters left:

New Circuits

.

 


Popular Circuits

Telephone motor Controller
Count Down Timer with PIC16F84A
Firefly Lights Circuit
Triangle/Square-Wave Oscillator Serves Dual Purpose
1W FM Transmitter Circuit
Solar iPod Charger
The application circuit of TDA7088 FM integrated circuit



Top