Electronic Circuits Schematics Projects




Voltage programmable square wave generator

Rating: 5.00/10 (62Votes cast)

Category: Microcontroller Circuits / PIC Microcontroller
This circuit is also crossed to: Square wave , Volt controlled , Logic Circuits
Views: 5356
Rank: 0

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 visit page.

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 http://picprojects.org.uk/projects/logic/logicelement.htm

Related circuits

Central Heating Programmer with serial PC interface

This programmer has been designed for use with a domestic heating boiler. It provides outputs via two relays to control the supply of Hot Water and Heating. There are 10 program entries available and each one can control the heating and water independently. The programmer allows manual advance...



Electronic Die with PIC16F84

Built using a PIC16F84, about 4 hours worth of code and a few bits on a breadboard. This was the first time I've worked with PIC's so it was a learning exercise. I started with the 'Hello World' microcontroller equivalent i.e. Blinking LED, then tried the 'Knight Rider' sequencing LEDs, and then...



4-digit Up/Down counter with PIC 16F88

This is a 4 digit decimal counter which can operate as a free running counter or in count and hold mode with manual reset. In either mode the counter can be preset to count to a specified value. Clock edge and leading zero suppression can also be configured. The 7-segment display and...



Comparison macro for PIC processors

If you ever get tired of trying to remember the subtleties of the "carry" status bit every time you want to use the subtract instruction to perform a comparison, the macro in Listing 1 can help. The macro contains all of the nuances, once and forever. The macro reads like a sentence: branch to...



Frequency Locked Loop for HF

The principle of operation is quite simple, a counter measures the VFO frequency, the new reading is compared with the previously stored value and an adequate correction is applied consequently. This process has been implemented in the past using several discrete TTL logics, now a single...



Low Cost Dialing Alarm

This is the lowest cost dialing alarm on the market and shows what can be done with an 8-pin microcontroller. The circuit requires a trigger pulse to turn on a BC 557 transistor. This delivers power to the microcontroller. The micro starts to execute the program and outputs a high on GP2 to keep...



Astable Timer with PIC 12F629 / 12F675

This software functions as a long period astable mutivibrator. The mark and space period can be set from 1 second up to a maximum 65535 seconds (18h12m15s). Using the internal 4Mhz RC oscillator delays with an accuracy of 99% or better can be achieved The code also implements an edge...



PIC hydro system controller

The ELC presented here has some flexibility, thanks to being software-controlled, but also has its limitations: It's intended for microhydro systems that employ a single-phase synchronous alternator, working at 220-240V, 50Hz, in a power range up to 25 kilowatts, and using up to eight dump loads,...



Beginner level circuits - 555 square wave/pulse/clock generator

Transistor DC to AC power inverter


Comments




 characters left

Captcha

captchaPlease input letters you see on the image.
Click on image to redraw.



Facebook Comments

Most searched
 
Accounts area
Username:
Password:
Forgot password? Register
Circuits