COMPARATIVAS COP8 vs. PIC. COP8SAC Diagrama en Bloques Interrupt 16 bit Timer T1 Instr. Decoder ALU SO SK SI (E6-E7) (EA-ED) ROM Ad. RAM Ad. EPROM 4 K.

Slides:



Advertisements
Similar presentations
Introduction to PIC Microcontrollers
Advertisements

8086 [2] Ahad. Internal! External? 8086 vs _bit Data Bus 20_bit Address 8_bit Data Bus 20_bit Address Only external bus of 8088 is.
Parul Polytechnic Institute
Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
Dr A Sahu Dept of Comp Sc & Engg. IIT Guwahati I/O + Timer 8155 I/O + Timer 8255 I/O 8255 I/O 8253/54 Timer 8253/54 Timer 2 Port (A,B), No Bidirectional.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Chapter 2 HARDWARE SUMMARY
8051 Core Specification.
Processor System Architecture
Microcontroller – PIC – 4 PIC types PIC architecture
Introduction of Holtek HT-46 series MCU
Prof. Jorge A. Ramón Introducción a Microcontroladores.
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Pyxis Aaron Martin April Lewis Steve Sherk. September 5, 2005 Pyxis16002 General-purpose 16-bit RISC microprocessor bit registers 24-bit address.
Micro-controller or embedded controller
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.
Microcontroller Architecture— PIC18F Family
Microcontroller Architecture PIC18F Family
NS Training Hardware. System Controller Module.
The 8051 Microcontroller architecture
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.
9/20/6Lecture 21 -PIC Architecture1 PIC Architecture Programmers Model and Instruction Set.
Building Assembler Programs Chapter Five Dr. Gheith Abandah1.
CoE3DJ4 Digital Systems Design Hardware summary. Microprocessors vs. Microcontrollers Microprocessors are single-chip CPU used in microcomputers Microcontrollers.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
PIC18F Programming Model and Instruction Set
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
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.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
Execution Architecture MTT CPU08 Core M CPU08 INTRODUCTION.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
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,
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Capability of processor determine the capability of the computer system. Therefore, processor is the key element or heart of a computer system. Other.
Chapter Microcontroller
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
8 085Microprocessor Temp Reg (8) Accumulator (A reg) Flag flip flops(8) Instruction Register (8) Arithmetic Logic Unit ALU Instruction Decoder and Machine.
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
The 8085A is a general-purpose microprocessor with low hardware overhead requirements. Within the 8085A are contained the functions of clock generation,
Chapter 9 PIC18 Timer Programming in Assembly
Unit Microprocessor.
Seminar On 8085 microprocessor
COURSE OUTCOMES OF Microprocessor and programming
Lecture 2 Programming of 8086 Лектор: Люличева И.А. 1.
UNIT – Microcontroller.
C. K. PITHAWALA COLLEGE OF ENGINEERING AND TECHNOLOGY
Microprocessor Systems Design I
PIC 16F877.
Microprocessor Systems Design I
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Architecture of Microprocessor (Intel 8085) Unit-I
Introduction to Microprocessors and Microcontrollers
Number Representations and Basic Processor Architecture
INTEL
Chapter 4 Instruction Set.
INSTRUCTION SET.
UNIT-VIII 8051 Microcontroller Architecture Register set of 8051
EECE.3170 Microprocessor Systems Design I
8051 Micro Controller.
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
Presentation transcript:

COMPARATIVAS COP8 vs. PIC

COP8SAC Diagrama en Bloques Interrupt 16 bit Timer T1 Instr. Decoder ALU SO SK SI (E6-E7) (EA-ED) ROM Ad. RAM Ad. EPROM 4 K Bytes (0-3FFF) MAR PC FEATURE CORE RAM 128 Bytes Clock Halt / Idle Wake Up Reset I/O Ports G 8-bits L 8-bits D 8-bits F 8-bits C 8-bits (D4-D6)(D0-D2)(D8-DA)(DC)(94-96) Watch Dog Logic (C7) Multi Input Wake Up (C8-CA) 16 Bit Idle Timer T0 A B X SP PSW CNTRL (FE) (FC) (FD) (EF) (EE) S (FF) (E9) Micro- Wire/ Plus Modified Harvard Architecture

