PIC12F675 Microcontroller Tutorial

A tutorial on the 12F675 PIC microcontroller which shows you how to program and use it with a series of projects starting out with a simple LED flasher and progressing on to more advanced projects. To use the tutorial files you need to have a PIC programmer with an ICSP output connector and the components shown in each tutorial.   You don't have to install the compiler as hex file is contained in the downlo ...

Read more

How to interface GSM Module with PIC18F4550 Microcontroller

The Global System for Mobile (GSM) communication is the Second Generation of mobile technology. Although the world is moving towards Third and Fourth generation but GSM has been the most successful and widespread technology in the communication sector. GSM technology paved a new way for mobile communication. This project explains the interfacing of a GSM Module with a PIC microcontroller. It also covers a w ...

Read more

PIC16 Microcontrollers Video Tutorial Series

Lecture on "Intro to Microprocessors" using Wilmshurst's "Designing Embedded Systems with PIC Microcontrollers" Chapter 1, sections 1-3 Topics: What is an Embedded system?, Embedded examples, CISC vs. RISC, Memory: Volitile vs. non-volitile, Memory Organization: Von Neumann vs. Harvard Chapter 1, sections 4-6 Topics: Microcontrollers vs. Microprocessors, Microcontroller families, Microchip Inc. History and ...

Read more

Counting on the 7-segment display

This experiment uses the push-button to increment the count on the 7-segment display. The count-value is stored in a file and this value is incremented by the program each time the push button is pressed. The count-value is used to look-up a table to pick up the display-value for the 7-segment display. Additional experiments on the website include a count-down routine, a 00 to 99 counter using a single disp ...

Read more

Seven segment display 4 digit For CSS Compiler

#include <16F877.h> #device adc=8 #fuses NOWDT,HS, NOPUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG #use delay(clock=4000000) #define sw_up pin_a0 // SWITCH UP #define sw_down pin_a1 // SWITCH DOWN INT16 COUNT; int8 A,B,C,D; //int8 segment[10] ={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};//common anode int8 num[10] ={ 0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x27,0x7F,0x6F};//common cathode ...

Read more

Stepping Motor Control For CSS Compiler

#include <16F877.h> #fuses XT,NOLVP,NOWDT,NOPROTECT #use delay(clock = 4000000) #use fast_io(A) #use fast_io(B) byte num[5] = {0x00,0x01,0x02,0x04,0x08}; int8 disp,i; void Forward(){ for(i=0; i<=4;i++){ disp =num[i]; output_b(disp); delay_ms(200); } } void Backward(){ for(i=4;i>0;i--){ disp =num[i]; output_b(disp); delay_ms(200); } } void Stop(){ disp =0; output_b(disp); delay_ms(50); } void mai ...

Read more

Shift left – shift right value For CSS Compiler

#include <16F877.h> #device adc=8 #FUSES NOWDT ,XT #use delay(clock=4000000) int8 x,k; void main() { setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_psp(PSP_DISABLED); setup_spi(SPI_SS_DISABLED); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); set_tris_b(0x00); output_b(0); k=0; x=0x01; while(true) { for(k=0;k<=7;++k){ output_b (x); delay_ ...

Read more

One wire bus (DS1820) Control For Basic PRO Compiler

Include "modedefs.bas" @ Device PIC16F877,XT_OSC,WDT_off,PWRT_off,PROTECT_off ,BOD_Off define adc_bits 8 define osc 4 DEFINE LCD_DREG PORTD DEFINE LCD_DBIT 4 DEFINE LCD_RSREG PORTD DEFINE LCD_RSBIT 1 DEFINE LCD_EREG PORTD DEFINE LCD_EBIT 0 low portD.2 trisa = $ff trisb = $00 TRISD = $00 adcon1 = 7 temperature VAR WORD count_remain VAR BYTE count_per_c VAR BYTE sV var byte PV var byte mode var porta.0 up var ...

Read more

PIC Microcontrollers by Milan Verle

[button color="red" font="georgia" fontw="bold" align="right"]It's a Free E-Book[/button] Book Introduction: If you haven't done it so far then it's high time to learn what microcontrollers are and how they operate. Numerous illustrations and practical examples along with a detailed description of the PIC16F887 microcontroller will make you enjoy your work with PIC MCUs. Title: PIC Microcontrollers Author: ...

Read more
Scroll to top