Tutorials

PIC16 Microcontrollers Video Tutorial Series

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 background, Table of […]

PIC16 Microcontrollers Video Tutorial Series Read More »

7 segment display

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

Counting on the 7-segment display 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 0 1 2 3 4 5 6 7 8 9 // 0 1 2

Seven segment display 4 digit For CSS Compiler 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 main(){ setup_adc(adc_off); set_tris_a(0xFF); set_tris_b(0B00000000); stop(); while(true){ if(!input(pin_a0)){ do{ Forward(); }

Stepping Motor Control For CSS Compiler Read More »

pic microcontrollers ebook

PIC Microcontrollers by Milan Verle

Introduction to the World of microcontrollers The situation we find ourselves today in the field of microcontrollers had its beginnings in the development of technology of integrated circuits. This development has enabled us to store hundreds of thousands of transistors into one chip. That was a precondition for the manufacture of microprocessors. The first computers

PIC Microcontrollers by Milan Verle Read More »

PROTON IDE TUTORIAL

PROTON IDE TUTORIAL PROTON COMPILER EXAMPLE

Proton pic programming for beginners with a nice supply of protons are prepared with a lot of practice. Proton ide Tutorial Example list Proton ide Read-Write EEPROM PIC16F877 Proton ide segment display to…Electronics Projects, Proton ide Tutorial Proton Compiler Example “microchip projects, microcontroller projects, pic16f84 projects, pic16f876 projects, pic16f877 projects, pwm circuits, “ Proton pic programming for beginners

PROTON IDE TUTORIAL PROTON COMPILER EXAMPLE Read More »

photo viewer

EasyEDA features for Schematic and PCB design

EasyEDA is a unique cloud-based EDA tool, designed to give electrical/electronic engineers, educators, engineering students and electronics hobbyists an easier EDA Experience. The objective of this cloud based circuit design tool is to help designers move from idea to manufactured prototype by providing comprehensive data and collaboration tools for electronic design. It is suitable for all

EasyEDA features for Schematic and PCB design Read More »

I2C bus for 24LC16 For CSS Compiler

  #include <16F877.h> #device adc=8 #FUSES NOWDT ,XT #use delay(clock=4000000) #use i2c(Master,Fast,sda=PIN_C4,scl=PIN_C3) #INCLUDE “LCD_4BIT.C” #include “I2C_24LCxx.c ” int8 value,setpoint=112; void main(){ setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_psp(PSP_DISABLED); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); set_tris_c(0B10000000); // 1000 0000 PortC set_tris_d(0B00000000); // 0000 0000 Portd is Output lcd_init(); Write_eeprom_24LCxx(0x01,setpoint); lcd_init(); lcd_ROW_COL(1,0); // defind ddram address for put string lcd_putc(” KCHI_MICRO.PIC”); lcd_ROW_COL(2,0); lcd_putc(“READ EEPROM

I2C bus for 24LC16 For CSS Compiler Read More »