Comparativa de características COP8 vs. PIC16C5x

Benchmarks Transferencia de 5 bytes de RAM a RAM Suma Binaria de 4 bytes Resta BCD de 8 Dígitos Uso de los Puertos de I/O I/O Serial + Acceso a tabla Búsqueda de 3 chars (string) en una tabla de 200

Diagrama en bloques del sistema COP8 PIC DAQ Timer Gate Reset Selección de benchmark Gate Reset

START STOP Benchmark #1 Cargar registros indice Copiar byte origen a destino 5 bytes ? Incrementar los indices NO SI Código fuente...

START STOP Benchmark #2 Cargar registros indice A i <— B i + A i 4 bytes ? Incrementar los indices NO SI Código fuente...

START STOP Benchmark #3 Cargar registros indice Restar dos digitos y corregir 4 bytes ? Incrementar los indices NO SI Código fuente... Res. Neg.? SI NO Complementar el resultado

START STOP Benchmark #4 Cargar puntero para tabla Char 3 ? Incrementar puntero Char 1 ? Char 2 ? SI NO Fin tabla ? SI NO STOP

START STOP Benchmark #5 Leer puertos (P1, P2) P1 = P2 ? NO SI P1 > P2 ? NO SI P3 <— 9 P1 <— P2 P3 = l_P1 | h_P1

START STOP Benchmark #6 Cargar contadores Leer direccion y dato1 (serie) 100 bytes ? dato2 <— [dirección] NO SI Enviar dato1 + dato2

Código Fuente #1 Benchmarks COP8PIC START LD B, #14 ; 1 LD X, #50 ; 2 BM1LOOP: LD A, [B+] ; 1 X A, [X+] ; 1 IFBNE #3 ; 1 JP BM1LOOP ; 1 STOP START MOVLW 5 MOVWF B1CNTR MOVLW 10 B1LOOP:MOVWF B1BASE MOVWF FSR MOVF INDF, W MOVWF B1TEMP MOVLW 5 ADDWF FSR, F MOVF B1TEMP, W MOVWF INCF B1BASE, F DECFSZ B1CNTR, F GOTO B1LOOP STOP

Código Fuente #2 Benchmarks COP8PIC START LD B, #10 ; 1 LD X, #20 ; 2 RC ; 1 BM2LOOP:LD A, [X+] ; 1 ADC A, [B] ; 1 X A, [B+] ; 1 IFBNE #14 ; 1 JP BM2LOOP ; 1 STOP START MOVLW 4 MOVWF B2CNTR MOVLW 10 MOVWF B2BASE BCF STATUS, 0 B2LOOP:MOVF B2BASE, W MOVWF FSR MOVF INDF, W MOVWF B2TEMP MOVLW 4 SUBWF FSR, F MOVF B2TEMP, W ADDWF INDF, F MOVLW 4 ADDWF FSR, F INCF B2BASE, F DECFSZ B2CNTR, F GOTO B2LOOP STOP

Código Fuente #3 - COP START LD B, #14 ; 1 LD X, #20 ; 2 SC ; 1 BM3LOOP: LD A, [X+] ; 1 X A, [B] ; 1 SUBC A, [B] ; 1 DCOR A ; 1 X A, [B+] ; 1 IFBNE #2 ; 1 JP BM3LOOP ; 1 IFNC ; 1 JP BM3NEGR ; 1 RC ; 1 STOP BM3NEGR:SC ; 1 LD B, #14 ; 1 BM3LUP: CLR A ; 1 SUBC A, [B] ; 1 DCOR A ; 1 X A, [B+] ; 1 IFBNE #2 ; 1 JP BM3LUP ; 1 SC ; 1 STOP

