LPC2148 Programming Using BLUEBOARD

Slides:



Advertisements
Similar presentations
Programmable Interval Timer
Advertisements

Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
Chapter 2 HARDWARE SUMMARY
I/O Unit.
ARM development environment Modified Content Philips LPC2106 ARM chip ARM target board PSPad customised development environment Troubleshooting.
Slide 1 Freescale Semiconductor. Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are.
Chapter 14: System initialization CEG Microcomputer Systems CEG2400 Ch14. System initialization V3b 1.
Read Chapter 3 (David E. Simon, An Embedded Software Primer)
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
MS_uC / dnd / V VIC - Vectored Interrupts Programming Microcontroller VIC – Vectored interrupt controller Autumn term K Byte Burst Flash.
Micro-controller or embedded controller
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – System Control Refer to Chapter 6 in the reference book “Stellaris® LM3S9B96 Microcontroller.
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Clock Generation Module MTT CLOCK GENERATION MODULE (CGM)
1-1 SYS Module System Clocks FXTAL BCLK Reset Circuit Reset Conditions Bootstrap Initialization.
NS Training Hardware. System Controller Module.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
Camera Interfacing using ARM7
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
System Clocks.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
M Semiconductor Products Sector Computer Operating Properly Module Detail Slide #1 of 7 Tutorial Introduction PURPOSE -To explain how to configure and.
PS - 87C51Mx2 - SLS-1 Philips Semiconductors 87C51Mx2 Microcontroller.
MICROPROCESSOR INPUT/OUTPUT
Samsung ARM S3C4510B Product overview System manager
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
Intermediate 2 Computing Computer structure. Organisation of a simple computer.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the CPU architecture.
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
COMPUTER ORGANIZATIONS CSNB123 NSMS2013 Ver.1Systems and Networking1.
ARM Cortex-M0 August 23, 2012 Paul Nickelsberg Orchid Technologies Engineering and Consulting, Inc. CORTEX-M0 Structure Discussion.
SOC Consortium Course Material Core Peripherals National Taiwan University Adopted from National Chiao-Tung University IP Core Design.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
AT91 Memory Interface. 2 Features –Up to 8 programmable chip select lines –Remap Command allows dynamic exception vectors –Glue-less for both 8-bit and.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Computer operation is of how the different parts of a computer system work together to perform a task.
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
بسم الله الرحمن الرحيم MEMORY AND I/O.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
Computer Operating Properly Module MTT COMPUTER OPERATING PROPERLY MODULE (COP)
Memory Organisation & Modes of Operations By: Prof. Mahendra B. Salunke Asst. Prof., Department of Computer Engg, SITS, Pune-41
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
Amdahl’s Law & I/O Control Method 1. Amdahl’s Law The overall performance of a system is a result of the interaction of all of its components. System.
Components of a typical full-featured microcontroller.
Chap. 4 ARM Boot Loader Internals. 2 S3C2500 ARM940T Core module ARM9TDMI CoreIC.
1 The LPC1768 Architecture (with focus on Cortex-M3)
Chapter 14: System initialization
AT91 Power Management This training module describes the Power Management options provided by the AT91 family of microcontrollers. These options address.
HCS12 Exceptions Maskable Interrupts
Refer to Chapter 5 in the reference book
Subject Name: Microcontroller Subject Code: 10ES42
AT91 Memory Interface This training module describes the External Bus Interface (EBI), which generatesthe signals that control the access to the external.
嵌入式微控制器编程 Embedded Microcontroller Programming
Components of a CPU AS Computing - F451.
Pondicherry Engineering College
Presentation transcript:

LPC2148 Programming Using BLUEBOARD Enabling the ARM Learning in INDIA

AGENDA LPC214x Block Diagram Pin Diagram BlueBoard Schematic PIN Select Block General Purpose Input/Output First Program Enabling the ARM Learning in INDIA

Bus Structure In LPC2148 three types of busses are used to connect the core with other peripherals on chip. Local Bus to connect the onchip memory controllers and fast GPIO’s AMBA Advance High Performance Bus (AHB) for interrupt controller VLSI Peripheral Bus (VPB) for other onchip peripherals. AHB acts as a bridge for VPB. VPB is mainly meant for connect slower peripherals then that of processor. VPB can dive the peripherals at ¼ CPU clock frequency. Enabling the ARM Learning in INDIA

Bus Structure Enabling the ARM Learning in INDIA

Memory MAP To access any peripheral we need its address. The entire address space can be divided in to several sections. Enabling the ARM Learning in INDIA

Memory MAP Enabling the ARM Learning in INDIA

Memory Access Module The MAM block in the LPC2148 maximizes the performance of the ARM processor when it is running code in Flash memory, Two general methods for achieving code execution performance. Using RAM for code execution. Using Cache memory. Enabling the ARM Learning in INDIA

Memory Access Module The MAM block in the LPC2148 Enabling the ARM Learning in INDIA

Bootloader A small piece of software executed after every reset. This software is used to load the new user program in to the flash memory using any communication channel like UART, USB, Ethernet or CAN. For LPC2000 Series the Bootlader can be activated by maintaining low level on P0.14 while reset. Enabling the ARM Learning in INDIA

