STM32F100RB processor GPIO notes rev 2

Size: px
Start display at page:

Download "STM32F100RB processor GPIO notes rev 2"

Transcription

1 STM32F100RB processor GPIO notes rev 2 ST Microelectronics company ARM based processors are considered microcontrollers because in addition to the CPU and memory they include timer functions and extensive input and output functions such as A/D, D/A, General Purpose IO (GPIO), USB, SPI, I2C, etc. The STM32F100RB has GPIO ports A, B, C, D. Each port can have up to 16 bits that are connected to physical pins of the IC although only a total of 51 bits are used (limited by the 64 physical pins on the IC). Bits used for each port are: Port A 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12, (13), (14), (15) Port B 0, 1, 2, (3), (4), 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15 Port C 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 Port D (0), (1), 2 Bits in parenthesis do not default to GPIO and often will be used for other functions such as bits 0 and 1 on Port D default to connect to an external crystal to run the high speed oscillator or to connect an external clock source. See Table 4, page 24 of the STM32F100 reference data sheet for the physical pin numbers associated with each port bit. ARM based microcontrollers use memory mapped I/O to access I/O hardware. Memory addresses (byte addresses) range from 0x to 0xFFFFFFFF (hexadecimal notation or zero to 4,294,967,295 base 10). The processor has a 32 bit word length or 4 bytes per word meaning that there are 1,073,741,823 word addresses for memory. The word address sequence starts at zero and goes by multiples of four, i.e. 0, 4, 8, 12, 16, etc. To get data from a GPIO port an instruction must be executed that reads data from a memory address and transfers it to a register in the CPU (a load instruction) while writing to a memory address transfers data from a CPU register to hardware at the specified word address (a store instruction does this). Each GPIO port has seven 32-bit registers associated with it (i.e. 7 memory word addresses) that have the following names, function, and address offset within the group: offset name function 0x00 CRL Port configuration register low (port bits 7-0 ) 0x04 CRH Port configuration register high (port bits 15-8) 0x08 IDR Port input data register 0x0C ODR Port output data register 0x10 BSRR Port bit set/reset register 0x14 BRR Port bit reset register 0x18 LCKR Port configuration lock register The base address for each port (i.e. the address of the CRL register for a port) is given in Figure 7 on page 30 of the STM32F100RB data sheet (as shown here) and in table 1 page 36 of the STM32F100 reference manual. Thus the CRL register of port A has an address of 0x

2 You should read pages 100 to 105 in the STM32F100 reference manual. The functional description on page 100 is reproduced here Here is a summary of what each of the 7 registers does: CRL - control register, configures the lower 8 bits (of 16) for a port CRH - control register, configures the upper 8 bits (of 16) for a port IDR - read from this register to get 16 bits of data from a port. Read a word and the lower 16 bits are the data. ODR - write a word to this register to output data. The lower 16 bits are output depending on the mode set in the control register. BSRR used to set or reset output port bits. The lower 16 bits of this register are used to set corresponding output port bits to one. The upper 16 bits of this register are used to reset (clear) corresponding output port bits to zero. When a word is written to this register, bit positions with zero will not affect the output port data. Bit positions with a one in them will change the corresponding output port data bit. If a lower bit and a corresponding upper bit are both ones, the set operation takes precedent over resetting. BRR - used to reset (clear) output port bits. The lower 16 bits of this register are used to clear the corresponding output port bits. When a word is written to this register, bit positions with zero will not affect the output port data. Bit positions with a one in them will change the corresponding output port data bit. LCKR this register is used to lock the configuration of the port bits. This register likely will not need to be written to for the class project.

3 From pages 111 to 114 of the STM32F100 reference manual:

4

5

6 (see page 114 of the STM32F100 reference manual for details on the lock register if needed) Using the GPIO ports To create software for the ENGR-355 project use the blinky.c program as a starting point. Compile it, download to the Discovery board to confirm that the USB download link is working, and then modify it for your application. The setup and header files that come with blinky.c contain definitions for the GPIO registers that can be used. In file stm32f10x.h a data structure named GPIO_TypeDef is defined that identifies the registers for each GPIO port: Since each register is 32 bits or 4 bytes, CRL has an address of 0x00 within the structure, CRH has an address of 0x04, IDR is 0x08, etc.

7 To arrive at an actual address for a GPIO register the base addresses for peripherals is established (note line 1274 where 0x is defined): In line 1282 APB2PERIPH_BASE is created and is 0x Then a base address for each GPIO port is created: The address for the first port A register, i.e. GPIOA_BASE, is thus 0x A pointer to the start of registers for each port is created like this: The address of a specific port register can then be expressed as GPIOA->CRL for example. In the blinky.c file, an inline function is created to configure GPIO port C for output to two LEDs like this: Four bits (one hex digit) are required to configure each I/O bit as detailed in and shown 4 pages back in this document. Note on line 33 above that the configuration for each bit is a hex 3 or 0011 in binary. The lower two bits being ones specifies output mode, maximum speed. The upper two bits specify a push-pull style output circuit (active pull up and active pull down). In line 32 the lower 8 bits are set to zero and then in line 33 the lower 8 bits are set to 0x33.

