PGT302 Embedded Software Technology. PGT302 Embedded Software Technology

Similar documents
The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

8051 Microcontroller

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

8051 Microcontroller

8051 microcontrollers

Rev. No. History Issue Date Remark

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

UNIT IV MICROCONTROLLER

Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 4199

Introduction To MCS-51

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

INTEGRATED CIRCUITS USER S MANUAL. P87C51MB2/P87C51MC2 80C51 8-bit microcontroller family with extended memory 64KB/96KB OTP with 2KB/3KB RAM

MSM80C154S MSM83C154S MSM85C154HVS USER'S MANUAL

20uA at VDD=5.5V 5uA at VDD=3.6V. 1T up to 20 (1T~8T can change on fly) RC ( 24MHz) Program Flash ( byte) 4K 4K RAM( byte)

Lecture 1. Course Overview and The 8051 Architecture

HD C51-based microcontroller

8051 Microcontrollers

Lecture 2. Silicon Labs C8051F020 System Overview


Microcontrollers. Fig. 1 gives a comparison of a microprocessor system and a microcontroller system.

8051 Embedded Microcontroller HD 8002

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND)

Three criteria in Choosing a Microcontroller

Chapter C2051 Architecture and Serial Communication Link

INTEGRATED CIRCUITS DATA SHEET. P89C738; P89C739 8-bit microcontrollers Dec 15. Product specification File under Integrated Circuits, IC20

Department of Electronics and Instrumentation Engineering Question Bank

8XC51RA RB RC Hardware Description

AT Bit Spread- Spectrum Microcontroller. Preliminary. Features. Description. Pin Configuration

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

ISSI. IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH ISSI IS89C51 NOVEMBER 1998 FEATURES GENERAL DESCRIPTION

8051 MICROCONTROLLER

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051:

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT- IV

P89V52X2. 1. General description. 2. Features. 8-bit 80C51 low power 8 kb flash microcontroller with 256 B RAM, 192 B data EEPROM

ENE 334 Microprocessors

DQ8051. Revolutionary Quad-Pipelined Ultra High performance 8051 Microcontroller Core

1. INTRODUCTION. The Main Components of Project. Working:

TDA General description. 2. Features. Low power single card reader

C8051 Legacy-Speed 8-Bit Processor Core

EE6502- MICROPROCESSOR AND MICROCONTROLLER

UNIT MICROCONTROLLER AND ITS PROGRAMMING

The Final Word on 8051 Microcontroller

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET

MEGAWIN MPC89L516X2. 8-bit micro-controller. Features

8051 MICROCONTROLLER

W78ERD2/W78ERD2A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

7.2.1 Timer 2 Capture LSB... 24

DATA SHEET. P83C524; P80C528; P83C528 8-bit microcontrollers INTEGRATED CIRCUITS Dec 15

8051 Microcontroller memory Organization and its Applications

W78ERD2 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

W79E201 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

Microcontroller and Embedded Systems:

8.1.1 External Data Memory Access Timing...32

CS 320. Computer Architecture Core Architecture

VRS570 32K Flash, 1kB RAM, 25~40MHz, 8-Bit MCU VRS580 64K Flash, 1kB RAM, 25~40MHz, 8-Bit MCU

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution

DC6388EMT User Manual

8051 MICROCONTROLLER WITH 64K FLASH AND ISP. Latch PSW ALU. Latch. Instruction Decoder & Sequencer. Bus&Clock Controller. Port 4. Latch.

Preliminary W77E58 8 BIT MICROCONTROLLER. Table of Contents-- Publication Release Date: March Revision A1


8-Bit Microcontroller with 8K Bytes QuickFlash Memory

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

W77LE58/W77L058A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- Publication Release Date: April 17, Revision A7

W77IE58 8-BIT MICROCONTROLLER. Table of Contents-- Publication Release Date: December Revision A2

SH57K12. High Performance 8031 Microcontroller. Preliminary. Features. General Description

Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports.

