PIC12F629/675. “Wide variety” 8-84 pin RISC core, 12/14/16bit program word USART/AUSART, I 2 C, ADC, ICSP, ICD OTP/UV EPROM/FLASH/ROM Families: PIC12,

Slides:



Advertisements
Similar presentations
Introduction to PIC Microcontrollers
Advertisements

Instruction formats for the PIC series. ROM encoding Instructions are encoded in binary in ROM. The instructions are fixed format, each occupying 14 bits.
Electronics Design Lab TUTORIAL PIC Microcontrollers Francesco Tenore 2/10/2006.
م/محمد علي عطية حسين. Pin Diagram DescriptionPin Name Oscillator crystal input/external clock source input. OSC1/CLKIN Oscillator crystal output.OSC2/CLKOUT.
Prof. Jorge A. Ramón Introducción a Microcontroladores.
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Fall 2013 Lecture 26: PIC microcontroller intro.
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 30: PIC data memory.
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.
Microprocessor Systems Design I
Rodolfo Rodriguez Kevin Zhang MJ Gellada
9/20/6Lecture 21 -PIC Architecture1 PIC Architecture Instruction Set.
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
Microcontroller Programming How to make something almost do something else Raffi Krikorian MAS November 2003.
Two’s Complement Number wheel for 4 bit numbers
Embedded Hardware. Embedded System Hardware Embedded system hardware is used for processing sensor input to produce output in task specific fashion Input.
Building Assembler Programs Chapter Five Dr. Gheith Abandah1.
Parallel Ports, Power Supply and the Clock Oscillator Material to be covered  Parallel I/O ports  Interfacing external switches and LEDs  Clock Oscillator.
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
PIC18F Programming Model and Instruction Set
Lecture – 4 PIC18 Family Instruction Set 1. Outline Literal instructions. Bit-oriented instructions. Byte-oriented instructions. Program control instructions.
PIC Processor Design CPE 428/528 April 29, 2002 Dr. Milenkovic Presented by: David Fatzer Le Pitts William Cruger Donn Hall.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Chapter 7 Larger Systems and the PIC 16F873A The aims of this chapter are to introduce: The architecture of the 16F873A microcontroller; The 16F873A memory.
EEE237 Introduction to Microprocessors Week x. SFRs.
Architecture and instruction set. Microcontroller Core Features:  Operating speed: DC - 20 MHz clock input DC ns instruction cycle Up to 8K x.
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
Working with Time: Interrupts, Counters and Timers
PIC16F887.
Components of a typical full-featured microcontroller.
I/O PORTS. General purpose I/O pins can be considered the simplest of peripherals. They allow the PICmicro™ to monitor and control other devices. To add.
INTRODUCTION Microchip is the Embedded Control Solutions Company. The company’s focus is on products that meet the needs of the embedded control market.
Special Features. Device Configuration bits Revision Device Configuration bits Revision On-chip Power-on Reset (POR) Revision On-chip Power-on Reset (POR)
Dr. Iyad Jafar Introducing the PIC 16 Series and the 16F84A.
TIMERS.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
16F877A.
Chapter 9 PIC18 Timer Programming in Assembly
Microprocessor Systems Design I
Embedded Hardware.
Prof. Ahmad Abu-El-Haija
Microprocessor Systems Design I
Microprocessor Systems Design I
Microprocessors and Programming Department of Mechatronics Engineering
Micro-processor vs. Micro-controller
Microprocessor Systems Design I
C. K. PITHAWALA COLLEGE OF ENGINEERING AND TECHNOLOGY
Microprocessor Systems Design I
Microprocessor Systems Design I
Micro-Controller: PIC16C74 < Architecture >
Microprocessor Systems Design I
PIC – ch. 2b Md. Atiqur Rahman Ahad.
Project Title EVM IN PIC Under the Guidance of Submitted by.
PIC 16F877.
Microprocessor Systems Design I
PIC18 CH. 4.
مقدمه با توجه به اهميت و گسترش روزافزون كاربردهاي ميكروكنترلرها و محدوديت هايي كه ميكروكنترلرهاي خانواده ي MCS51 ايجاد مي كرد،شركت Microchipنسل جديدي.
EECE.3170 Microprocessor Systems Design I
Chapter 4 Instruction Set.
Getting Started with Baseline Architecture and Peripherals in Assembly
INSTRUCTION SET.
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
Microprocessors and Programming Department of Mechatronics Engineering
Presentation transcript:

