Académique Documents
Professionnel Documents
Culture Documents
HITESH GUPTA
CONTENT
INTRODUCTION TO EMBEDDED SYSTEM CHARACTERISTICS MICROCONTROLLER PIC HISTORY OF PIC PIN DIAGRAM BLOCK DIAGRAM APPLICATIONS
Content Cont
OrCad
Orcad design flow Orcad Capture(Schematic Design) Selecting footprints Orcad layout plus Task Involved in Layout Design Layout
Introduction
An embedded controller is a controller (or computer) that is embedded into some device for some purpose other than to provide general purpose computing
Characteristics
Perform a single set of functions. Works in a time constrained environment. Provides high-performance and reliability Mostly Embedded systems have low cost because they are mass produced in millions. Some Embedded systems have mechanical moving parts like disk drives as they are less reliable as compared to solid state parts such as Flash memory.
Introduction
Microcontrollers are single chip computer. Peripheral Interface Controller from Microchip Technology
History of PIC
The 8-bit PIC was developed in 1975 to improve performance of the overall system The Microchip 16C84 (PIC16x84), introduced in 1993
It was called as a EPROM memory on a chip
It was refer as internal memory controller.
FEATURES OF PIC c
Features Contd
13-33 I/O pins. 3-12 interrupt Sources. 4/8 Channel, 8 bit on chip ADC. Power on Reset. (POR) Brown out Reset (BOR). Capture/Compare/ PWM modules. USART Synchronous serial port (SSP) with SPI and I2C.
Micro-controller
1. Contains on chip RAM, ROM, I/O, TIMER, Serial port . 2. Used in Specific Purpose applications
CPU
CPU General purpose uP RAM ROM I/O
TIMER
SERIAL COM PORT
RAM
ROM
I/O
TIMER
COM PORT
SERIAL
Address Bus
PIN DIAGRAM
I/o Ports
Port A RA0 to RA4 ( 5 lines) (Address 05) RA4 has alternate function. TRISA(85H)is SFR used to configure these lines individually as either inputs or outputs. Setting bit in TRIS will configure as input and 0 will configure as output. Port BRB0 to RB7(8 lines).TRISBIt has weak internal pull up which is to be enabled . POR disables pull ups.
PIC Architecture
ALU Size is 8 bit Performs operations with temporary working register and (W register) and any register file. W register8 bit wide. It contains one of source operands during execution of instruction and may serve as the destination for the result of operation. Used only for ALU operations. STATUS Register C = Carry Bit DC = Digits Carry (Same as AC)
Architecture Contd..
Z = Zero TO = Reset status bit ( Time out bit) PD = Reset status bit ( Power down)These bits are used along with SLEEP mode. After coming out from SLEEP processor checks these bits to determine which kind of event is responsible for bringing out of SLEEP mode. RP0 = Register Bank Select bit.If 0 selects bank 0 otherwise bank 1.
Architecture Contd..
FSR Register (File Selection Register) FSR is a pointer used for indirect memory addressing in the whole register file. In indirect addressing mode one has to write address byte in FSR and then use INDF ( Indirect thro FSR).INDF is used in instruction. PCLATH (PC Latch) Can be independently read or written like any other register. Its different from PC and is separate entity.
Applications
Telecom
Mobile phone systems (handsets and base stations), Modems, Routers
Automotive applications
Braking systems, Traction control, Airbag release systems, Enginemanagement units, Steer-by-wire systems, Cruise control applications
Domestic appliances
Dishwashers, Televisions, Washing machines, Microwave ovens, Video recorders, Security systems, Garage door controllers, Calculators, Digital watches, VCRs, Digital cameras, Remote controls, Treadmills.
Robotic
Fire fighting robo, Automatic floor cleaner, Robotic arm
Applications
Aerospace applications
Flight control systems, Engine controllers, Autopilots, Passenger inflight entertainment systems
Medical equipment
An aesthesia monitoring systems, ECG monitors, Pacemakers, Drug delivery systems, MRI scanners
Defense systems
Radar systems, Fighter aircraft flight control systems, Radio systems, Missile guidance systems
Office Automation
Laser printers, Fax machines, Pagers, Cash registers, Gas pumps, Credit/Debit card readers, Thermostats, Grain analyzers
Or CAD
OrCAD Layout
OrCAD Smartroute
Capture
Gerber tools
Layout
Libraries Gerber and drill files
Footprint libraries
Selecting footprints
LAYOUT