Académique Documents
Professionnel Documents
Culture Documents
1. CONNECTING THE SYSTEM 2. INTRODUCTION 3. DESCRIPTION OF THE BOARD i. POWER SUPPLY ii. ABOUT PIC iii. I/O PORT ACCESS - LED iv. PUSHBUTTON SWITCHES v. LCD 2x16 vi. LCD 4x20 vii. RELAY viii. A/D CONVERTOR INPUT ix. RS232 COMMUNICATION x. DC MOTOR DRIVE xi. 4-WIRE STEPPER MOTOR xii. PWM TESTING xiii. EEPROM xiv. TIMERS xv. REAL TIME CLOCK (RTC) xvi. xvii. USB INTERFACE
operation at first time. Then you can confirm that your development kit is ready to use. Step-3: Install the MPLAB software. After installation open the path (C:\Program Files\Microchip) and check you will be finding MPLAB IDE if not reinstall properly. Install Hitech-PICC compiler (C:\Program Files\HI-TECH) Software also install the PicKit-2 software (C:\Program Files\Microchip\PICkit 2 v2) for load the program onto chip. Here the software we using are Microchip released versions so there is no external sources for our development board. Step-4: After these 3 steps, Your PIC is installed and ready for use. You should try to read from chip also try to load the example programs into the chip from Your PIC examples folder.
2. INTRODUCTION
The Your PIC development system is full featured development board for microchip PIC microcontrollers. It has been designed to allow students and engineers to easily exercise and explore the capabilities of PIC microcontroller. It allows PIC microcontroller to be interfaced with external circuits and board range of peripheral devices, allowing a user to concentrate on both software and hardware development. Figure-1 illustrates the development board. Each component is marked on top silk screen also it is partitioned as block of unit clearly. These will provide you the complete connections of devices and with microcontroller. Also this manual contains the complete schematic of this board. Figure-1:
YOUR PIC is designed for the users need to understand the microcontroller and to create the easy embedded development.
WHY PIC?
People who already have knowledge on other controller can easily go with PIC microcontroller also for new people who are starting their programming with PIC is very easy to adopt with the technology. Reason for PIC: 1. Basically the microcontroller 8051 is having digital IO access, If we need to connect any analog based sensor(like Temperature sensor, Current, voltage) we need to add Analog to digital conversion IC, But in PIC microcontroller we are having internal analog to digital converter, so directly we can interface the sensors with this. 2. To control the speed or increasing, decreasing the intensity we need to control the voltage level based on our requirement, for this we usually add PWM technique externally, But in PIC we are having internal PWM channels. 3. To store the external data we are using I2C protocol based EEPROM in8051.In PIC we are having 256 bytes of internal EEPROM. Like this many features are added internally with the microcontroller, by effectively utilizing the Registers we can fulfill all our requirements with single microcontroller. PIC Development Board allows you to perform any experiment on PIC microcontrollers and create any applications based on them with minimum amount of effort and time. Its easy and fast programming helps debug the programs at a much faster rate reducing the time to market, whereas on-board interfaces like LCD and LEDs make it really comfortable to test the programs on the go. Connection of any external hardware is also very handy with I/O extended through box headers.
Here we provided almost all kind of application test modules on board, so easily you can create any kind of application with this.
Schematic:
Schem-1
PCB Layout
Board Layout
Description:
Input 12V AC is given to connector J2, Diode D1, D2, D4, D5 are forming the bridge rectifier unit, Rectified DC output is filtered with Pi filter circuit C4, L1, C3 and the resistor R3 for easy discharging path. Filtered output is regulated to constant 5V with LM2576 switching regulator and the regulated voltage is given to microcontroller and other peripheral devices which are required +5V.Also given to LM1117 regulator to get the 3.3V output for some low voltage operated devices( ex. RF module, ZIGBEE, GPS) .USB connector can be used for power up the Microcontroller.
MICROCONTROLLER (PIC16F877A) PIC16F877A microcontroller is an 8-bit microcontroller with RISC architecture, it is available in 40 Pin DIP package or 44 Pin TQFP package. In our development board we are using 40 Pin DIP package. Features of PIC: High-Performance RISC CPU. Only 35 single-word instructions to learn, All single-cycle instructions except for program branches, which are two-cycle. Operating speed: DC 20 MHz clock input, DC 200 ns instruction cycle. Up to 8K x 14 words of Flash Program Memory, Up to 368 x 8 bytes of Data Memory (RAM), Up to 256 x 8 bytes of EEPROM Data Memory. Timer0: 8-bit timer/counter with 8-bit pre-scaler. Timer1: 16-bit timer/counter with pre-scaler, can be incremented during Sleep via external crystal/clock. Timer2: 8-bit timer/counter with 8-bit period register, pre-scaler and post-scaler. Two Capture, Compare, PWM modules - Capture is 16-bit, max. Resolution is 12.5 ns - Compare is 16-bit, max. Resolution is 200 ns - PWM max. Resolution is 10-bit Synchronous Serial Port (SSP) with SPI (Master mode) and I2C (Master/Slave). Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI) with 8 and 9bit address detection. 10-bit, up to 8-channel Analog-to-Digital Converter (A/D)
Pin Diagram
It has 5 I/O ports- PORTA, PORTB, PORTC, PORTD and PORTE. Pull up and pull down resistors are not required for I/Os. Some pins for these I/O ports are multiplexed with an alternate function for the peripheral features on the device. In general, when a peripheral is enabled, that pin may not be used as a general purpose I/O pin. Ex: PORTA is used as an analog PORT also we can use it as a digital I/O PORT. When it assigned as an analog port we cant use it for digital I/O purpose.
Schem-2
Schem-2 is shown the complete connections of Microcontroller I/Os. Pin no-1 is a reset pin for the microcontroller, it is connected to +5V through pull up resistor with 10K resistance and push button SW1. When we press the button our reset pin goes low than the controller is getting reset once. To indicate this reset function we connected a LED with 1K resistor (R5).Pin no 13, 14 is connected to crystal oscillator to generate external oscillation pulse. PGM_CONN is used to program the controller with PICKit2. We can interface PICKit3 or ICD3 also for program the controller.
PCB Layout
Board Layout
Programming
Writing program for PIC microcontroller is very easy for all beginners, we are using basic C programming with some basic concepts (like conditional operator, arrays, Simple pointer, functions). Here we provided some sample codes for all kinds of applications with clear explanation so the developer can able to understand the program and hardware both easily. Creating a New Project