80C51 Block Diagram. CSE Overview 1

Handshake Solutions. HT80C51 User Manual

W78ERD2 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

The Timers/Counters The Serial Interface The Interrupt System Reset P0.0-P0.7 P2.0-P2.7. Port 2 Drivers. Port 2 Latch

Fig 1. Block diagram of a microcomputer

8-BIT MICROCONTROLLER

High-Speed Microcontroller User s Guide

FlashFlex MCU SST89E52RC / SST89E54RC

CHAPTER TIMER PROGRAMMING

ADV 80S32 V /05/01. Description

8-Bit Microcontroller with 8K Bytes Flash AT89S8252. Features. Description

MICROCONTROLLER UNIT 1

W77E532/W77E532A DATA SHEET 8-BIT MICROCONTROLLER. Table of Contents-

8051 Embedded Microcontroller STK Data Sheet

8-bit Microcontroller with 12K Bytes Flash and 2K Bytes EEPROM AT89S8253

MPC89E515A. 8-bit micro-controller

UNIT MICROCONTROLLER

C511/C511A C513/C513A C513A-H 8-Bit CMOS Microcontroller. User s Manual Semiconductor/

C509-L 8-Bit CMOS Microcontroller. User's Manual Semiconductor/

8XC151SA and 8XC151SB Hardware Description

W77E058A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

VRS540-4kB Flash, 128B RAM, 25~40MHz, 8-Bit MCU

89C51RC+/RD+ 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512 1K RAM

Embedded Controller Programming

VRS550-8kB Flash, 256B RAM, 25~40MHz, 8-Bit MCU VRS560-16kB Flash, 256B RAM, 40MHz, 8-Bit MCU

Preliminary W77C32 8 BIT MICROCONTROLLER GENERAL DESCRIPTION FEATURES

MODULE-1. Short Answer Questions

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

8-Bit CMOS Microcontorller

TS80C52X2. 8-bit CMOS Microcontroller 0-60 MHz. Preliminary. 1. Description. 2. Features

FlashFlex51 MCU SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2 SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2

INTEGRATED CIRCUITS P83C660X2, P87C660X2 P83C661X2, P87C661X2

Transcription:

PGT302 Embedded Software Technology 1

PART 4 Hardware Platform 2 2

Objectives for Part 4 Need to DISCUSS and ANALYZE the following topics: Board (GTUC51B001) specifications startup sequence, bootloader Microcontroller (8051) details Features: I/O, Timer, Interrupt Compare GTUC51B001 / P89V51RD2 against Raspberry Pi / BCM2835 3

GTUC51B001 Basic Microcontroller Board based on Intel 8051 core Used in Embedded Systems Design e.g. B.Eng. (Computer Engineering) @UniMAP classic usage in systems development Cost effective solution still available in DIP package (easier to develop and maintain) with high frequency variations, capable of solving many (if not most) practical applications 4

Platform Specifications GTUC51B001 NXP's P89V51RB2/RC2/RD2 FTDI FT232RL (USB-RS232 Converter) IO with some specific functions (UART, SPI) Powered using DC adapter OR USB (FTDI) Optional extension board GTUC51X001 stackable, shared power lines 16x2 Text LCD, 8-bit serial ADC, keypad interface switches, LEDs 5

Startup sequence @bootstrap Like all 8051 cores, starts at address 0x0000 original 8051 has 4K EPROM P89V51 has flash memory at 0x0000 RB2/RC2/RD2 with 16/32/64kB blocks (Block 0) separate 8kB boot block (Block 1) send character 'U' to trigger Block 1 used set baud rate (auto-baud) On-chip bootloader no need for separate programming board/circuit uses Intel HEX format 6

Microcontroller Details P89V51RB2/RC2/RD2 8-bit microcontroller based on 8051 core 16/32/64kB flash user memory 5V op. voltage, 0-40MHz op. frequency X2 mode (6 clock per instruction, normal 12) SPI, enhanced UART Programmable Counter Array (PCA) with PWM and capture/compare functions Programmable watchdog timer Low power modes 7