Código Fuente #3 - PIC Benchmarks START MOVLW. 4 MOVWF B3CNTR MOVLW 0x20 MOVWF B3BASE BSF STATUS, 0 B3LOOP:MOVF B3BASE, W MOVWF FSR MOVF INDF, W MOVWF B3TEMP MOVLW. 4 SUBWF FSR CALL B3CORR MOVLW. 4 ADDWF FSR DECFSZ B3CNTR GOTO B3LOOP BTFSS STATUS, 0 GOTO B3NEGR BCF STATUS, 0 STOP goto $ B3NEGR: MOVLW. 4 MOVWF B3CNTR MOVLW 0x20 MOVWF B3BASE BSF STATUS, 0 B3LUP: MOVF B3BASE, W MOVWF FSR MOVF INDF, W MOVWF B3TEMP CLRF INDF CALL B3CORR DECFSZ B3CNTR GOTO B3LUP BSF STATUS, 0 STOP goto $ B3CORR:CLRF B3FLAG MOVF B3TEMP, W SUBWF INDF CLRF B3TEMP BTFSC STATUS, 0 GOTO B3BYP1 MOVLW 60H ADDWF B3TEMP B3BYP1:BSF B3FLAG, 0 BTFSC STATUS, 1 GOTO B3BYP2 MOVLW 06H ADDWF B3TEMP B3BYP2: MOVF B3TEMP, W BSF STATUS, 0 SUBWF INDF BTFSC B3FLAG, 0 BCF STATUS, 0 INCF B3BASE RETLW 0

COP8 RAM Organization F0-FF S = FF 80-FF 70-7F 00-6F Unused (Reads as all ones) On-Chip RAM (64 Bytes) Unused (Reads as all ones) (S) = 00 (S) = 01(S) = XX 017F 013F 0100XX00 XX7F SegmentNSegmentN Segment 1Segment 1 Segment0Segment0 BaseAddressRangeBaseAddressRange If bit #7 of an address = 0, S is used to extend base address range, example shows a device with 192 bytes RAM

COP8 Data Memory Organization F0-FFOn Chip User RAM, B&X ind. memory pointers, Stackpointer. Some special instr. (DRSZ) support only in this memory area (16 bytes) E0-EFOn Chip Function Registers (Timer1, MICROWIRE/PLUS, PSW, CNTRL-Reg., etc.) D0-DFOn Chip I/O Registers 80-CFOn Chip Function Registers (Timers, Multi-Input Wakeup, A/D, UART, etc.) Unused locations read undefined data 70-7FUnused RAM Address Space (reads all ones) 00-6FOn Chip User RAM (112 Bytes)

COP8 Interrupt Structure

VIS Flowchart

COP8 Port Structure Pin INTERNAL BUSINTERNAL BUS Data Register Configuration Register Data Register Bidirectional I/O Port Output-Only Port

HALT mode IDLE mode Multi-Input-Wake-Up (MIWU), to exit power save modes via any of up to eight external events HALT mode IDLE mode Multi-Input-Wake-Up (MIWU), to exit power save modes via any of up to eight external events Power Save Modes

HALT Mode HALT can be disabled via OTP configuration register or mask option All activities stopped except clock monitor –Enter HALT mode Setting the G7 data bit (program) –Exit HALT mode RESET Low to high transition on CKO Multi-Input Wakeup HALT can be disabled via OTP configuration register or mask option All activities stopped except clock monitor –Enter HALT mode Setting the G7 data bit (program) –Exit HALT mode RESET Low to high transition on CKO Multi-Input Wakeup