8 Example code for driving an LCD display was handed out. This code is for a Freescale KL25Z series ARM processor. Like the STM32F100 it has a 32 bit CPU but the addresses used for peripherals, the registers used and how they work, are different. In the example code for the LCD a data structure and its address are defined somewhat like that described above for the STM32F100 but different names are used for the port registers and the port registers work a little different. Here are the register names and a synopsis of their function: PDDR - Port data direction register. Used to establish if a port pin is an input or output. PDOR - Port data output register. Data, one or zero, written to a pin set for output establishes the output data. PSOR - Port set output register. A 1 written to a bit will cause the output to be a one. PCOR - Port clear output register. A 1 written to a bit will cause the output to be a zero. There are other port registers, but they don t appear in the example. Use the example code to understand the commands and timing needed to communicate with the display but use port and register names defined for the STM32F100.

ELEC 3040/3050 Lab Manual Lab 2 Revised 8/20/14. LAB 2: Developing and Debugging C Programs in MDK-ARM for the STM32L100RC Microcontroller

ELEC 3040/3050 Lab Manual Lab 2 Revised 8/20/14. LAB 2: Developing and Debugging C Programs in MDK-ARM for the STM32L100RC Microcontroller LAB 2: Developing and Debugging C Programs in MDK-ARM for the STM32L100RC Microcontroller The objective of this laboratory session is to become more familiar with the process for creating, executing and

More information

Digital Input and Output

Digital Input and Output 1 Digital Input and Output Module Syllabus Digital Input and Output Voltages and Logic Values GPIO Controller Using Pointer to Access GPIO Define Data Structure for Peripherals Digital IO Examples Using

More information

Using the Special Function Registers of the Digital I/O interface of STM32

Using the Special Function Registers of the Digital I/O interface of STM32 Using the Special Function Registers of the Digital I/O interface of STM32 ARSLAB - Autonomous and Robotic Systems Laboratory Dipartimento di Matematica e Informatica - Università di Catania, Italy santoro@dmi.unict.it

More information

Using the Special Function Registers of the Digital I/O interface of STM32

Using the Special Function Registers of the Digital I/O interface of STM32 Using the Special Function Registers of the Digital I/O interface of STM32 ARSLAB - Autonomous and Robotic Systems Laboratory Dipartimento di Matematica e Informatica - Università di Catania, Italy santoro@dmi.unict.it

More information

Real Time & Embedded Systems. STM32 GPIO and Timers

Real Time & Embedded Systems. STM32 GPIO and Timers Real Time & Embedded Systems STM GPIO and Timers GPIO Memory Map of Cortex-M. GB xffffffff xe System NVIC, System Timer, SCB, vendor-specific memory GB External Device Such as SD card xa GB External RAM

More information

Hello, and welcome to this presentation of the STM32 general-purpose IO interface. It covers the general-purpose input and output interface and how

Hello, and welcome to this presentation of the STM32 general-purpose IO interface. It covers the general-purpose input and output interface and how Hello, and welcome to this presentation of the STM32 general-purpose IO interface. It covers the general-purpose input and output interface and how it allows connectivity to the environment around the

More information

Developing and Debugging C Programs in MDK-ARM for the STM32L100RC Microcontroller

Developing and Debugging C Programs in MDK-ARM for the STM32L100RC Microcontroller Developing and Debugging C Programs in MDK-ARM for the STM32L100RC Microcontroller ELCE 3040/3050 Lab Session 2 (write-up on course web page) Important References (on course web page): Tutorial: C programming

More information

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software! Summer Training 2016 Advance Embedded Systems Fast track of AVR and detailed working on STM32 ARM Processor with RTOS- Real Time Operating Systems Covering 1. Hands on Topics and Sessions Covered in Summer

More information

Input/Output Programming

Input/Output Programming Input/Output Programming Chapter 3: Section 3.1, 3.2 Input and output (I/O) programming Communicating with I/O devices Busy-wait I/O Interrupt-driven I/O I/O devices Devices may include digital and non-digital

More information

AGH University of Science and Technology Cracow Department of Electronics

AGH University of Science and Technology Cracow Department of Electronics AGH University of Science and Technology Cracow Department of Electronics Microcontroller Lab Tutorial 1 Microcontrollers programming in C Author: Paweł Russek http://www.fpga.agh.edu.pl/ml ver. 3.10.16

