function

Interfacing of PIC16F84A

Interfacing of PIC16F84A with (i2c based) 24LC64 EEPROM (Code + Proteus simulation)

This post provides the code for interfacing 24LC64 EEPROM with PIC16F84A microcontroller. This 24LC64 EEPROM has i2c based interface and PIC16F84A 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 …

Interfacing of PIC16F84A with (i2c based) 24LC64 EEPROM (Code + Proteus simulation) Read More »

USB CDC ACM aka Virtual Serial Port

A Minimal USB CDC ACM aka Virtual Serial Port Using Pic

This page introduces a minimal firmware that implements a USB Virtual Serial Port for Microchip PIC18F4550 processor. The code has been optimized to use minimal amout of memory (both Flash and RAM) and tuned to work well with the Free SDCC C-compiler. The code size is less than 2500 bytes and it requires about 230 …

A Minimal USB CDC ACM aka Virtual Serial Port Using Pic Read More »

Execute Open Source Code

Execute Open-Source Code in a PIC Microcontroller Using the MPLAB IDE

The PIC32 single-board computer is a de facto standard tool for developing microcomputer applications within the hobbyist and educational communities. It provides an open-source hardware (OSH) environment based on a simple microcontroller board, as well as an open-source (OS) development environment for writing software for the board. Here’s an approach that enables PIC32 code to …

Execute Open-Source Code in a PIC Microcontroller Using the MPLAB IDE Read More »

Interfacing

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 …

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

PIC16F84A i2c

PIC16F84A i2c (bit banging) code and Proteus simulation

This post provides the i2c bit banging code for PIC16F84A microcontroller. As we know[1], PIC16F84A microcontroller doesn’t have any built in i2c modules, so we have to create it in the software. 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. …

PIC16F84A i2c (bit banging) code and Proteus simulation Read More »

PIC18F452 UART

PIC18F452 UART code and Proteus Simulation

This post provides the UART code (compiled in MPLAB + HI-TECH C) for PIC18F452 (e-g to connect PIC18F452 controller with PC using serial adapter). Complete project code and the proteus simulation can be downloaded from the Downloads section at the bottom of this post. The following diagram shows the required circuit. A crystal of 10MHz is used with PIC18F452. This …

PIC18F452 UART code and Proteus Simulation Read More »

PIC16F877 i2c

PIC16F877 i2c code and Proteus simulation

This post provides the i2c code (using the i2c module built in the hardware[1]) for 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 blink an LED with PIC16F877 microcontroller. …

PIC16F877 i2c code and Proteus simulation Read More »