IDLE Mode All activities stopped except –Oscillator –WATCHDOG logic –Clock monitor –IDLE timer (T0) Enter IDLE Mode by –Setting the G6 data bit (program) Exit IDLE Mode –Reset –Multi-Input Wakeup –T0 13-bit toggles All activities stopped except –Oscillator –WATCHDOG logic –Clock monitor –IDLE timer (T0) Enter IDLE Mode by –Setting the G6 data bit (program) Exit IDLE Mode –Reset –Multi-Input Wakeup –T0 13-bit toggles

Instruction Set - Addressing Modes Direct:LD A, 05 Register IndirectX A, [B] Register Indirect withX A, [B±] Post Inc / DecX A, [X±] ImmediateLD A, #05 Immediate ShortLD B, #07 Indirect from Program MemoryLAID Jump RelativeJP 0A Jump AbsoluteJP 013F Jump Absolute LongJP 313F Jump IndirectJID Direct:LD A, 05 Register IndirectX A, [B] Register Indirect withX A, [B±] Post Inc / DecX A, [X±] ImmediateLD A, #05 Immediate ShortLD B, #07 Indirect from Program MemoryLAID Jump RelativeJP 0A Jump AbsoluteJP 013F Jump Absolute LongJP 313F Jump IndirectJID

Instruction Set - Types Arithmetic & Logic –ADD, SUBC, AND, OR, XOR A & C Specific –CLRA, SC, RC Transfer of Control –JMP, JSR, RET, NOP Memory Transfer –LD, X Conditionals Arithmetic & Logic –ADD, SUBC, AND, OR, XOR A & C Specific –CLRA, SC, RC Transfer of Control –JMP, JSR, RET, NOP Memory Transfer –LD, X Conditionals

Instruction Set - Arithmetic ADD ADC SUBC AND OR XOR ANDSZ DRSZ ADD ADC SUBC AND OR XOR ANDSZ DRSZ

Instruction Set - Accumulator and Carry CLRA INCA DECA LAID DCOR RRCA RLCA PUSHA CLRA INCA DECA LAID DCOR RRCA RLCA PUSHA POPA SWAPA SC RC IFC IFNC

LAID - instruction LAID Load value to Accumulator (0-256) Accumulator updated from table. ROM Table LAID EA

Instruction Set - Transfer of Control JMPL JMP JP JSRL JSR JMPL JMP JP JSRL JSR JID RET RETSK RETI INTR NOP

Instruction Set - Memory Transfer LD A, address LD B, immediate LD Mem, immediate LD Reg, immediate X A, address LD A, address LD B, immediate LD Mem, immediate LD Reg, immediate X A, address

Conditionals IFEQ IFNE IFGT IFBNE IFBIT IFC IFNC IFEQ IFNE IFGT IFBNE IFBIT IFC IFNC

Three Wire Serial Connection Bidirectional Flexible Frame Transmission Programmable Transmission Speed Master/Slave Mode Short Message Length Comparable Small Circuit Three Wire Serial Connection Bidirectional Flexible Frame Transmission Programmable Transmission Speed Master/Slave Mode Short Message Length Comparable Small Circuit MICROWIRE/PLUS™

MICROWIRE/PLUS Circuit Block Diagram PSW CLK Select Divider TC1TC2TC3TRUNMSELIEDGSL1SL0 Bit 7Bit 0 Bit 7Bit 0 Instruction Clock SO SI SK SIOR Internal Data BusInternal Data Bus BUSY CNTRL

MICROWIRE/PLUS Example COP8 (Master) COP8 (Slave) A/DE2E2 PLL LCD Driver DODICLKDODICLKDICLKDICLK SI SO SK SI SO SK Chip Select Lines

COP8 Timer Structure T1RA Timer T1 T1RB IDLE Timer Timer T0 SEL tCtC T1B T1A tCtC Internal Data BusInternal Data Bus

IDLE Timer (T0) WATCHDOG Logic Down Counter (T0) T0PNDT0EN IDLE Chip Clock tC ICNTRL Register Multi-Input Wake-Up Logic Interrupt G6 Data Bit SR Internal Data Bus Q