More information

Introduction to ARM LPC2148 Microcontroller

Introduction to ARM LPC2148 Microcontroller Introduction to ARM LPC2148 Microcontroller Dr.R.Sundaramurthy Department of EIE Pondicherry Engineering College Features of LPC2148 in a Nut Shell CPU = ARM 7 Core Word Length = 32 Bit ROM = 512 KB RAM

More information

EE 354 Fall 2015 Lecture 1 Architecture and Introduction

EE 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 information

Hello, and welcome to this presentation of the STM32F7 System Configuration Controller.

Hello, 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 information

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

User Manual For CP-JR ARM7 USB-LPC2148 / EXP CP-JR ARM7 USB-LPC2148 / EXP 38 CR-JR ARM7 USB-LPC2148 which is a Board Microcontroller ARM7TDMI-S Core uses Microcontroller 16/32-Bit 64 Pin as Low Power type to be a permanent MCU on board and uses MCU

More information

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM FRDM-KL02Z User Manual Rev. 0 Freescale Semiconductor Inc. FRDMKL02ZUM 1. Overview The Freescale Freedom development platform is an evaluation and development tool ideal for rapid prototyping of microcontroller-based

More information

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad Objectives To be familiar with microcontrollers, PIC18F4550 microcontroller. Tools PIC18F4550 Microcontroller, MPLAB software,

More information

Lab #4: GPIOs in Assembly Language Week of 18 February 2019

Lab #4: GPIOs in Assembly Language Week of 18 February 2019 ECE271: Microcomputer Architecture and Applications University of Maine Lab #4: GPIOs in Assembly Language Week of 18 February 2019 Goals 1. Learn Thumb-2 Assembly Language Pre-lab 1. Complete the pre-lab

More information

ECE 362 Experiment 3: General Purpose I/O

ECE 362 Experiment 3: General Purpose I/O ECE 362 Experiment 3: General Purpose I/O 1.0 Introduction In this experiment, you will learn how to attach simple input devices (pushbuttons) and simple output devices (LEDs) to an STM32 development board.

More information

AGH University of Science and Technology Cracow Department of Electronics

AGH University of Science and Technology Cracow Department of Electronics AGH University of Science and Technology Cracow Department of Electronics Microcontrollers Lab Tutorial 2 GPIO programming Author: Paweł Russek http://www.fpga.agh.edu.pl/upt2 ver. 26.10.16 1/12 1. Objectives

More information

Start a New Project with Keil MDK-ARM Version 5 and ST Micro Nucleo-F446RE

Start a New Project with Keil MDK-ARM Version 5 and ST Micro Nucleo-F446RE Start a New Project with Keil MDK-ARM Version 5 and ST Micro Nucleo-F446RE This tutorial is intended for starting a new project to develop software with ST Micro Nucleo-F446RE board (with STM32F446RE MCU)

More information

EasyPIC5 Development System

EasyPIC5 Development System EasyPIC5 Development System Part No.: MPMICRO-PIC-Devel- EasyPIC5 Overview EasyPIC5 is a development system that supports over 120 8-, 14-, 18-, 20-, 28- and 40-pin PIC MCUs. EasyPIC5 allows PIC microcontrollers

More information

General Purpose I/O ARM University Program Copyright ARM Ltd

General Purpose I/O ARM University Program Copyright ARM Ltd General Purpose I/O 1 Overview How do we make a program light up LEDs in response to a switch? GPIO Basic Concepts Port Circuitry Control Registers Accessing Hardware Registers in C Clocking and Muxing

More information

Embedded programming, AVR intro

Embedded programming, AVR intro Applied mechatronics, Lab project Embedded programming, AVR intro Sven Gestegård Robertz Department of Computer Science, Lund University 2017 Outline 1 Low-level programming Bitwise operators Masking and

More information

Microcontroller basics

Microcontroller basics FYS3240 PC-based instrumentation and microcontrollers Microcontroller basics Spring 2017 Lecture #4 Bekkeng, 30.01.2017 Lab: AVR Studio Microcontrollers can be programmed using Assembly or C language In

More information

DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER UNIT-1 PART-A (2 MARKS)

DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER UNIT-1 PART-A (2 MARKS) DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER CODE: EC6504 UNIT-1 1. How many memory locations are available in 8086 microprocessor? 2. What are the flags available in 8086

More information

SB70LC GPIO Configuration Application Note

SB70LC GPIO Configuration Application Note GPIO Configuration Application Note Revision 1.0 October 29, 2009 Document Status: Initial Release Table of Contents Introduction 3 Electrical Specifications 3 Pin Assignment and GPIO Control Registers

More information

8051 Microcontroller Interrupts

