PROCEDURE TO USE MPLAB SIM

Related Articles PERIPHERAL INTERFACE CONTROLLER (PIC) INTRODUCTION TO PIC 16F877 PIC PROGRAMMING INSTRUCTION SETS The first step is to install MPLAB SIM software in your PC, then create a new sub-directory in the main directory RT. For example, in order to write a program to do mathematical addition, create a sub directory called add8 (just a name) in the main directory RT. Create a new directory in E drive in your name, say RT for every program Similarly, to write any program, create a new sub-directory with suitable name in the main directory RT. While assembling the program, MPLAB will…

Read More

Program Flow Control Group in PIC

Basics of PIC and other related articles PERIPHERAL INTERFACE CONTROLLER (PIC) INTRODUCTION TO PIC 16F877 To know the basic instruction sets, use the link below. PIC PROGRAMMING INSTRUCTION SETS ARITHMETIC AND LOGIC OPERATIONS GROUP DATA TRANSFER GROUP BIT OPERATION GROUP INSTRUCTIONS 1) BTFSC BTFSC is a special type program flow instruction which control the current program flow. Normally BTFSC Test the bit in f, skip if it is zero. Syntax: Label BTFSC f, b Description: Test the specified bit of register f, skip the next instruction if it is zero Operation: Skip the next instruction if f (b) = 0…

Read More

Bit Operation Group Instructions in PIC

To know more about the basics of this article, use the links given below. PIC PROGRAMMING INSTRUCTION SETS DATA TRANSFER GROUP ARITHMETIC AND LOGIC OPERATIONS GROUP PROGRAM FLOW CONTROL Bit Operation Group 1) BCF BCF is a resetting command instruction used for performing reset operations for a specified bit or specified register (simply called bit clearing flag or bit clearing command). Normally BCF resets the specified bit in f registers content. Syntax: Label BCF f, b Description: Reset the specified bit of register f Operation: Result to f Operand: 0 < f < 127 and 0 < b < 7…

Read More

Arithmetic and Logic Operations Group in PIC

Basics of PIC and other related articles PERIPHERAL INTERFACE CONTROLLER (PIC) INTRODUCTION TO PIC 16F877 To know the basic instruction sets, use the link below. PIC PROGRAMMING INSTRUCTION SETS DATA TRANSFER GROUP BIT OPERATION GROUP INSTRUCTIONS PROGRAM FLOW CONTROL ARITHMETICAL AND LOGICAL OPERATIONS GROUP In this article, the basic arithmetic and loguc operations that are carried out by a PIC is explained in detail. Arithmetic and logic operation group instructions are used for performing all arithmetic operations and logic operations. By using these types of instructions, the PIC chip can easily perform all arithmetic and logic operations inside the micro…

Read More

Data Transfer Group Instructions in PIC

Take a look at the basics and other related articles. PERIPHERAL INTERFACE CONTROLLER (PIC) PIC PROGRAMMING – INSTRUCTION SETS INTRODUCTION TO PIC 16F877 Data Transfer Group Instructions in PIC Data transfer group instructions are one of the major instructions widely used in PIC programming for data transfer purposes. By using these types of instructions, we can move or change the value (bits) from one location to another. Data Transfer Instructions with Syntaxes 1. MOVLW “MOVLW” instruction is used to write constant in W register (move the value from literal to W register). Syntax: Label MOVLW k Description: 8 bit constant…

Read More

PIC Programming – Instruction Sets

To know the basics of PIC, click on the link below. TAKE A LOOK : PERIPHERAL INTERFACE CONTROLLER (PIC) Other Related Articles TAKE A LOOK : INTRODUCTION TO PIC 16F877 TAKE A LOOK : TIMER MODULES IN PIC 16F877 TAKE A LOOK : CCP MODULES IN PIC 16F877 Instruction Sets in PIC Instruction sets are the source codes that are written by the programmer for performing the desired operations in a PIC chip. These codes can be usually written in any of the programming languages such as C, C++, assembly languages, and so on. The instruction set commands are pre-determined…

Read More

Peripheral Interface Controller (PIC) – Advanced Features

Related Articles PERIPHERAL INTERFACE CONTROLLER (PIC) INTRODUCTION TO PIC 167F877 USART MODULES IN PIC 16F877 Most of the modern PIC CPU’s  like PIC16F87XA devices are built with many types of advanced features that are capable of performing additional special tasks and operations. These features increases the stability of the PIC and increases its functional reliability. It is also helpful for designers to decrease the entire cost of the designed circuit by the integration and replacement of external components and also by providing a lot of power saving protections. The general special features of a modern PIC chip are given below…

Read More

USART Modules in PIC 16F877

PIC 16F877 – USART Modules This article explains the different USART modules used in PIC 16F877 like Asynchronous (full-duplex), Synchronous – Master (half-duplex), and Synchronous – Slave (half-duplex). The USART Baud Rate Generator (BRG) is also explained in detail along with the register table. The applications of USART is also given. RELATED ARTICLES: TAKE A LOOK : INTRODUCTION TO PIC 16F877 TAKE A LOOK : PIC 16F877 – ARCHITECTURE AND MEMORY ORGANIZATION TAKE A LOOK : REGISTER MEMORY ORGANIZATION IN PIC 16F877 TAKE A LOOK : TIMER MODULES IN PIC 16F877 TAKE A LOOK : CCP MODULES IN PIC 16F877…

Read More

CCP Modules in PIC 16F877

RELATED ARTICLES: TAKE A LOOK : INTRODUCTION TO PIC 16F877 TAKE A LOOK : PIC 16F877 – ARCHITECTURE AND MEMORY ORGANIZATION TAKE A LOOK : REGISTER MEMORY ORGANIZATION IN PIC 16F877 TAKE A LOOK : TIMER MODULES IN PIC 16F877 CAPTURE/COMPARE/PWM (CCP) Modules in PIC 16F877 Capture-Compare-Pulse-Width-Module (CCP) is a special module designs for modulation and waveform generation applications. This module basically works on three different modes (capture/compare and PWM odes). The PIC 16F877 chip contains two CCP ports (CCP1 and CCP2). Each of this CCP module contains 16 bit registers which works as • 16-bit Capture register • 16-bit…

Read More

Timer Modules in PIC 16F877

Related Articles TAKE A LOOK : INTRODUCTION TO PIC 167F877 TAKE A LOOK : PIC 16F877 – ARCHITECTURE AND MEMORY ORGANIZATION TAKE A LOOK : REGISTER MEMORY ORGANIZATION IN PIC 16F877 TAKE A LOOK : EEPROM/FLASH MEMORY ORGANIZATION in PIC 16F877 Timer modules in PIC 16F877 The PIC 16F877 basically has three timer modules. These timer module terminals are also multiplexed with other functions for handling alternate functions. These timer modules are usually denoted by the symbols TIMER-0, TIMER-1, and TIMER-2.These modules help to perform various timing and counting functions inside the chip. TIMER-0 module The main timing/counting features of…

Read More