Introducing the Science of Microchip PIC14

Engineers of my generation in the UK will remember the Science of Cambridge Mk14. Intended to be Sir Clive Sinclair’s first home computer kit for the general public, it served to train a generation of electronics engineers in how to program microprocessors. The Mk14 was based on, and virtually identical to, the ‘Introkit’ that was available in America at around the same time. It had a 512 byte monitor ROM, ...

Read more

AC power control with thyristor using pic microcontroller

AC power control with thyristor using pic microcontroller is designed to control AC power flow across load. This project is designed using PIC16F877A microcontroller and Zero crossing detection circuit. Phase angle control method is used for AC power control with thyristor. Thyristor is used as a switch to control flow of power. PIC16F877A microcontroller is used to detect zero crossing and to generate puls ...

Read more

100KHz Square Wave generator using PIC16C84

Following on from the LED flasher circuit, we can reduce the delay in the loop to 10uS (10 microseconds) and produce a 100Khz square wave. Given a 4 Mhz PIC 16C84, the program below will generate a 100Khz square wave on PORTA bit 0 (i.e. pin 17). This little program is useful for testing oscilloscopes (though it is not very accurate). This program is available as: flashfast.asm assembly source flashfast.hex ...

Read more

Ir On-Off using PIC12F629 microcontroller

Turn ON or OFF electrical devices using remote control is not a new idea and you can find so many different devices doing that very well. For realization of this type of device, you must make a receiver, a transmitter and understand their way of communication. Here you will have a chance to make that device, but you will need to make only the receiver, because your transmitter will be the remote controller ...

Read more

An Easy to build & multifunctional counter with 7-Segment Led Display using PIC16F628 microcontroller

Just one PIC to use it as counter with multiple functions. Here is the pin information:   PIN FUNCTIONS: CLEAR/COUNT - GND to clear count, VSS to count. SAVE COUNT - GND start from zero on power up, VSS continue last count. C CATHODE/C ANODE - GND to use COMMON CATHODE Display, VSS to use COMMON ANODE. INPUT - Signal in, pulses to count.   As you can see, now you can use any 7 Segment Led Display. ...

Read more

Reverse Engineering to Emulate Ink Cartridges for a Epson Printer using PIC18F

Reverse Engineering to Emulate Ink Cartridges for a Epson Printer For the past two years, I’ve been planning to build myself a 3D printer from some old Inkjet printers that I had collected over the years. But not until two weeks ago had I actually started to work on it. The 3D printer I want to made uses a ink jets to print a chemical onto a building platform. The building platform goes down as a new layer ...

Read more

PIC16F877 external interrupt code and Proteus simulation

This post answers the question, "How to capture a pulse to generate an interrupt in PIC16F877" ? Also, using PIC16 simulator (Proteus) you can verify this external interrupt code and change it according to your needs. 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. This PIC16F877 microcontroller tutor ...

Read more

PIC16F877 UART code and Proteus simulation

This post answers the question, "How to use interrupt based UART in PIC16F877" ? Also, using PIC16 simulator (Proteus) you can verify this UART code and change it according to your needs. 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. This PIC16F877 microcontroller tutorial provides the interrupt bas ...

Read more

PIC16F877 ADC code and Proteus simulation

This post provides the ADC code using PIC16F877 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 PIC16F877 microcontroller. If you don't then please read this page first, before proceeding with this article. The result of simulating ...

Read more

PIC12F675 microcontroller as Flip Flop

Code to make a 12F675 operate as a D-type or JK-type flip flop Since I implemented a D type flip flop using the PIC Logic Elements I thought I might go the other way and implement an entire D type flip flop in a single PIC.  This uses the edge triggered and port change status interrupts and was an opportunity to have a play with interrupts on the PIC. As written this code will cause a PIC to function as a n ...

Read more
Scroll to top