PIC12F675 external interrupt code and Proteus simulation

This post provides the external interrupt code for PIC12F675 microcontroller (e-g when you need to control servo motor which has position encoder, with your PIC microcontroller). As we know, PIC12F675 microcontroller has one GP2/INT pin, which can be used to service external interrupts. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' se ...

Read more

Voltage programmable simple logic device using PIC12F675

Description 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 functi ...

Read more

PIC12F675 Tutorial 7: A Servo controller driving a standard servo motor using serial port command

This servo controller generates a signals to control a standard servo motor (I used a Futaba servo but you can use any servo) using the 12F675 microcontroller.  You can type a text command into a serial terminal e.g Hyperterminal to set the position of the servo. The project software works slightly differently to the previous one as interrupts are used for pulse timing - this lets it both service the serial ...

Read more

PIC12F675 ADC code and Proteus simulation

This post provides the ADC code using PIC12F675 microcontroller. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that you know how to interface LCD with PIC12F675 microcontroller. If you don't then please read this page first, before proceeding with this article. The result of simulating ...

Read more

PIC12F675 internal EEPROM code and Proteus simulation

This post provides the internal EEPROM reading and writing code for PIC12F675 microcontroller. As we know, PIC12F675 microcontroller has 128 bytes of built in EEPROM data space with an address range of 0x00 to 0x7F. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that you know how to bli ...

Read more

Servo Camera Switch using PIC12F675 microcontroller

This document describes the complete design for a camera switch that uses a servo to activate the shutter. This page include links to the complete circuit diagram, the .HEX file required to program the 12F675, and complete construction details. The switch consists of a PIC and a small number of standard components. The Servo Camera Switch connects inline between the receiver and the servo and manages the op ...

Read more

PIC12F675 timer0 code and Proteus simulation

This post provides the timer0 code for PIC12F675 microcontroller. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that you know how to blink an LED with PIC12F675 microcontroller. If you don't then please read this page first, before proceeding with this article. The result of simulating ...

Read more

PIC12F675 timer1 code and Proteus simulation

This post provides the timer1 code for PIC12F675 microcontroller. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that you know how to blink an LED with PIC12F675 microcontroller. If you don't then please read this page first, before proceeding with this article. The result of simulating ...

Read more

Interfacing of PIC12F675 with (i2c based) 24LC64 EEPROM (code + Proteus simulation)

This post provides the code for interfacing 24LC64 EEPROM with PIC12F675 microcontroller. This 24LC64 EEPROM has i2c based interface and PIC12F675 doesn't have any built in i2c modules, so software i2c module is created in the code. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that yo ...

Read more

Low Cost Solar Lighting Controller

Solar Lighting Controller based on PIC12F675 micro controller to be used with a Solar Panel, Battery and a LED 12V Light, it has built with affordable materials and its ready to use, just plug your devices and its done, this controller will function by itself with no need to turn on or turn off the LED Light or press a button for starting to charge its battery due to its program to do it autonomously. Mater ...

Read more
Scroll to top