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

Pseudorandom Simulated Flicker Sequencer
Positive Pulse Pulse Stretcher
Four-Output Filter Circuit
Bass-treble Tone Control Circuit With LM1035N IC
Power Buzzer
mini fm transmitter circuit
ir remote switch
AM Receiver
Power Supply
LS7263 Application Circuit Example
Dual flashing string circuit 2



Top