PIC12F629/675

“Wide variety” 8-84 pin RISC core, 12/14/16bit program word USART/AUSART, I 2 C, ADC, ICSP, ICD OTP/UV EPROM/FLASH/ROM Families: PIC12, PIC16, PIC17, PIC18

Highlights 14bit program word 1792Bytes (1024k words) FLASH program memory (10 5 e/w) 64Bytes 8-bit RAM 128Bytes 8-bit EEPROM (10 6 erase/write cycle) 6 I/O Pins, 24mA/pin 10bit A/D Convertor (12F675 only) Comparator 1x8b, 1x16b, 1xWDT timers DC-20MHz clock or internal 4MHz oscillator ICD Single-cycle instructions (branches 2) 8-level stack Direct, indirect, relative addressing SLEEP mode CMOS design (low power (< V, 4.0 MHz), high speed, static)

Blokové schema

Registers 2 banks, switch via STATUS Special Function Regs –00h-1Fh –Core –Peripheral General Purpose Regs –20h-5Fh / A0-DFh –Mapped bank1  bank0

Core registers STATUS OPTION_REG INTCON PIE1 PIR1 PCON OSCCAL PCL PCLATH INDF FSR

Peripherals GPIO GPIO, TRISIO, WPU, IOCB TIMER0 8bit TIMER1 16bit, timer/async.counter/sync.counter COMPARATOR internal reference, output A/D 4x10bit multiplexed, available during SLEEP  bias reduce EEPROM 128B, auto erase-before-write

Features I Configuration word Oscilator DC-20MHz –LP,XT,HS –RC (CLKOUT/IO) –INTOSC (CLKOUT/IO) 4MHz –EC Reset –MCLR Master Clear –POR Power-on Reset –PWRT Power-up Timer 72ms –OST Oscillator Start-up Timer 1024c after PWRT –BOD Brown-out Detect

Features II Interrupts (nothing except PC is saved!) –External GP2/INT –TMR0 Overflow –GPIO Change –Comparator –A/D –TMR1 Overflow –EEPROM Data Write

Features III Watchdog Timer SLEEP Code Protection ID Location 2000h-2003h IN CIRCUIT SERIAL PROGRAMMING

Features IV Power –<=4MHz V (A/D off, -40°C-85°C) V (A/D on, 0°C-85°C) V (A/D on, -40°C-85°C) –4-10MHz V (0°C-85°C) –>10MHz V (-40°C-125°C)

ICSP GP0 Data I/O GP1 CLK GP3 Programming voltage Vss Ground Vdd Power

Instruction set Orthogonal 14bit word 35 instructions –Byte-oriented 6+1+7b –Bit-oriented 4+3+7b –Literal and control 6+8b or 3+11b (CALL, GOTO)

f … registr 00h-7Fh d … destination 0=W, 1=f b … bit address 0-7 k … literal Flags C,DC,Z

Byte-oriented ADDWF f,d ANDWF f,d CLRF f CLRW COMF f,d DECF f,d DECFSZ f,d INCF INCFSZ f,d IORWF f,d MOVF f,d MOVWF f NOP RLF f,d RRF f,d SUBWF f,d SWAPF f,d XORWF f,d

Bit-oriented BCF f,b BSF f,b BTFSC f,b BTFSS f,b

Literal and Control ADDLW k ANDLW k CLRWDT IORLW k MOVLW k SUBLW k XORLW k CALL k GOTO k RETFIE RETLW k RETURN SLEEP