8051 Microcontroller Interrupts 8051 Microcontroller Interrupts There are five interrupt sources for the 8051, which means that they can recognize 5 different events that can interrupt regular program execution. Each interrupt can be

More information

AT89S8252 Development Board V1.0. Manual

AT89S8252 Development Board V1.0. Manual AT89S8252 Development Board V1.0 Manual Page 1 Chapter 1. Introduction 1.1 Introduction This user s guide describes how to connect to and set-up the AT89S8252 Development Board, for program development

More information

Architectural design proposal for real time clock for wireless microcontroller unit

Architectural design proposal for real time clock for wireless microcontroller unit Architectural design proposal for real time clock for wireless microcontroller unit Muhammad Nor Azwan Mohd Alias 1, *, and Shaiful Nizam Mohyar 1 1 School of Microelectronic Engineering, University Malaysia

More information

Modern C++ for Embedded Systems

Modern C++ for Embedded Systems Modern C++ for Embedded Systems Part 1 Compile-Time Device Models Alexander Graf January 25th, 2019 1/27 Outline 1 Terms and Conditions :) 2 C-World Problems 3 C++ Solutions 4 Restraints in the Industry

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many

More information

Microbee Technology FTM-3SE

Microbee Technology FTM-3SE Microbee Technology FTM-3SE Freescale Tower System Compatible Field Programmable Gate Array Module TWR-K70 Demo Quick Start Guide The flexibility that programmable logic brings to hardware design has now

More information

FRDM-KL03Z User s Guide

FRDM-KL03Z User s Guide Freescale Semiconductor User s Guide Document Number: FRDMKL03ZUG Rev. 0, 7/2014 FRDM-KL03Z User s Guide 1 Overview The Freescale Freedom development platform is an evaluation and development tool ideal

More information

EECE 690/890 Digital Radio Hardware Design. Team 3 Assignment 2. Informal Design Review: Thurs 10/15/98 Deliverables Due: Tues 10/20/98

EECE 690/890 Digital Radio Hardware Design. Team 3 Assignment 2. Informal Design Review: Thurs 10/15/98 Deliverables Due: Tues 10/20/98 EECE 690/890 Digital Radio Hardware Design Team 3 Assignment 2 Informal Design Review: Thurs 10/15/98 Deliverables Due: Tues 10/20/98 Introduction This is the second in a series of assignments designed

More information

ECE3120: Computer Systems Hardware & Software Development Tools

ECE3120: Computer Systems Hardware & Software Development Tools ECE3120: Computer Systems Hardware & Software Development Tools Manjeera Jeedigunta http://blogs.cae.tntech.edu/msjeedigun21 Email: msjeedigun21@tntech.edu Tel: 931-372-6181, Prescott Hall 120 The HCS12

More information

BV4208. I2C-RTC & Temp. Sensor. Product specification. November 2008 V0.a. ByVac Page 1 of 5

BV4208. I2C-RTC & Temp. Sensor. Product specification. November 2008 V0.a. ByVac Page 1 of 5 BV4208 Product specification November 2008 V0.a ByVac Page 1 of 5 Contents 1. Introduction...3 2. Features RTC...3 3. Features Temp. Sens...3 4. Electrical Specification...3 5. Circuit Diagram...3 6. Data

More information

Objective: Additional project details: Code: PSEMBP 100 Category:STEM Level: High School/Community C.

Objective: Additional project details: Code: PSEMBP 100 Category:STEM Level: High School/Community C. Objective: At the end of this session, you will have a fair understanding of - Z8 Encore! language tools including C compiler, assembler, linker/locator, and librarian - Instruction set simulator and disassembler

More information

Hello, and welcome to this presentation of the STM32 Reset and Clock Controller.

Hello, and welcome to this presentation of the STM32 Reset and Clock Controller. Hello, and welcome to this presentation of the STM32 Reset and Clock Controller. 1 The RCC controller integrated inside STM32 products manages system and peripheral clocks. STM32F7 devices embed two internal

More information

EasyAVR6 Development System

EasyAVR6 Development System EasyAVR6 Development System Part No.: MPMICRO-AVR-Devel-EasyAVR6 Overview EasyAVR6 is a development system that supports a wide range of 8-, 14-, 20-, 28- and 40-pin AVR MCUs. EasyAVR6 allows AVR microcontrollers

More information

ECE 362 Lab Verification / Evaluation Form Experiment 3

ECE 362 Lab Verification / Evaluation Form Experiment 3 ECE 362 Lab Verification / Evaluation Form Experiment 3 Evaluation: IMPORTANT! You must complete this experiment during your scheduled lab perior. All work for this experiment must be demonstrated and

More information

CHAPTER 1 - World of microcontrollers