P89V51 Address Map 8

P89V51 Memory Organization Internal 1kB RAM lower 128B (00 7F) direct/indirect address upper 128B (80 FF) indirect address ONLY SFR (80 FF) direct address ONLY expanded RAM (NXP feature) 768B (000-2FF) indirect address ONLY using movx (declared as xdata in C) clearing EXTRAM bit (SFR) Can still address external 64kB not really needed for RD2 variant 9

P89V51 Registers General Purpose 4 banks of 8x8-bit registers lowest 32 bytes on-chip RAM active bank access as R0-R7 the others can be accessed as RAM Special Function Registers refer next slide... 30 7F General Purpose Ram 2F 7F 7E 7D 7C 7B 7A 79 78 2E 77 76 75 74 73 72 71 70 2D 6F 6E 6D 6C 6B 6A 69 68 2C 67 66 65 64 63 62 61 60 2B 5F 5E 5D 5C 5B 5A 59 58 2A 57 56 55 54 53 52 51 50 29 4F 4E 4D 4C 4B 4A 49 48 28 47 46 45 44 43 42 41 40 27 3F 3E 3D 3C 3B 3A 39 38 26 37 36 35 34 33 32 31 30 25 2F 2E 2D 2C 2B 2A 29 28 24 27 26 25 24 23 22 21 20 23 1F 1E 1D 1C 1B 1A 19 18 22 17 16 15 14 13 12 11 10 21 0F 0E 0D 0C 0B 0A 09 08 20 07 06 05 04 03 02 01 00 18 1F Register Bank 3 10 17 Register Bank 2 08 0F Register Bank 1 00 07 Register Bank 0 10

P89V51 Registers (cont.) F8 FF F0 B F7 E8 EF E0 ACC E7 D8 DF D0 PSW D7 C8 (T2CON) (RCAP2L) (RCAP2H) (TL2) (TH2) CF C0 C7 B8 IP BF B0 P3 B7 A8 IE AF A0 P2 A7 98 SCON SBUF 9F 90 P1 97 88 TCON TMOD TL0 TL1 TH0 TH1 8F 80 P0 SP DPL DPH PCON 87 Bit/Byte addressable registers Byte only addressable registers 11

40-pin package 32-pins (4 I/O ports) 2-pin (V CC /V SS ) P89V51 40-pin DIP ALE EA (External Address) XTAL1, XTAL2 PSEN (Read EXT code) RST Some alternate functions UART, SPI 12

4x8-bits I/O Ports 1 register per port P0@80H, P1@90H, P2@A0H, P3@B0H all pins have alternate functions P0 open drain/collector P1,P2,P3 has internal pull-ups P89V51 IO Pins 13

P89V51 Timer 2x16-bit timers/counters (T0, T1) timer function triggers every machine cycle (i.e. for 6 clock machine cycle, 1/6 oscillator frequency) counter function triggers with external input pins (T0 / T1) each with 4 operating modes mode 0: 13-bit timer with pre-scaler mode 1: 16-bit timer/counter mode 2: 8-bit auto-reload (TH reload value) mode 3: single timer (T1 NOT used) 1x16-bit timer/counter (T2) (NXP feature) 16-bit auto-reload, baud generator, etc. 14

P89V51 Timer (cont.) 15

P89V51 Timer (cont.) 16

P89V51 Interrupt 8 interrupt sources with 4 priority levels 2 external interrupts (pins T0,T1) 3 timer interrupts 1 serial (SPI,UART) interrupt PCA interrupt Brownout (power supply fluctuation) interrupt 17

P89V51 Interrupt (cont.) 18

Platform Comparison Compare BCM2835 against P89V51RD2 general performance I/O access timer facility interrupt facility Compare Raspberry Pi against GTUC51B001 programmability I/O interacing display interfacing application features 19

The End of Part 4 20