pic microcontroller review

15
Instructor: Mohsen Sarakbi PIC Microcontroller Review Communication PIC-Microcontroller Lab Course by JAOM Center, Feb. 2013

Upload: mohsen-sarakbi

Post on 26-May-2015

1.436 views

Category:

Documents


3 download

DESCRIPTION

A PIC micro-controller review as a part of one complete course about using communication modules along with PIC-Micro-controller Thanks.

TRANSCRIPT

Page 1: PIC microcontroller review

Instructor:Mohsen Sarakbi

PIC Microcontroller Review

Communication PIC-Microcontroller LabCourse by JAOM Center, Feb. 2013

Page 2: PIC microcontroller review

Definitions of Control Systems

A control system is a collection of components workingtogether under the direction of some machine intelligence.

In most cases, electronic circuits provide the intelligence, andelectromechanical components such as sensors and motorsprovide the interface to the physical world.

Page 3: PIC microcontroller review

Parts of Control System

Page 4: PIC microcontroller review

Parts of Control System

Every control system has (at least) a controller and an actuator (alsocalled a final control element).

The Controller is the intelligence of the system and is usuallyelectronic.

The input to the controller is called the Set point, which is a signalrepresenting the desired system output.

The Actuator is an electromechanical device that takes the signal fromthe controller and converts it into some kind of physical action.Examples of typical actuators would be an electric motor, an electricallycontrolled valve, or a heating element.

The last block is labeled Process and has an output labeled Controlledvariable. The process block represents the physical process beingaffected by the actuator, and the controlled variable is the measurableresult of that process.

Page 5: PIC microcontroller review

Control System Classifications Open-Loop Control Systems:The controller never actually

knows if the actuator did what it was supposed to.

Closed-Loop Control Systems: The output of the process(controlled variable) is constantly monitored by a sensor.

Page 6: PIC microcontroller review

Microcontrollers

The microcontroller is simply a computer on a chip.

A microcontroller differs from microprocessor; it usuallyincludes a central processor (CPU), input and output ports,memory for program and data storage, an internal clock, andone or more peripheral devices such as timers, counters,analog-to-digital converters (ADC) and serialcommunication facilities.

Page 7: PIC microcontroller review

Microcontrollers

Page 8: PIC microcontroller review

PIC Microcontrollers

PIC is the name for the Microchip microcontroller (MCU)family, consisting of a microprocessor, I/O ports, timers andother internal, integrated hardware. The main advantages arelow external part count, a wide range of chip sizes greatavailability of compilers and source code and easyprogramming.

In our course we’ll use the Microchip products (PIC16F877A)microcontroller.

Page 9: PIC microcontroller review

PIC16F877A Features

o High-performance RISC CPUo 8 Kbytes of FLASH Program Memoryo 368 bytes of Data Memory (RAM)o 256 bytes of EEPROM Data Memoryo 33 I/O pins: (5 ports: A(6), B(8), C(8), D(8) and E(3))o 4-20 MHz operating speedo Wide operating voltage range: 2.0V to 5.5V.o Max. 25 mA current from an output pin.

Page 10: PIC microcontroller review

PIC16F877A Features

Page 11: PIC microcontroller review

MikroBasic

Page 12: PIC microcontroller review

Create a Project

Page 13: PIC microcontroller review

Programming …

Page 14: PIC microcontroller review

PIC Lab

ON/OFF LED IF Statements & Loops (WHILE & FOR) Procedures LCD USART TX/RX Analog input (Temp on LCD)

Combined Scenario ..

Page 15: PIC microcontroller review