Table of Contents List of Figures... 2 List of Tables Introduction Main features Function description On-chip Flash memo
|
|
- Elfreda Newton
- 6 years ago
- Views:
Transcription
1 GigaDevice Semiconductor Inc. GD32F103xx ARM 32-bit Cortex -M3 MCU Application Note AN002
2 Table of Contents List of Figures... 2 List of Tables Introduction Main features Function description On-chip Flash memory Reading the Flash memory Programming the Flash memory Erasing the Flash memory Option bytes features Page protection Registers Flash FMCU flag register (FLASH_FMCUFR) Flash option byte flag register (FLASH_OBFR) Flash operation status register (FLASH_OSR) Flash operation control register (FLASH_OCR) Flash target address register (FLASH_TAR) Flash option byte status register (FLASH_OBSR) Flash write protection register (FLASH_WPTR) Revision history / 17
3 List of Figures Figure 1. Flash module organization... 5 Figure 2. Flash programming flowchart... 7 Figure 3. Flash page erase operation flowchart... 8 Figure 4. Flash mass erase operation flowchart / 17
4 List of Tables Table 1. Flash module organization... 5 Table 2. Boot modes... 5 Table 3. Option bytes memory map... 9 Table 4. Revision history / 17
5 1 Introduction The Flash Memory Control Unit (FMCU) provides the on-chip Flash memory of GD32F103xx device with all the necessary functions for routinely updated and re-programmed. Benefit from the Flash technology and innovative system architecture, the CPU waiting time which will cause CPU instruction execution delays has been eliminated and realized zero wait. Flash Memory operation as half-word program and word page erase functions are also described in this document. 2 Main features Up to 128 KB of on-chip Flash memory (128 pages, each page size of 1KB) for storing instruction/data and options Page read accesses can be performed 32 bits per cycle with zero wait state Page erase and mass erase capability Half-word (16 bits) program Interrupt function to indicate end of flash memory operations or an error occurs Page erase/program protection functions to prevent unwilling read/write operations on the Flash memory. 3 Function description 3.1 On-chip Flash memory The GD32F103xx series of devices provide up to 128 KB of on-chip flash memory. Read accesses can be performed 32 bits per cycle without any wait state. Besides, all of byte, half-word (16 bits) and word (32 bits) read accesses are supported. The flash memory can be programmed half-word (16 bits) or word (32 bits) at a time. Each page of the flash memory can be erased individually. The whole flash memory space except information blocks can be erased at a time. A data storage or firmware upgrade can be implemented using several methods such as In System Programming (ISP), In Application Programming (IAP) or In Circuit Programming (ICP). The following figure is the Flash memory map of the GD32F103xx in which the address ranges from 0x to 0x1FFF FFFF (0.5 GB). The address from 0x1FFF F000 to 0x1FFF F7FF as system memory is mapped to the boot loader block with a capacity of 2 KB. Additionally, the region addressed from 0x1FFF F800 to 0x1FFF F80F is the option bytes with a capacity of 16 B. The memory organization mapping view is shown as below. 4 / 17
6 Figure 1. Flash module organization 0x1FFF FFFF 0x1FFF F80F 0x1FFF F800 0x1FFF F000 Reserved Option Bytes System memory Reserved 0x0801 FFFF 0x x Flash memory Aliased to Flash or system memory by BOOT pins configuration The flash memory consists of up to 128 KB main flash organized into 128 pages with 1 KB capacity per page and a 2 KB information block for the boot loader. The following table shows details. Table 1. Flash module organization Block Name Address Size Page 0 0x x FF 1 Kbytes Page 1 0x x FF 1 Kbytes Main Flash Block Page 2 0x x0800 0BFF 1 Kbytes Page 127 0x0801 FC00-0x0801 FFFF 1 Kbytes Information Block System memory 0x1FFF F000-0x1FFF F7FF 2 Kbytes Option Bytes 0x1FFF F800-0x1FFF F80F 16 bytes The GD32F103xx provides three kinds of boot sources which can be selected using the BOOT1 and BOOT0 pins. The values on the BOOT pins are latched on the 4th rising edge of SYSCLK after a reset. It is up to the user to set the BOOT1 and BOOT0 pins after a power-on reset or a system reset to select the required boot source. The details are shown in the following table. Table 2. Boot modes Boot mode selection pins Selected boot source Boot1 Boot0 Main Flash Memory x 0 System Memory 0 1 On-chip SRAM / 17
7 After power-on sequence or a system reset, the ARM Cortex -M3 processor fetches the top-of-stack value from address 0x and the base address of boot code from 0x in sequence. Then, it starts executing code from the base address of boot code. Due to the selected boot source, either the main flash memory (original memory space beginning at 0x ) or the system memory (original memory space beginning at 0x1FFF F000) is aliased in the boot memory space which begins at the address 0x When the on-chip SRAM whose memory space is beginning at 0x is selected as the boot source, in the application initialization code, you have to relocate the vector table in SRAM using the NVIC exception table and offset register. The embedded boot loader is located in the system memory, which is used to reprogram the Flash memory. In GD32F103xx devices, the boot loader can be activated through the USART1 interface. 3.2 Reading the Flash memory The Flash memory access is performed through the AHB bus and can be addressed directly. Reading operation accesses the requested data of the content of the Flash memory by steps of read sequence, which under control of the hardware read interface in FMCU. 3.3 Programming the Flash memory After system reset, the FMCU function is protected. There needs an unlocking sequence to write value into FLAG1 and FLAG2 of the FLASH_FMCUFR register to enable the FMCU function and access the FLASH_OCR register. The GD32F103xx provides a half-word (16 bits) programming function which is used to modify the Flash memory contents at a time. The following steps show the half word programming operation register access sequence. Check the BUSY bit in the FLASH_OSR register to confirm that no Flash memory operation is in progress. Set the PG bit in the FLASH_OCR register to write the page program command Write the half-word (16 bits) data to the target address Wait until the operations have been completed by checking the reset of the BUSY bit in the FLASH_OSR register Read and verify the programmed page 6 / 17
8 Figure 2. Flash programming flowchart START Is BUSY equal to 1? No Set PG=1 to send command Write half-word data to addr Is BUSY equal to 1? No Read and verify 3.3 Erasing the Flash memory Page erase A page of the Flash memory can be erased using the Page Erase feature of the FMCU. Each page can be erased independently without affecting the contents of other pages. The following steps show the access sequence of the register for a page erase operation. Check the BUSY bit in the FLASH_OSR register to confirm that no Flash memory operation is in progress. Set the PER bit in the FLASH_OCR register to write the page erase command Write the FLASH_TAR register to select page of which to be erased Set the START bit in the FLASH_OCR register to trigger the erase operation Wait until the operations have been completed by checking the reset of the BSY bit in the FLASH_OCR register Read and verify the erased page 7 / 17
9 Figure 3. Flash page erase operation flowchart START Is BUSY equal to 1? No Set PER=1 to send command Write Addr to select page Set START=1 to start page rease Is BUSY equal to 1? No Read and verify Mass erase The user pages of the Flash memory can also be completely erase using the mass erase function. The following steps show the mass erase register access sequence. Check the BUSY bit in the FLASH_OSR register to confirm that no Flash memory operation is in progress. Set the MER bit in the FLASH_OCR register to write the mass erase command Set the START bit in the FLASH_OCR register to trigger the erase operation Wait until the operations have been completed by checking the reset of the BSY bit in the FLASH_OCR register Read and verify the erased page 8 / 17
10 Figure 4. Flash mass erase operation flowchart START Is BUSY equal to 1? No Set MER=1 to send command Set START=1 to start page rease Is BUSY equal to 1? No Read and verify 3.4 Option bytes features The option byte block can be treated as an independent Flash memory in which the base address is 0x1FFF F800. The following table shows the functional description and the memory map of the option byte. Table 3. Option bytes memory map Address Fields Option Bytes Description Bit [31:24] nuser User option byte (stored in FLASH_OBSR[9:2]) Bit [23:16] USER Bit 18 nrst_stdby 0: Reset when entering Standby mode. 1: No reset. 0x1FFF 0: Reset when entering deep-sleep mode Bit17 nrst_dslep F800 1: No reset. Bit 16 WDG_SW 0: Hardware watchdog 1: Software watchdog Bits [15:8] nrdp Bits [7:0] RDP Read protection option byte Bits [31:24]: ndata1 For user data storage. 0x1FFF Bits [23:16]: Data1 (stored in FLASH_OBSR[25:18]) F804 Bits [15:8]: ndata0 For user data storage. Bits [7:0]: Data0 (stored in FLASH_OBSR[17:10]) 9 / 17
11 0x1FFF F808 0x1FFF F80C Bits [31:24]: Bits [23:16]: Bits [15:8]: Bits [7:0]: Bits [31:24]: Bits [23:16]: Bits [15:8]: Bits [7:0]: nwrp1 WRP1 nwrp0 WRP0 nwrp3 WRP3 nwrp2 WRP2 Flash memory write protection option bytes (stored in FLASH_WPTR[15:8]) Use 1 bit to protect 4 pages of 1 Kbyte in main memory block, that can protects pages 32 to 63 0: Write protection active 1: Write protection not active Flash memory write protection option bytes (stored in FLASH_WPTR[7:0]) Use 1 bit to protect 4 pages of 1 Kbyte in main memory block, that can protects pages 0 to 31 0: Write protection active 1: Write protection not active Flash memory write protection option bytes (stored in FLASH_WPTR[31:24]) Use 1 bit to protect 4 pages of 1 Kbyte in main memory block, that can protects pages 96 to 127 0: Write protection active 1: Write protection not active Flash memory write protection option bytes (stored in FLASH_WPTR[23:16]) Use 1 bit to protect 4 pages of 1 Kbyte in main memory block, that can protects pages 64 to 95 0: Write protection active 1: Write protection not active 3.5 Page protection The GD32F103xx provides page erase/program protection functions to prevent unwilling read/write operations on the Flash memory Read protection Read protection is enabled by setting the RDP option byte and need a power on reset to reload the new RDP option byte after that. Read protection is disabled by erasing the entire option byte area and program the correct RDP code 0x00A5 to the unprotect memory, then need a power on reset to reload the new RDP option byte after that Write protection Write protection is enabled by configuring the WRP[3:0] option bytes, and need a power on reset to reload the new WRPx option bytes after that. Write protection is disabled by erasing the entire option byte area using the OBER bit in the FLASH_OCR register and program the correct RDP code 0x00A5 to the unprotect memory, 10 / 17
12 then need a power on reset to reload the new WDPx option byte after that. 4 Registers 4.1 Flash FMCU flag register (FLASH_FMCUFR) Address offset: 0x04 Reset value: xxxx xxxx FMCUFR[31:16] w w w w w w w W w w w w w w w w FMCUFR[15:0] w w w w w w w w w w w w w w w w Bits Fields Descriptions 31:0 FMCUFR FMCU flag These bits map to the flags for FMCU unlocking. 4.2 Flash option byte flag register (FLASH_OBFR) Address offset: 0x08 Reset value: xxxx xxxx OBFR[31:16] w w w w w w W w w w w w w w w w OBFR[15:0] w w w w w w w w w w w w w w w w Bits Fields Descriptions 31:0 OBFR Option byte flag These bits represent the flags to unlock the OPTWR 4.3 Flash operation status register (FLASH_OSR) Address offset: 0x0C Reset value: 0x / 17
13 Reserved Reserved EOP WPT ERR Res. PG ERR Res. BUSY rw rw rw r Bits Fields Descriptions 31:6 Reserved must be kept cleared 5 EOP End of operation, set by hardware when programming / erase is completed. Reset by writing 1. 4 WPTERR Set by hardware when programming a write-protected address of the Flash memory. Reset by writing 1. 3 Reserved must be kept cleared 2 PGERR Programming error. Set by hardware when an address to be programmed contains a value different from '0xFFFF' before programming. Reset by writing 1. 1 Reserved must be kept cleared 0 BUSY Busy. Represent Flash operation is in progress. 4.4 Flash operation control register (FLASH_OCR) Address offset: 0x10 Reset value: 0x Reserved Reserved EOPIE Res. ERRIE OBWE Res. LCK START OBER OBPG Res. MER PER PG rw rw rw rw rw rw rw rw rw rw Bits Fields Descriptions 31:13 Reserved must be kept cleared 12 EOPIE End of operation interrupt enable, when the EOP bit in FLASH_OSR register goes to 1. 0: Interrupt disabled 1: Interrupt enabled 11 Reserved must be kept cleared 10 ERRIE Error interrupt enable on an FMCU error (when PGERR / WPTERR are set in the FLASH_OSR register). 0: Interrupt disabled 1: Interrupt enabled 9 OBWE Option bytes write enable 12 / 17
14 1: option bytes can be programmed. Set on writing the correct key sequence to the FLASH_OBFR register. 8 Reserved must be kept cleared 7 LCK Lock Set to 1 to indicate that the FMCU and FLASH_OCR are locked. Reset by hardware after detecting the unlock sequence. 6 START Start. Set to 1 to trigger an ERASE operation. Set only by software and reset when the BSY bit is reset. 5 OBER Option byte erase 1: Option byte erase enable. 4 OBPG Option byte programming 1: Option byte programming enable. 3 Reversed must be kept cleared. 2 MER Mass erase 1: Mass erase enable. 1 PER Page erase 1: Page Erase enable. 0 PG Programming 1: Flash programming enable. 4.5 Flash target address register (FLASH_TAR) Address offset: 0x14 Reset value: 0x FTAR[31:16] w w w w w w w w w w w w w w w w FTAR[15:0] w w w w w w w w w w w w w w w w Bits Fields Descriptions 31:0 FTAR Flash target address The target address to program when using programming, or a page to erase when using page erase. 13 / 17
15 4.6 Flash option byte status register (FLASH_OBSR) Address offset 0x1C Reset value: 0x03FF FFFC Reversed Data1 Data0 r r r r r r r r r r Data0 Reserved nrst_ STDBY nrst_ STOP r r r r r r r r r r r r r r r r WDG SW RPT OBERR Bits Fields Descriptions 31:25 Reserved must be kept cleared 25:18 Data1 User data 17:10 Data0 User data 9:5 Reversed must be kept cleared 5:2 USER User option bytes, loaded by the OBL, including: Bit 4: nrst_stdby Bit 3: nrst_stop Bit 2: WDGSW 1 RPT Read protection 0: read protection disable 1: read protection enable 0 OBERR Option byte error 1: the loaded option byte error, read as 0xFF in the FLASH_OBSR or FLASH_WPTR register. 4.7 Flash write protection register (FLASH_WPTR) Address offset: 0x20 Reset value: 0xFFFF FFFF WPT[31:16] r r r r r r r r r r r r r r r r WPT[15:0] r r r r r r r r r r r r r r r r 14 / 17
16 Bits Fields Descriptions 31:0 WPT Write protection option bytes, loaded by the OBL 0: Write protection enable 1: Write protection disable 15 / 17
17 5 Revision history Table 4. Revision history Revision No. Description Date 1.0 Initial Release Mar.8, / 17
PM0063 Programming manual
Programming manual STM32F100xx value line Flash programming Introduction This programming manual describes how to program the Flash memory of low-density (STM32F100x4, STM32F100x6), medium-density STM32F100xx
More informationPM0042 Programming manual
Programming manual STM32F10xxx Flash programming Introduction This programming manual describes how to program the Flash memory of STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and STM32F107xx microcontrollers
More informationPM0062 Programming manual
Programming manual STM32L151xx and STM32L152xx Flash and EEPROM programming Introduction This programming manual describes how to program the Flash memory of the STM32L151xx and STM32L152xx microcontrollers.
More informationPM0081 Programming manual STM32F40xxx and STM32F41xxx Flash programming manual Introduction
Programming manual STM32F40xxx and STM32F41xxx Flash programming manual Introduction This programming manual describes how to program the Flash memory of STM32F405xx, STM32F407xx, STM32F415xx, and STM32F417xx
More informationKinetis Bootloader to Update Multiple Devices in a Field Bus Network
Freescale Semiconductor, Inc. Document Number: AN5204 Application Note Rev. 0, 01/2016 Kinetis Bootloader to Update Multiple Devices in a Field Bus Network 1. Introduction This application note describes
More informationImplementing In-Application Programming on the ADuC702x
Implementing In-Application Programming on the ADuC702x By Johnson Jiao [Johnson.Jiao@analog.com] and Raven Xue [Raven.Xue@analog.com] Background The ADuC702x Precision Analog Microcontroller provides
More informationHello, and welcome to this presentation of the STM32 Flash memory interface. It covers all the new features of the STM32F7 Flash memory.
Hello, and welcome to this presentation of the STM32 Flash memory interface. It covers all the new features of the STM32F7 Flash memory. 1 STM32F7 microcontrollers embed up to 2 Mbytes of Flash memory.
More informationAN5123 Application note
Application note STSPIN32F0A - bootloader and USART protocol Introduction Cristiana Scaramel The STSPIN32F0A is a system-in-package providing an integrated solution suitable for driving three-phase BLDC
More informationShedding too much Light on a Microcontroller s Firmware Protection. Johannes Obermaier, Stefan Tatschner, August 15, 2017
Shedding too much Light on a Microcontroller s Firmware Protection Johannes Obermaier, Stefan Tatschner, August 15, 2017 Shedding too much Light on a Microcontroller s Firmware Protection Microcontrollers
More informationHello, and welcome to this presentation of the STM32F7 System Configuration Controller.
Hello, and welcome to this presentation of the STM32F7 System Configuration Controller. 1 STM32F7 microcontrollers feature a set of configuration registers. The System Configuration Controller gives access
More informationMegawin 8051 ISP via COM Port
Megawin 8051 ISP via COM Port User Manual By Vincent Y. C. Yu This document information is the intellectual property of Megawin Technology Co., Ltd. 1 Contents 1 What is ISP... 3 2 Chip Configuration for
More informationContents. Cortex M On-Chip Emulation. Technical Notes V
_ Technical Notes V9.12.225 Cortex M On-Chip Emulation Contents Contents 1 1 Introduction 2 2 Access Breakpoints 3 3 Trace 5 4 NXP LPC 5 4.1 Boot and Memory Remapping 5 4.2 LPC17xx Startup 5 4.1 LPC11A02/04
More informationHello and welcome to this Renesas Interactive module that covers the Independent watchdog timer found on RX MCUs.
Hello and welcome to this Renesas Interactive module that covers the Independent watchdog timer found on RX MCUs. 1 This course covers specific features of the independent watchdog timer on RX MCUs. If
More informationEE251: Thursday November 15
EE251: Thursday November 15 Major new topic: MEMORY A KEY topic HW #7 due today; HW #8 due Thursday, Nov. 29 Lab #8 finishes this week; due week of Nov. 26 All labs MUST be completed/handed-in by Dec.
More informationUM LPC5410x User Manual. Document information. LPC5410x, ARM Cortex-M4, ARM Cortex-M0+, microcontroller, sensor hub
LPC541x User manual Rev. 2.5 25 April 217 User manual Document information Info Keywords Abstract Content LPC541x, ARM Cortex-M4, ARM Cortex-M+, microcontroller, sensor hub LPC541x User Manual LPC541x
More informationAN LPC1700 secondary USB bootloader. Document information. LPC1700, Secondary USB Bootloader, ISP, IAP
LPC1700 secondary USB bootloader Rev. 01 8 September 2009 Application note Document information Info Keywords Abstract Content LPC1700, Secondary USB Bootloader, ISP, IAP This application note describes
More informationAVR Microcontrollers Architecture
ก ก There are two fundamental architectures to access memory 1. Von Neumann Architecture 2. Harvard Architecture 2 1 Harvard Architecture The term originated from the Harvard Mark 1 relay-based computer,
More informationSTM32 MICROCONTROLLER
STM32 MICROCONTROLLER Lecture 2 Prof. Yasser Mostafa Kadah Harvard and von Neumann Architectures Harvard Architecture a type of computer architecture where the instructions (program code) and data are
More informationThe 9S12 in Expanded Mode - Using MSI logic to build ports Huang Chapter 14
The 9S12 in Expanded Mode - Using MSI logic to build ports Huang Chapter 14 Using MSI Logic To Build An Output Port Many designs use standard MSI logic for microprocessor expansion This provides an inexpensive
More informationChapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware
More informationMICROPROCESSOR BASED SYSTEM DESIGN
MICROPROCESSOR BASED SYSTEM DESIGN Lecture 5 Xmega 128 B1: Architecture MUHAMMAD AMIR YOUSAF VON NEUMAN ARCHITECTURE CPU Memory Execution unit ALU Registers Both data and instructions at the same system
More informationIP-48DAC channel 16-bit Digital/Analog Converter With memory Industry Pack Module PROGRAMMING MANUAL Version 1.
IP-48DAC-16 48-channel 16-bit Digital/Analog Converter With memory Industry Pack Module PROGRAMMING MANUAL 828-10-000-4000 Version 1.0 January 2007 ALPHI TECHNOLOGY CORPORATION 1898 E. Southern Ave Tempe,
More informationKeywords: maxq microcontrollers, data flash, in-application programming, in circuit programming, flash, microcontroller, MAXQ7663, MAXQ7664
Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 3569 Keywords: maxq microcontrollers, data flash, in-application programming, in circuit programming, flash, microcontroller,
More informationAPPLICATION NOTE 3575 In-Application Programming (IAP) of the MAXQ7665 Sector-Erasable Program and Data Flash
Maxim > Design Support > Technical Documents > Application Notes > Automotive > APP 3575 Maxim > Design Support > Technical Documents > Application Notes > Basestations/Wireless Infrastructure > APP 3575
More informationHello, and welcome to this presentation of the STM32L4 System Configuration Controller.
Hello, and welcome to this presentation of the STM32L4 System Configuration Controller. 1 Please note that this presentation has been written for STM32L47x/48x devices. The key differences with other devices
More informationAN2606 Application note
Application note STM32 microcontroller system memory boot mode Introduction The bootloader is stored in the internal boot ROM memory (system memory) of STM32 devices. It is programmed by ST during production.
More informationErrata details published in this document refer to the following silicon: netx100, Revision A (Step A, ROM Rev. 2, Boot loader major vers.
1/10 A. Affected Silicon Revision Errata details published in this document refer to the following silicon: netx100, Revision A (Step A, ROM Rev. 2, Boot loader major vers. 0x41) B. Document Revision History
More informationEE 308 Spring Lecture 28 March 30, 2012 Review for Exam 2. Introduction to the MC9S12 Expanded Mode
Lecture 28 March 30, 2012 Review for Exam 2 Introduction to the MC9S12 Expanded Mode 1 Review for Exam 2 1. C Programming (a) Setting and clearing bits in registers PORTA = PORTA 0x02; PORTA = PORTA &
More informationARM Cortex-M4 Architecture and Instruction Set 1: Architecture Overview
ARM Cortex-M4 Architecture and Instruction Set 1: Architecture Overview M J Brockway January 25, 2016 UM10562 All information provided in this document is subject to legal disclaimers. NXP B.V. 2014. All
More informationEE 354 Fall 2015 Lecture 1 Architecture and Introduction
EE 354 Fall 2015 Lecture 1 Architecture and Introduction Note: Much of these notes are taken from the book: The definitive Guide to ARM Cortex M3 and Cortex M4 Processors by Joseph Yiu, third edition,
More informationAN4325 Application note
Application note Getting started with STM32F030xx and STM32F070xx series hardware development Introduction This application note is intended for system designers who require a hardware implementation overview
More information2. ORDERING INFORMATION
1. FEATURES Single supply voltage 2.7V-3.6V Fast access time: 70/90 ns 4,194,304x8 / 2,097,152x16 switchable by BYTE pin Compatible with JEDEC standard - Pin-out, packages and software commands compatible
More informationAN4045 Application note
Application note STM32F3 series in-application programming (IAP) using the USART Introduction An important requirement for most Flash-memory-based systems is the ability to update the firmware when installed
More informationUsing MSI Logic To Build An Output Port
Using MSI Logic To Build An Output Port Many designs use standard MSI logic for microprocessor expansion This provides an inexpensive way to expand microprocessors One MSI device often used in such expansions
More informationInfineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an
Microcontroller Basics MP2-1 week lecture topics 2 Microcontroller basics - Clock generation, PLL - Address space, addressing modes - Central Processing Unit (CPU) - General Purpose Input/Output (GPIO)
More informationEET2411 DIGITAL ELECTRONICS. A device or electrical circuit used to store a single bit (0 or 1) Ex. FF.
Chapter 12 - Memory Devices Digital information is easily stored Commonly used memory devices and systems will be examined Flip flops Registers VLSI and LSI memory devices The difference between main memory
More informationUM MPT612 User manual. Document information
Rev. 1 16 December 2011 User manual Document information Info Keywords Abstract Content ARM, ARM7, embedded, 32-bit, MPPT, MPT612 This document describes all aspects of the MPT612, an IC designed for applications
More informationDesign-in with AMD s Am29F010
Design-in with AMD s AmF00 Application Note by Kumar Prabhat Advanced Micro Devices This application note describes the key features and system level benefits of using AMD s AmF00,.0 Volt-only Sector Erase
More informationHT32 Series In-System / In-Application Programmer User Manual
In-System / In-Application Programmer User Manual Revision: V1.00 Date: July 14, 2011 Table of Contents 1 Introduction... 5 About This Document... 5 HT32 Flash Programmer Overview... 5 ISP and IAP Overview...
More informationAm29LV116D. 16 Megabit (2 M x 8-Bit) CMOS 3.0 Volt-only Boot Sector Flash Memory DISTINCTIVE CHARACTERISTICS
Am29LV116D 16 Megabit (2 M x 8-Bit) CMOS 3.0 Volt-only Boot Sector Flash Memory DISTINCTIVE CHARACTERISTICS Single power supply operation 2.7 to 3.6 volt read and write operations for battery-powered applications
More informationAN-881 APPLICATION NOTE
APPLICATION TE One Technology Way P.O. Box 9106 Norwood, MA 02062-9106, U.S.A. Tel: 781.329.4700 Fax: 781.461.3113 www.analog.com Flash/EE Memory Programming via LIN Protocol 4 by Aude Richard INTRODUCTION
More informationAN2606 Application note
Application note STM32F101xx, STM32F102xx and STM32F103xx system memory boot mode Introduction This application note describes the bootloader stored in the system memory of the STM32F101xx, STM32F102xx
More informationUM LPC2101/02/03 User manual. Document information
LPC2101/02/03 User manual Rev. 4 13 May 2009 User manual Document information Info Keywords Abstract Content LPC2101, LPC2102, LPC2103, ARM, ARM7, embedded, 32-bit, microcontroller LPC2101/02/03 User manual
More informationBoot Loader. Bootloader
October 2013 Boot Loader A program that is executed upon initial power-up that typically involves a power-on self-test, locating and initializing peripheral devices, and then loading and starting an operating
More informationMicrocontroller Systems. ELET 3232 Topic 11: General Memory Interfacing
Microcontroller Systems ELET 3232 Topic 11: General Memory Interfacing 1 Objectives To become familiar with the concepts of memory expansion and the data and address bus To design embedded systems circuits
More informationELC4438: Embedded System Design ARM Cortex-M Architecture II
ELC4438: Embedded System Design ARM Cortex-M Architecture II Liang Dong Electrical and Computer Engineering Baylor University Memory system The memory systems in microcontrollers often contain two or more
More informationM2351 Security Architecture. TrustZone Technology for Armv8-M Architecture
Architecture TrustZone Technology for Armv8-M Architecture Outline NuMicro Architecture TrustZone for Armv8-M Processor Core, Interrupt Handling, Memory Partitioning, State Transitions. TrustZone Implementation
More informationMegawin 8051 ISP-ICP Programmer
Megawin 8051 ISP-ICP Programmer User Manual By Vincent Y. C. Yu This document information is the intellectual property of Megawin Technology Co., Ltd. 1 Contents 1 Introduction... 3 1.1 Two-in-One Functions...
More informationAN Entering ISP mode from user code. Document information. ARM ISP, bootloader
Rev. 03 13 September 2006 Application note Document information Info Keywords Abstract Content ARM ISP, bootloader Entering ISP mode is normally done by sampling a pin during reset. This application note
More informationMemory Map for the MCU320 board:
Memory Map for the MCU320 board: The Intel 8051 MCUs and all derivatives are based on the Harvard architecture. This is to say that they have separate memory space for program (CODE) and external data
More informationAm29LV081B. 8 Megabit (1 M x 8-Bit) CMOS 3.0 Volt-only Uniform Sector Flash Memory DISTINCTIVE CHARACTERISTICS
Am29LV081B 8 Megabit (1 M x 8-Bit) CMOS 3.0 Volt-only Uniform Sector Flash Memory DISTINCTIVE CHARACTERISTICS Single power supply operation 2.7 to 3.6 volt read and write operations for battery-powered
More informationAN4491 Application note
Application note BlueNRG, BlueNRG-MS updater Introduction Note: This document describes the updater functionality of BlueNRG and BlueNRG-MS devices. The document content is valid for both BlueNRG and BlueNRG-MS
More informationST7 FAMILY. FLASH Programming REFERENCE MANUAL
ST7 FAMILY FLASH Programming REFERENCE MANUAL Rev. 2 May 2005 1 USE IN LIFE SUPPORT DEVICES OR SYSTEMS MUST BE EXPRESSLY AUTHORIZED. STMicroelectronics PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS
More informationABSTRACT. Table of Contents
ABSTRACT This application note describes how to communicate with the Hercules CAN boot loader. The CAN boot loader is a small piece of code that can be programmed at the beginning of flash to act as an
More information1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.
(1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic
More informationAN4838. Managing memory protection unit (MPU) in STM32 MCUs. Application note. Introduction
Application note Managing memory protection unit (MPU) in STM32 MCUs Introduction This application note describes how to manage the MPU in the STM32 products which is an optional component for the memory
More informationEEPROM Emulation with the ez80f91 MCU. Discussion
Application Note EEPROM Emulation with the ez80f91 MCU AN015803-0608 Abstract This Application Note describes a method to utilize a portion of Zilog s ez80acclaimplus! MCU s Flash memory to emulate the
More informationRACCOON ISP RACCOON ISP. Author: Gilles Labarre Date: February, Ref: RACCOON Rev: 0.0. Doc Control. 1. Overview. 1.1 Document. 1.
ISP Author: Gilles Labarre Date: February,22 20 Ref: Rev: 0.0 ISP Form Ref. ES - Rev: 1.0 Doc Control Rev. Pages Purpose of Modifications Originator Date 0.0 All Draft proposal Author February,22, 0.1
More informationThe purpose of this course is to provide an introduction to the RL78's flash features and archectecture including security features, code and data
1 The purpose of this course is to provide an introduction to the RL78's flash features and archectecture including security features, code and data flash organization as well as self and external programming
More informationGeneric Serial Flash Interface Intel FPGA IP Core User Guide
Generic Serial Flash Interface Intel FPGA IP Core User Guide Updated for Intel Quartus Prime Design Suite: 18.0 Subscribe Send Feedback Latest document on the web: PDF HTML Contents Contents 1. Generic
More informationThe MC9S12 in Expanded Mode Using MSI logic to build ports Using MSI logic to build an output port Using MSI logic to build an input port
The MC9S12 in Expanded Mode Using MSI logic to build ports Using MSI logic to build an output port Using MSI logic to build an input port A Simple Parallel Output Port We want a port which will write 8
More informationEmbedded Programming with ARM Cortex-M3 Basic Experiments 1
Embedded Programming with ARM Cortex-M3 Basic Experiments 1 Alan Xiao, Ph.D Handheld Scientific, Inc. qiwei@handheldsci.com Today s Topics Basics (with the Discovery board): 1. General Input/Output (GPIO)
More informationAN3965 Application note
Application note STM32F40x/STM32F41x in-application programming using the USART 1 Introduction An important requirement for most Flash-memory-based systems is the ability to update firmware when installed
More informationC66x KeyStone Training HyperLink
C66x KeyStone Training HyperLink 1. HyperLink Overview 2. Address Translation 3. Configuration 4. Example and Demo Agenda 1. HyperLink Overview 2. Address Translation 3. Configuration 4. Example and Demo
More informationARM Cortex-A9 ARM v7-a. A programmer s perspective Part1
ARM Cortex-A9 ARM v7-a A programmer s perspective Part1 ARM: Advanced RISC Machine First appeared in 1985 as Acorn RISC Machine from Acorn Computers in Manchester England Limited success outcompeted by
More information8/16-bit Atmel AVR XMEGA Microcontrollers
8/16-bit Atmel AVR XMEGA Microcontrollers ATxmega32E5 / ATxmega16E5 / ATxmega8E5 DATASHEET Features High-performance, low-power Atmel AVR XMEGA 8/16-bit Microcontroller Nonvolatile program and data memories
More informationChapter 7 Central Processor Unit (S08CPUV2)
Chapter 7 Central Processor Unit (S08CPUV2) 7.1 Introduction This section provides summary information about the registers, addressing modes, and instruction set of the CPU of the HCS08 Family. For a more
More informationSystem Reset / C167. Figure 17-1 External Reset Circuitry. Semiconductor Group 17-1
17 System Reset The internal system reset function provides initialization of the C167 into a defined default state and is invoked either by asserting a hardware reset signal on pin RSTIN (Hardware Reset
More informationDatasheetDirect.com. Visit to get your free datasheets. This datasheet has been downloaded by
DatasheetDirect.com Your dedicated source for free downloadable datasheets. Over one million datasheets Optimized search function Rapid quote option Free unlimited downloads Visit www.datasheetdirect.com
More informationSD 2.0 Host Controller IP
SD 2.0 Host Controller IP User Guide 12/2014 Capital Microelectronics, Inc. China Contents Contents... 1 1 Introduction... 2 2 SD 2.0 Host Controller IP Overview... 3 2.1 Block Diagram and Description...
More informationS12 All-Access Bootloader for the HCS12 Microcontroller Family Rafael Peralez and Gabriel Sanchez RTAC Americas
Freescale Semiconductor Application Note Document Number: AN3275 Rev. 0, 05/2006 S12 All-Access Bootloader for the HCS12 Microcontroller Family by: Rafael Peralez and Gabriel Sanchez RTAC Americas 1 Introduction
More informationTopic 3. ARM Cortex M3(i) Memory Management and Access. Department of Electronics Academic Year 14/15. (ver )
Topic 3 ARM Cortex M3(i) Memory Management and Access Department of Electronics Academic Year 14/15 (ver 25-10-2014) Index 3.1. Memory maps 3.2. Memory expansion 3.3. Memory management & Data alignment
More informationARDUINO MEGA INTRODUCTION
ARDUINO MEGA INTRODUCTION The Arduino MEGA 2560 is designed for projects that require more I/O llines, more sketch memory and more RAM. With 54 digital I/O pins, 16 analog inputs so it is suitable for
More informationCourse Introduction. Purpose: Objectives: Content: 27 pages 4 questions. Learning Time: 20 minutes
Course Introduction Purpose: This course provides an overview of the Direct Memory Access Controller and the Interrupt Controller on the SH-2 and SH-2A families of 32-bit RISC microcontrollers, which are
More informationFM3 32-BIT MICROCONTROLLER MB9A310/110 Series FLASH PROGRAMMING MANUAL
FUJITSU SEMICONDUCTOR CONTROLLER MANUAL MN706-00006-2v0-E FM3 32-BIT MICROCONTROLLER FLASH PROGRAMMING MANUAL For the information for microcontroller supports, see the following web site. http://edevice.fujitsu.com/micom/en-support/
More informationIn-circuit Programming of the C166 Family Flash Devices
Microcontrollers ApNote AP1608 þ additional file APXXXX01.EXE available In-circuit Programming The Siemens 16-bit Microcontroller family comprises two flash devices, the SAB 88C166 with 32 Kbytes on chip
More informationECE254 Lab3 Tutorial. Introduction to MCB1700 Hardware Programming. Irene Huang
ECE254 Lab3 Tutorial Introduction to MCB1700 Hardware Programming Irene Huang Lab3 Requirements : API Dynamic Memory Management: void * os_mem_alloc (int size, unsigned char flag) Flag takes two values:
More informationHow to use FlexMemory as D-Flash and EEPROM in KE1xF
NXP Semiconductors Document Number: AN5338 Application Note Rev. 0, 09/2016 How to use FlexMemory as D-Flash and EEPROM in KE1xF 1. Introduction The FlexMemory (FlexNVM and FlexRAM) is available on NXP's
More informationControl Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.
Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale
More informationDebugger Flash Programming
Debugger Flash Programming Revised 07/17/2003 Metrowerks, the Metrowerks logo, and CodeWarrior are registered trademarks of Metrowerks Corp. in the US and/or other countries. All other tradenames and trademarks
More informationW25Q20CL 2.5/3/3.3V 2M-BIT SERIAL FLASH MEMORY WITH 4KB SECTORS, DUAL AND QUAD SPI. Publication Release Date: August 06, Revision A1
2.5/3/3.3V 2M-BIT SERIAL FLASH MEMORY WITH 4KB SECTORS, DUAL AND QUAD SPI - 1 - Revision A1 Table of Contents 1. GENERAL DESCRIPTION... 5 2. FEATURES... 5 3. PIN CONFIGURATION SOIC 150-MIL AND VSOP 150-MIL...
More informationMicroprocessor Architecture. mywbut.com 1
Microprocessor Architecture mywbut.com 1 Microprocessor Architecture The microprocessor can be programmed to perform functions on given data by writing specific instructions into its memory. The microprocessor
More information8-bit XMEGA D Microcontroller XMEGA D MANUAL. Preliminary
This document contains complete and detailed description of all modules included in the AVR XMEGA TM D Microcontroller family. The XMEGA D is a family of low power, high performance and peripheral rich
More information8. Power Management and Sleep Modes
8. Power Management and Sleep Modes 8.1 Features Power management for adjusting power consumption and functions Five sleep modes Idle Power down Power save Standby Extended standby Power reduction register
More informationAm29LV040B. 4 Megabit (512 K x 8-Bit) CMOS 3.0 Volt-only, Uniform Sector 32-Pin Flash Memory DISTINCTIVE CHARACTERISTICS
Am29LV040B 4 Megabit (512 K x 8-Bit) CMOS 3.0 Volt-only, Uniform Sector 32-Pin Flash Memory DISTINCTIVE CHARACTERISTICS Single power supply operation Full voltage range: 2.7 to 3.6 volt read and write
More informationEE 308 Spring Lab on IIC Bus
Lab on IIC Bus Next week s lab 1. Communicate with Dallas Semiconductor DS 1307 Real Time Clock (a) Set time and date in clock (b) Read time and date from clock and display 2. Display time and date on
More informationGetting Started with the MCU Flashloader
NXP Semiconductors Document Number: MBOOTFLASHGS User's Guide Rev 3, 05/2018 Getting Started with the MCU Flashloader Contents Contents Chapter 1 Introduction...3 Chapter 2 Overview...4 2.1 MCU flashloader...4
More informationVirtual Memory (Real Memory POV)
Virtual Memory (Real Memory POV) Computer Systems Chapter 9.1-9.6 Process Resources Each process THINKS it owns all machine resources virtual processor, virtual memory, virtual keyboard, virtual monitor,
More informationSTM bit ARM Cortex MCUs STM32F030 Series
STM32 32-bit ARM Cortex MCUs STM32F030 Series ST has licensed Cortex-M processors 2 Forget traditional 8/16/32-bit classifications and get Seamless architecture across all applications Every product optimized
More informationECO and Workarounds for Bugs in ESP32
ECO and Workarounds for Bugs in ESP32 Version 1.6 Copyright 2018 About This Guide This document details hardware errata and workarounds in the ESP32. Release Notes Date Version Release notes 2016-11 V1.0
More informationM2351 TrustZone Program Development
Application Note for 32-bit NuMicro Family AN0019 M2351 TrustZone Program Development Document Information Abstract Introduce TrustZone programing including how to partition security attribution and how
More informationMegawin 8051 ISP-ICP Programmer & 8051 ISP Writer U2
Megawin & 8051 ISP Writer U2 User Manual This document information is the intellectual property of Megawin Technology Co., Ltd. 1 Contents 1 Introduction... 3 1.1 Two-in-One Functions... 4 1.2 Comparison
More informationF²MC-8FX FAMILY MB95200H/210H SERIES FLASH MEMORY WITH SECRUITY 8-BIT MICROCONTROLLER APPLICATION NOTE
Fujitsu Semiconductor (Shanghai) Co., Ltd. Application Note MCU-AN- 500010-E-11 F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200H/210H SERIES FLASH MEMORY WITH SECRUITY APPLICATION NOTE Revision History Revision
More informationAN4809 Application note
Application note Migrating between STM32L0 Series and STM32L4 Series / STM32L4+ Series microcontrollers Introduction For the designers of STM32 microcontroller applications, being able to easily replace
More informationQuad-Serial Configuration (EPCQ) Devices Datasheet
Quad-Serial Configuration (EPCQ) Devices Datasheet Subscribe Send Feedback Latest document on the web: PDF HTML Contents Contents 1...4 1.1 Supported Devices...4 1.2 Features...5 1.3 Operating Conditions...5
More informationSTM32F4 Introduction F1/F2/F4 Comparison Features Highlight
STM32F4 Introduction F1/F2/F4 Comparison Features Highlight February 20 th 2012 2 Content Product family overview F1/F2/F4 features comparisons Features highlight Boot & Remap feature RTC calibration &
More informationHow to use Wi-Fi module
How to use Wi-Fi module EMW316x Firmware Update Steps Agenda Contents of the EMW316x internal flash Update using the MXCHIP bootloader Update using the ST ISP programmer Update using J-link and J-Flash
More informationIAR EWARM Quick Start for. Holtek s HT32 Series Microcontrollers
IAR EWARM Quick Start for Holtek s Microcontrollers Revision: V1.10 Date: August 25, 2011 Table of Contents 1 Introduction... 5 About the Quick Start Guide... 5 About the IAR EWARM... 6 2 System Requirements...
More informationQuad-Serial Configuration (EPCQ) Devices Datasheet
2016.05.30 CF52012 Subscribe This datasheet describes quad-serial configuration (EPCQ) devices. EPCQ is an in-system programmable NOR flash memory. Supported Devices Table 1: Supported Altera EPCQ Devices
More informationPRINCETON (VON NEUMAN) ARCHITECTURE MICROPROCESSOR
1 IN OUT PRINCTON (VON NUMAN) ARCHITCTUR DATA MICROPROCSSOR ALU CONTROL STATUS INSTRUCTION CONTROL CONTROL & ADDR CLOCK ADDR(N Bits) COMPUTR DATA(M Bits) CONTROL Computer with N bit address bus can access
More information