CHAPTER 1 - World of microcontrollers CHAPTER 1 - World of microcontrollers One Time Programmable ROM (OTP ROM) One time programmable ROM enables you to download a program into it, but, as its name states, one time only. If an error is detected

More information

Introduction to L.A.P. 1

Introduction to L.A.P. 1 Introduction to L.A.P. 1 Corrado Santoro ARSLAB - Autonomous and Robotic Systems Laboratory Dipartimento di Matematica e Informatica - Università di Catania, Italy santoro@dmi.unict.it L.A.P. 1 Course

More information

Manual of Board ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22

Manual of Board ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22 is Board Microcontroller in a series of PIC18F87K22 80-Pin TQFP from Microchip. It designs I/O of MCU on board to interface with CONNECTOR in the format

More information

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs. acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.) Module 0 Introduction Introduction to Embedded Systems, Real Time

More information

Application Note: 200

Application Note: 200 Application Note: 200 Setting Up ULINK2 for the LogicPD imx LITEKIT Abstract This application note provides instructions for connecting and setting up the imx LITEKIT evaluation board for use with the

More information

RDB1768 Development Board User Manual

RDB1768 Development Board User Manual RDB1768 Development Board User Manual 6/16/2009 Rev.2 Copyright Code Red Technologies Inc. 2009 Page 1 of 18 1 OVERVIEW 3 1.1 LPC1768 Features 3 1.2 RDB1768 Evaluation Board Hardware 3 2 COMPONENTS 5 2.1

More information

Freescale Semiconductor Inc. Microcontroller Solutions Group. FRDM-KL46Z User s Manual FRDM-KL46Z-UM Rev. 1.0

Freescale Semiconductor Inc. Microcontroller Solutions Group. FRDM-KL46Z User s Manual FRDM-KL46Z-UM Rev. 1.0 Freescale Semiconductor Inc. Microcontroller Solutions Group FRDM-KL46Z User s Manual FRDM-KL46Z-UM Rev. 1.0 Table of Contents 1 FRDM-KL46Z Overview... 3 2 References documents... 3 3 Getting started...

More information

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang, Network Embedded Systems Sensor Networks Fall 2013 Hardware Marcus Chang, mchang@cs.jhu.edu 1 Embedded Systems Designed to do one or a few dedicated and/or specific functions Embedded as part of a complete

More information

EB-51 Low-Cost Emulator

EB-51 Low-Cost Emulator EB-51 Low-Cost Emulator Development Tool for 80C51 Microcontrollers FEATURES Emulates 80C51 Microcontrollers and Derivatives Real-Time Operation up to 40 MHz 3.3V or 5V Voltage Operation Source-Level Debugger

More information

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems MT2 Introduction Embedded Systems MT2.1 Mechatronic systems Mechatronics is the synergistic integration of mechanical engineering, with electronics and intelligent computer control in the design and manufacturing

More information

AN4311 Application note

AN4311 Application note Application note Assessing STM32L1 Series current consumption Introduction The STMicroelectronics ARM Cortex -M3 based STM32L1 series uses ST s proprietary ultra-low-leakage process technology with an

More information

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc)

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc) Software Development & Education Center Embedded Systems (Design & Development with Various µc) Module 1: Embedded C Programming INTRODUCTION TO EMBEDDED SYSTEM History & need of Embedded System Basic

More information

EZ GUI Expansion Board Design Guide

EZ GUI Expansion Board Design Guide www.teamfdi.com Rev. 1.1 Nov. 3, 2016 EZ GUI Expansion Board Design Guide Rev. 1.1 Nov. 3, 2016 P a g e 1 Table of Contents 1.0 Introduction... 3 2.0 Board Layout and Connector Orientation... 3 3.0 Power

More information

Diploma in Embedded Systems

Diploma in Embedded Systems Diploma in Embedded Systems Duration: 5 Months[5 days a week,3 hours a day, Total 300 hours] Module 1: 8051 Microcontroller in Assemble Language Characteristics of Embedded System Overview of 8051 Family

More information

AN3980 Application note

AN3980 Application note Application note STM32 firmware library for dspin L6470 1 Introduction This application note describes the implementation of the STM32 firmware library for the dspin stepper motor control product (L6470).

More information

Experiment 1. Development Platform. Ahmad Khayyat, Hazem Selmi, Saleh AlSaleh

Experiment 1. Development Platform. Ahmad Khayyat, Hazem Selmi, Saleh AlSaleh Experiment 1 Development Platform Ahmad Khayyat, Hazem Selmi, Saleh AlSaleh Version 162, 13 February 2017 Table of Contents 1. Objectives........................................................................................

More information

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM FRDM-KL02Z User Manual Rev. 0 Freescale Semiconductor Inc. FRDMKL02ZUM 1. Overview The Freescale Freedom development platform is an evaluation and development tool ideal for rapid prototyping of microcontroller-based