Bootloader ISP Philips microcontroller have a great feature called ISP (In System Programming). It enables the user to flash the microcontroller with an ease. In LPC2148 the ISP mode can be activated by maintaining low level on P0.14 while reset. Enabling the ARM Learning in INDIA

Boot Process Enabling the ARM Learning in INDIA

ISP Commands Enabling the ARM Learning in INDIA

Command Code in Decimals IAP In-Application (IAP) programming is performing erase and write operation on the on-chip flash memory, as directed by the end-user application code. The bootloader code provides API to access flash memory from the user program. The API are called using their codes. IAP Command Command Code in Decimals Prepare sector(s) for write operation 50 Copy RAM to Flash 51 Erase sector(s) 52 Blank check sector(s) 53 Read Part ID 54 Read Boot code version 55 Compare 56 Reinvoke ISP 57 Enabling the ARM Learning in INDIA

Phased Lock Loop PLL is a closed loop control system to generate high frequency by multiplying with given factor to the input frequency. Div Fout Fin Basic PLL Block Diagram Mul In LPC2148 microcontrollers there are 2 PLLs which provides programmable frequencies to the CPU and USB system. The input clock frequency to PLL0 and PLL1 is in the range of 10MHz to 25 MHz only. It is multiplied up the range of 10MHz to 60MHz for CCLK and 48MHz for the USB cock using Current Controlled Oscillator (CCO). Enabling the ARM Learning in INDIA

PLL Programming PLL Registers Gen. Name Description PLL0 PLL1 PLLCON PLL Control Register. Holding register for updating PLL control bits 0xE01F C080 PLL0CON 0xE01F C0A0 PLL1CON PLLCFG PLL Configuration Register. Holding register for updating PLL configuration values 0 0xE01F C084 PLL0CFG 0xE01F C0A4 PLL1CFG PLLSTAT PLL Status Register. Read-back register for PLL control and configuration information 0xE01F C088 PLL0STAT 0xE01F C0A8 PLL1STAT PLLFEED PLL Feed Register. This register enables loading of the PLL control and configuration information from the PLLCON and PLLCFG registers into the shadow registers that actually affect PLL operation. 0xE01F C08C PLL0FEED 0xE01F C0AC PLL1FEED Detail Register Bits LPC214X User Manual Page 27 Enabling the ARM Learning in INDIA

PLL Programming Programming Steps: Select the desired operating frequency for your system ( Processor operating frequency) CCLK. Check the oscillator connected to the controller on board. (FOSC) Calculate the value of PLL multiplier “M”. CCLK = M × FOSC Find the value of PLL Divider “P” in such a way that is in the range of 156 MHz to 320 MHz. 156 < FCCO < 320 = CCLK x 2 x P Write the values PLLCON and PLLCFG. Write the PLLFEED Values 0xAA and 0x55. Wait for PLL to lock. Connect the PLL. Enabling the ARM Learning in INDIA

VBP Divider VLSI Bus connected to various peripherals can be operated at different speeds using the VBP Divider. The VPB Divider serves two purposes: 1. Provides peripherals with desired PCLK via VPB bus, the VPB bus may be slowed down to one half or one fourth of the processor clock rate 2. VPB Divider allow power savings when an application does not require any peripherals to run at the full processor rate. Enabling the ARM Learning in INDIA

VBP Divider VPBDIV registers least 2 significant bits can be changed for desired PCLK Peripherals on LPC2000 series can run at the full 60 MHz clock. Enabling the ARM Learning in INDIA

POWER CONTROL LPC214x support two reduced power modes Idle mode and Power-down mode. Idle Mode: The CPU stops execution is suspended until a Reset or Interrupt from peripheral occurs. Peripheral runs in idle mode and may generate interrupts to resume the CPU execution. Power-Down Mode: The oscillator is shutdown and the chip receives no internal clocks. All the information of current execution state is preserved in this mode. A Reset signal or External Interrupt can terminate the power-down mode. PCON Register: Bit 0 : When set to 1, causes the processor clock to be stopped. Bit 1 : When set to 1, causes the on-chip clock to be stopped. In LPC214x the power down mode have dependency on USB Block Enabling the ARM Learning in INDIA

Peripheral Power Control LPC2000 peripherals can be turned of individually using the PCONP Register bits setting, to save the power. Few peripherals like GPIO, Watchdog timer, Pin connect block and System Control block cannot be turned off. After reset the PCONP contains the value to enable all peripherals, so no need to configure PCONP bits in-order to use any peripheral. Page 37 LPC2148 User Manual Enabling the ARM Learning in INDIA

INTERRUPT SYSTEM Interrupt System • ARM PrimeCell™ Vectored Interrupt Controller • 32 interrupt request inputs • 16 vectored IRQ interrupts • 16 priority levels dynamically assigned to interrupt requests • Software interrupt generation Enabling the ARM Learning in INDIA

? Enabling the ARM Learning in INDIA