Introduction to PIC Interrupts and their Handling in C
Posted by Avinash on December 5th, 2010 10:51 AM | 3 CommentsIntroduction to PIC18′s Timers – PIC Microcontroller Tutorial
Posted by Avinash on May 13th, 2010 12:02 PM | 21 CommentsRS232 Communication using PIC18F4520′s USART – PIC Microcontroller Tutorial
Posted by Avinash on May 11th, 2010 09:44 AM | 26 CommentsMultiplexed Seven Segment Display using PIC16F877A and HI-TECH C
Posted by Avinash on April 28th, 2010 08:01 AM | 2 Comments
#include <htc.h>
#define _XTAL_FREQ 20000000UL
typedef unsigned char UINT8;
typedef signed char INT8;
typedef unsigned int UINT16;
typedef signed int INT16;
//Connection of Seven segment display
#define SEVEN_SEGMENT_LAT PORTD
#define SEVEN_SEGMENT_TRIS TRISD
//MUX Control
#define MUX_PORT PORTB
#define MUX_START_POS 1 //From which bit on port the select lines start
//MUX settings
#define MUX_DISP_COUNT ...