More information

Basic Components of Digital Computer

Basic Components of Digital Computer Digital Integrated Circuits & Microcontrollers Sl. Mihnea UDREA, mihnea@comm.pub.ro Conf. Mihai i STANCIU, ms@elcom.pub.ro 1 Basic Components of Digital Computer CPU (Central Processing Unit) Control and

More information

ARM Cortex-M4 Architecture and Instruction Set 1: Architecture Overview

ARM 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 information

C:\Users\jacob\Documents\MtSAC\ELEC74 Mt SAC - chipkit\homework Sheets.docx

C:\Users\jacob\Documents\MtSAC\ELEC74 Mt SAC - chipkit\homework Sheets.docx ELEC 74 Worksheet 1 Logic Gate Review 1. Draw the truth table and schematic symbol for: a. An AND gate b. An OR gate c. An XOR gate d. A NOT gate ELEC74 Worksheet 2 (Number Systems) 1. Convert the following

More information

ERRATA SHEET INTEGRATED CIRCUITS. Date: 2008 June 2 Document Release: Version 1.6 Device Affected: LPC2468. NXP Semiconductors

ERRATA SHEET INTEGRATED CIRCUITS. Date: 2008 June 2 Document Release: Version 1.6 Device Affected: LPC2468. NXP Semiconductors INTEGRATED CIRCUITS ERRATA SHEET Date: 2008 June 2 Document Release: Version 1.6 Device Affected: LPC2468 This errata sheet describes both the known functional problems and any deviations from the electrical

More information

(Embedded) Systems Programming Overview

(Embedded) Systems Programming Overview System Programming Issues EE 357 Unit 10a (Embedded) Systems Programming Overview Embedded systems programming g have different design requirements than general purpose computers like PC s I/O Electro-mechanical

More information

Advanced Operating Systems Embedded from Scratch: System boot and hardware access. Federico Terraneo

Advanced Operating Systems Embedded from Scratch: System boot and hardware access. Federico Terraneo Embedded from Scratch: System boot and hardware access federico.terraneo@polimi.it Outline 2/28 Bare metal programming HW architecture overview Linker script Boot process High level programming languages

More information

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

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC

More information

ERRATA SHEET INTEGRATED CIRCUITS. Date: July 7, 2008 Document Release: Version 1.8 Device Affected: LPC2148

ERRATA SHEET INTEGRATED CIRCUITS. Date: July 7, 2008 Document Release: Version 1.8 Device Affected: LPC2148 INTEGRATED CIRCUITS ERRATA SHEET Date: July 7, 2008 Document Release: Version 1.8 Device Affected: LPC2148 This errata sheet describes both the functional problems and any deviations from the electrical

More information

PIC Microcontroller Introduction

PIC Microcontroller Introduction PIC Microcontroller Introduction The real name of this microcontroller is PICmicro (Peripheral Interface Controller), but it is better known as PIC. Its first ancestor was designed in 1975 by General Instruments.

More information

Lecture 1: Introduction to Microprocessors

Lecture 1: Introduction to Microprocessors ECE342 Digital II Lecture 1: Introduction to Microprocessors Dr. Ying (Gina) Tang Electrical and Computer Engineering Rowan University 1 What is a microprocessor Informally, a microprocessor (µp) is the

More information

AN2606 Application note

AN2606 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 information

EE251: Thursday September 20

EE251: Thursday September 20 EE251: Thursday September 20 Parallel I/O aka General Purpose I/O aka GPIO Common Devices: Switches, LEDs, Keypads Read Lab 4 carefully, and Chapter 14 in text Think about what you would like to review

More information

PROGRAMMING AND CUSTOMIZING

PROGRAMMING AND CUSTOMIZING PROGRAMMING AND CUSTOMIZING THE PICAXE MICROCONTROLLER SECOND EDITION DAVID LINCOLN Mc Grauu Hill New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore

More information

Parallel I/O and Keyboard Scanning

Parallel I/O and Keyboard Scanning 4 4.1 Objectives: Microprocessors can monitor the outside world using input ports. They can also control it using output ports. The TM4C123G (Tiva) performs I/O using 6 ports. Computer keyboards are typically

More information

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

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab AVR Training Board-I V., Konkuk Univ. Yong Beom Cho ybcho@konkuk.ac.kr What is microcontroller A microcontroller is a small, low-cost computeron-a-chip which usually includes: An 8 or 16 bit microprocessor

More information

Engr 355 Embedded Systems Design. mbed and LPC11U24 Overview. Dr. Curtis Nelson* *Original lecture written by Tim Kyle ARM

Engr 355 Embedded Systems Design. mbed and LPC11U24 Overview. Dr. Curtis Nelson* *Original lecture written by Tim Kyle ARM Engr 355 Embedded Systems Design mbed and LPC11U24 Overview Dr. Curtis Nelson* *Original lecture written by Tim Kyle ARM Produces 32-bit processor core designs Licenses cores to fabrication companies (Freescale,

More information

Embedded C. ECE Rick

Embedded C. ECE Rick Embedded C ECE 362 https://engineering.purdue.edu/ee362/ Rick Reading Assignment Reading assignment: Family Reference Manual, Chapter 17, "General purpose timers (TIM2 and TIM3)", pages 377 443. Textbook,

More information

Lab 1 Introduction to Microcontroller

Lab 1 Introduction to Microcontroller Lab 1 Introduction to Microcontroller Feb. 2016 1 Objective 1. To be familiar with microcontrollers. 2. Introducing LPC2138 microcontroller. 3. To be familiar with Keil and Proteus software tools. Introduction

More information

ERRATA SHEET INTEGRATED CIRCUITS. Date: July 9, 2007 Document Release: Version 1.6 Device Affected: LPC2148

ERRATA SHEET INTEGRATED CIRCUITS. Date: July 9, 2007 Document Release: Version 1.6 Device Affected: LPC2148 INTEGRATED CIRCUITS ERRATA SHEET Date: July 9, 2007 Document Release: Version 1.6 Device Affected: LPC2148 This errata sheet describes both the functional deviations and any deviations from the electrical

More information

PCB-STM32-F3U. Development baseboard for the STMicro Discovery-F3 module (STMicro part# STM32F3DISCOVERY)

PCB-STM32-F3U. Development baseboard for the STMicro Discovery-F3 module (STMicro part# STM32F3DISCOVERY) PCB-STM32-F3U Development baseboard for the STMicro Discovery-F3 module (STMicro part# STM32F3DISCOVERY) Part Number: PCB-STM32-F3U (unpopulated PCB with Discovery module sockets, no other parts) STM32-F3U

More information

AN3268 Application note

AN3268 Application note Application note STM32VLDISCOVERY firmware package Introduction The purpose of this application note is to describe the STM32VLDISCOVERY package structure and provide short descriptions of: STM32VLDISCOVERY

More information

The Atmel ATmega328P Microcontroller

The Atmel ATmega328P Microcontroller Ming Hsieh Department of Electrical Engineering EE 459Lx - Embedded Systems Design Laboratory 1 Introduction The Atmel ATmega328P Microcontroller by Allan G. Weber This document is a short introduction

More information

An Arduino Controlled 1 Hz to 60 MHz Signal Generator

An Arduino Controlled 1 Hz to 60 MHz Signal Generator An Arduino Controlled 1 Hz to 60 MHz Signal Generator Greg McIntire, AA5C AA5C@arrl.net WWW..ORG 1 Objectives Build a standalone 60 MHz signal generator based on the DDS-60 board. Originally controlled

More information

ECE372 CodeWarrior Simulator Andreou/Michaelides

ECE372 CodeWarrior Simulator Andreou/Michaelides CodeWarrior simulator demo The code can be written in C language (higher level) as well as in Assembly language (lower level). General C commands are applied across microcontroller families as opposed

More information

Introduction. PURPOSE: This course explains several important features of the i.mx21 microprocessor.

Introduction. PURPOSE: This course explains several important features of the i.mx21 microprocessor. Introduction PURPOSE: This course explains several important features of the i.mx21 microprocessor. OBJECTIVES: - Describe the features and functions of the ARM926EJ-S TM Core - Explain three processor

More information

Microcontrollers. Microcontroller

Microcontrollers. Microcontroller Microcontrollers Microcontroller A microprocessor on a single integrated circuit intended to operate as an embedded system. As well as a CPU, a microcontroller typically includes small amounts of RAM and

More information

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual 4T 8051 8-bit Microcontroller Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual The information described in this document is the exclusive intellectual property of Nuvoton Technology

More information

Lab Course Microcontroller Programming

Lab Course Microcontroller Programming Technische Universität München Fakultät für Informatik Forschungs- und Lehreinheit Informatik VI Robotics and Embedded Systems Lab Course Microcontroller Programming Michael Geisinger geisinge@in.tum.de

More information

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be covered in this presentation. 1 Please note that this

More information

KNJN I2C bus development boards

KNJN I2C bus development boards KNJN I2C bus development boards 2005, 2006, 2007, 2008 KNJN LLC http://www.knjn.com/ Document last revision on December 5, 2008 R22 KNJN I2C bus development boards Page 1 Table of Contents 1 The I2C bus...4

More information

CAT Controlled Fract-N Synthesizer

CAT Controlled Fract-N Synthesizer CAT Controlled Fract-N Synthesizer Overview The unit is a PIC based interface that takes in serial Computer Aided Transceiver (CAT) commands and translates them into the register values to programme an

More information

Laboratory 10. Programming a PIC Microcontroller - Part II

Laboratory 10. Programming a PIC Microcontroller - Part II Laboratory 10 Programming a PIC Microcontroller - Part II Required Components: 1 PIC16F88 18P-DIP microcontroller 1 0.1 F capacitor 3 SPST microswitches or NO buttons 4 1k resistors 1 MAN 6910 or LTD-482EC

More information

The xpcc microcontroller framework

The xpcc microcontroller framework The xpcc microcontroller framework An efficient object-oriented approach to embedded software development. Niklas Hauser, Kevin Läufer Roboterclub Aachen e. V. FOSDEM 2014 Who? What? @salkinium @ekiwi

More information

Homework 5: Circuit Design and Theory of Operation Due: Friday, February 24, at NOON

Homework 5: Circuit Design and Theory of Operation Due: Friday, February 24, at NOON Homework 5: Circuit Design and Theory of Operation Due: Friday, February 24, at NOON Team Code Name: Motion Tracking Laser Platform Group No.: 9 Team Member Completing This Homework: David Kristof NOTE:

More information

VLSI AppNote: VSx053 Simple DSP Board

VLSI AppNote: VSx053 Simple DSP Board : VSx053 Simple DSP Board Description This document describes the VS1053 / VS8053 Simple DPS Board and the VSx053 Simple DSP Host Board. Schematics, layouts and pinouts of both cards are included. The

More information

GRAPHICS LCD INTERFACING WITH 8051

GRAPHICS LCD INTERFACING WITH 8051 GRAPHICS LCD INTERFACING WITH 8051 It may require some graphics image to be displayed in 8051 based products through a monochrome bitmap LCD. This is considered to be a complex task because of its bus

More information

1.6inch SPI Module user manual

1.6inch SPI Module user manual 1.6inch SPI Module user manual www.lcdwiki.com 1 / 10 Rev1.0 Product Description The 1.6 module is tested using the ESP8266MOD D1 Mini development board, Both the test program and the dependent libraries

More information

Future Designs, Inc. Your Development Partner LCD DEMO KITS

Future Designs, Inc. Your Development Partner   LCD DEMO KITS Future Designs, Inc. Your Development Partner www.teamfdi.com LCD DEMO KITS LCD DEMO Kit Family LCD-DEMO-KIT LCD-DEMO-SC LCD-DEMO-LPC2158 LCD-DEMO-Family Each kit uses a multiplexed 8 digit liquid crystal

More information

MCF5445x Configuration and Boot Options Michael Norman Microcontroller Division

MCF5445x Configuration and Boot Options Michael Norman Microcontroller Division Freescale Semiconductor Application Note Document Number: AN3515 Rev. 1, 04/2008 MCF5445x Configuration and Boot Options by: Michael Norman Microcontroller Division 1 Configuration Modes The Freescale

More information

SH69P48A EVB. Application Notes for SH69P48A EVB SH69V48A JP2 J4(ICE_J4) S1 IDD TEST JP1 74HC273 JP4 JP3 74HC273 JP6 STKOVE JP7 SW1 J5(ICE_J5)

SH69P48A EVB. Application Notes for SH69P48A EVB SH69V48A JP2 J4(ICE_J4) S1 IDD TEST JP1 74HC273 JP4 JP3 74HC273 JP6 STKOVE JP7 SW1 J5(ICE_J5) SH69P48A EVB Application Notes for SH69P48A EVB The SH69P48A EVB is used to evaluate the SH69P48A chip's function for the development of application program. It contains of a SH69V48A chip to evaluate

More information

Laboratory: Introduction to Mechatronics

Laboratory: Introduction to Mechatronics Laboratory: Introduction to Mechatronics Instructor TA: Edgar Martinez Soberanes (eem370@mail.usask.ca) 2017-02-9 Lab 3. LED Control and Interruptions. Lab Sessions Lab 1. Introduction to the equipment

More information

Espardino micro2142/8

Espardino micro2142/8 micro2142/8 board is an advanced ARM board based on the NXP 2142/8 USB microcontroller featuring 60 MIPS 64kB/512kB Flash space and 16kB/32kB of RAM space. MAIN FEATURES Integrated USB bootloader (8kB)

More information

2-Oct-13. the world s most energy friendly microcontrollers and radios

2-Oct-13.  the world s most energy friendly microcontrollers and radios 1 2 3 EFM32 4 5 LESENSE Low Energy Sensor Interface Autonomous sensing in Deep Sleep LESENSE with central control logic ACMP for sensor input DAC for reference generation Measure up to 16 sensors Inductive

More information