FRDM-KL03Z User s Guide

Similar documents
FRDM-KE02Z User s Manual

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

FRDM-KL26Z User s Guide

FRDM-KE04Z User s Guide User Guide

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

TWR-KL28Z User s Guide

Freedom FRDM-KV31F Development Platform User s Guide

HVP-KV10Z32 User s Guide

HVP-KV31F120M User s Guide

FRDM-KL82Z User s Guide

FRDM-K20D50M User s Manual FRDM-K20D50M-UM Rev. 1.2

Quick Start Guide for the Freescale Freedom Development Platform FRDM-KL43Z

TWR-KV10Z32 Sample Code Guide for IAR Board configuration, software, and development tools

Quick Start Guide for FRDM-KL05Z

Quick Start Guide for FRDM-KL46Z Rev 1

TWR-KV10Z32 Sample Code Guide for CodeWarrior Board configuration, software, and development tools

TWR-KE18F User's Guide

Quick Start Guide for FRDM-KL46Z Rev 1

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

TWR-KV11Z75M Tower System Module User s Guide

Freedom FRDM-MC-LVBLDC Development Platform User s Guide

Kinetis KM3x Metrology MCUs based on ARM Cortex -M0+ Core

MQX RTOS Release Notes for Kinetis SDK v1.2.0 for KL33Z64 for FRDM-KL43Z Freescale Freedom Development Platform

Kinetis KL1x General-Purpose Ultra-Low- Power MCUs Up to 256 KB Flash and 32 KB SRAM

Three-Phase Power Meter Hardware Design Reference Manual

FRDM-K64F Board Errata

HVP-MC56F82748 User s Guide

Kinetis KE1xF512 MCUs

Getting Started with Freescale MQX RTOS for Kinetis SDK and MDK-ARM Keil

Quick Start Guide for FRDM-FXS-MULTI-B

Offline Flash Programmer for Kinetis K- and L-series MCUs

OpenSDA on TWR-KW2x. User s Guide Rev 1.1

FRDM-KW41Z Freedom Development Board User's Guide

Emulating I2C Bus Master by using FlexIO

MQX RTOS Release Notes for Kinetis SDK FRDM- KV10Z Freescale Freedom Development Platform

TWR-KL25Z Tower Module

Emulating Dual SPI Using FlexIO

TWR-KL43Z48M Quick Start Guide

Load Position-Independent Code (PIC) on a Kinetis Platform Using the IAR EWARM Compiler

Freedom Board for Kinetis K22F Hardware (FRDM-K22F)

Emulating I2S bus on KE06

Kinetis Bootloader to Update Multiple Devices in a Field Bus Network

TWR-KM34Z50MV3 Quick Start Guide

Quick Start Guide. TWR-KV10Z32 Development Kit for Kinetis KV1x Family TOWER SYSTEM

KL03 Product Brief Supports all KL03 devices

Quick Start Guide. TWR-VF65GS10 For Vybrid Controller Solutions Based on ARM Cortex -A5 and Cortex-M4 Processors with the DS-5 Toolchain TOWER SYSTEM

PAC5523EVK1. Power Application Controllers. PAC5523EVK1 User s Guide. Copyright 2017 Active-Semi, Inc.

FRDM-KW41Z Freedom Development Board

Kinetis KL2x Ultra-Low-Power MCUs with USB

Table of Contents 1 Typical Applications General Description Block Diagram Pinout System Connections Typical A

Working around ERR7026 according to application needs

Kinetis SDK v Release Notes for the MK21DA5 and MKW24D5 Devices

Kinetis Bootloader v1.2.0 Release Notes

TWR-KV58F220M Tower Module User's Guide

S12VR Hardware Design. Guidelines. 1 Introduction. 2 Hardware Design. Guidelines. 2.1 Voltage regulator. Freescale Semiconductor

KW40 ZumoBot Reference Design

Freescale Kinetis Software Development Kit Release Notes

Quick Start Guide (QSG) for - FRDM-KEAZ128 - FRDM-KEAZ64 - FRDM-KEAZN32

Quick Start Guide TRK-KEA. Kinetis EA Series MCUs for Automotive Electronics Applications. StarterTRAK

Quick Start Guide. TWR-K60D100M Low-Power MCU with USB, Ethernet and Encryption TOWER SYSTEM

TWR-LS1021A Getting Started

Kinetis SDK Release Notes for the TWR-K24F120M Tower System Module

Kinetis EA Ultra-Reliable Microcontrollers. Automotive and Industrial Applications

TWR-KE18F. Quick Start Guide. 32-bit Kinetis MCU based on ARM Cortex -M4 provides up to 168 MHz CPU performance, up to 512 KB flash with 64 KB SRAM

FRDM-KW36 Freedom Development Board User s Guide

TWR-K80F150M Quick Start Guide

Reference Design KL25-AGMP01 User Guide 10-Axis Data Logger Tool Kit

Kinetis KV5x Real-Time Control MCUs with Ethernet Up to 1 MB Flash and 256 KB SRAM

Kinetis SDK v Release Notes for KV5x Derivatives

Quick Start Guide for TWR-MC56F8257 TOWER SYSTEM MC56F8257. For power conversion and motor control applications

Quick Start Guide for TWR-S08MM128-KIT TOWER SYSTEM MC9S08MM128. The industry s most complete solution for portable medical applications

Getting Started with Freescale MQX RTOS for Kinetis SDK and Kinetis Design Studio IDE

TWR-K22F120M Tower Module User s Guide

Adding a run control interface into an existing CodeWarrior for MCU v10.x project

FRDM-KEA QUICK START GUIDE (QSG) FRDM-KEAZ128 FRDM-KEAZ64 FRDM-KEAZN32 Ultra-Reliable MCUs for Industrial and Automotive Applications

S32K144 EVB QUICK START GUIDE REV4.2 APPLIES FOR: S32K144 EVB (SCH REV B) EXTERNAL USE

Freescale MQX RTOS TWR-K64F120M Release Notes

Freescale. TWR-KL25Z Tower Module User Manual TWR-KL25Z-UM Rev. 1.0

Kinetis Bootloader Demo Application User's Guide

Integrate TWR-EPD Software with MQX RTOS Based on the TWR-K21F120M Platform

PMSM Field-Oriented Control Using MC56F84789 DSC With Encoders Demo Guide

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

HYDRA-X10. Power Application Controllers TM. PAC HYDRA-X User s Guide. Copyright 2014 Active-Semi, Inc.

Flash Core Voltage Supply Requirements and Considerations

TWR-LS1021A Getting Started

Getting Started with the MCU Flashloader

How to Implement USB Suspend/Resume Feature with MCUXpresso SDK USB Stack

MMA845x Driver: Quick Start Guide

Smart Plug Software Design Reference Manual

S32K142 EVB QUICK START GUDE REV3.1 APPLIES FOR: S32K142 EVB (SCH_29701 REV D/C) EXTERNAL USE

HYDRA-X23/X23S. Power Application Controllers. PAC HYDRA-X User s Guide. Copyright 2014 Active-Semi, Inc.

KIT33972AEWEVBE Evaluation Board

WPR1500-LDO MP Receiver V2.1 Reference Design User s Guide

Kinetis USB-KW41Z Wireless Protocol Sniffer Quick Start Guide

Watt Saver Software Component (WSC)

ET-UARTSWD Users Guide

Kinetis Updater User's Guide

Using DMA for Pulse Counting on S32K

HVP-56F82748 Quick Start Guide

Transcription:

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 for rapid prototyping of microcontroller-based applications. The hardware design is form-factor compatible with popular third-party hardware designed to work with Arduino and Arduino-compatible boards. The Freescale KL03Z freedom board (FRDM-KL03Z) is a simple, yet sophisticated design featuring a Kinetis L Series microcontroller KL03Z, a 3.3 V microcontroller built on the ARM Cortex -M0+ core. The Kinetis L series is the most scalable portfolio of low-power, high-robustness, mixed signal 32-bit ARM Cortex-M0+ MCUs running up to 48 MHz in the industry. It supports power supply voltage range from 1.71 V to 3.6 V, ambient operating temperature ranges from 40C to 105C and includes up to 64 KB flash. The FRDM-KL03Z includes the Freescale open standard embedded serial and debug adapter known as OpenSDA. Contents 1 Overview..................................... 1 2 Reference documents........................... 2 3 Getting started................................. 2 4 FRDM-KL03Z hardware overview.................. 2 5 FRDM-KL03Z hardware description................ 4 5.1 Power supply.............................. 4 5.2 Serial and Debug Adapter (OpenSDA).......... 6 5.3 Clock source.............................. 7 5.4 Serial port................................ 8 5.5 Reset.................................... 8 5.6 Debug................................... 8 5.7 Capacitive touch slider...................... 8 5.8 3-axis accelerometer........................ 9 5.9 RGB LED................................ 10 5.10 Input/output headers....................... 10 5.11 Arduino compatibility....................... 11 2014 Freescale Semiconductor, Inc. All rights reserved.

Reference documents This circuit offers the user several options for serial communications, flash programming, and run-control debugging. There are also many software development tool options available to the user. Choices include Kinetis Design Studio (KDS), IAR Embedded Workbench, Keil MDK featuring the µvision IDE, etc. All of these features combine to give the user the freedoms needed to rapidly prototype many embedded designs: a powerful microcontroller built on a very low-power core and SoC platform, easy-access to I/O with a large ecosystem of compatible hardware, a flexible programming and debug interface, and a large ecosystem of software development environments. Freedom! 2 Reference documents OpenSDA User s Guide KL03 Sub-Family Reference Manual Arduino Overview Arduino Uno A guide for users of the OpenSDA embedded circuit A reference manual for KL03 sub-family devices A guide to the Arduino platform A guide to the Arduino Uno revision 3 Getting started Refer to the FRDM-KL03Z Quick Start Package for step-by-step instructions for getting started with the freedom board. See the Jump Start Your Design section on http://www.freescale.com/frdm-kl03z for the Quick Start Package and software lab guides. 4 FRDM-KL03Z hardware overview The FRDM-KL03Z hardware is a Freescale Freedom development platform microcontroller board assembled with the following features: Kinetis L Series KL03 family MCU MKL03Z32VFK4 in a 24 QFN package On-board serial and debug adapter (OpenSDA) I/O headers for easy access to MCU I/O pins Freescale inertial sensor MMA8451Q Capacitive touch slider Reset push button RGB LED Infrared communication Motor control header for simple BLDC motor control on APMOTOR56F8000E Figure 1 shows a block diagram of the FRDM-KL03Z board. 2 Freescale Semiconductor

FRDM-KL03Z hardware overview Figure 1. FRDM-KL03Z block diagram The FRDM-KL03Z features two microcontrollers (MCUs): the target MCU and a serial and debug adapter (OpenSDA) MCU. The target MCU is a Kinetis L Series KL03 family device, the KL03Z32VFK4. The OpenSDA MCU is a Kinetis K Series K20 family device, the K20DX128VFM5. Features of the KL03Z32VFK4 target MCU include: 32-bit ARM Cortex-M0+ core Up to 48 MHz operation Single-cycle fast I/O access port Memories 32 KB flash 2 KB SRAM 8 KB ROM with build-in bootloader 16-byte regfile System integration Nine low-power modes to provide power optimization based on application requirements COP Software watchdog Low-leakage wakeup unit SWD debug interface and Micro Trace Buffer Freescale Semiconductor 3

Bit manipulation engine (BME) for read-modify-write peripheral operations Clocks 48 MHz high accuracy internal reference clock 8/2 MHz low power internal reference clock 32 khz to 40 khz crystal oscillator 1 khz LPO clock Analog peripherals 12-bit SAR ADC with internal voltage reference, up to 7 channels High-speed analog comparator containing a 6-bit DAC and programmable reference input 1.2 V voltage reference (Vref) Communication peripherals one 8-bit Serial Peripheral Interface (SPI) one I2C module one UART module Timers two 2-channel Timer/PWM modules one Low-Power Timer (LPTMR) Real time clock (RTC) System tick timer One watchdog module Security 80-bit unique identification number per chip Human-Machine Interfaces (HMI) General purpose input/output up to 22 GPIO interrupt external input pin for LLWU in LLS and VLLSx mode 5 FRDM-KL03Z hardware description 5.1 Power supply The FRDM-KL03Z offers a design with multiple power supply options. It can be powered from the USB connector, the VIN pin on the I/O header, an off-board 1.71 3.6 V supply from the 3.3 V pin on the I/O header or 3.3 V from motor control header. The USB and VIN supplies are regulated on-board using a 3.3 V linear regulator to produce the main power supply. The other two sources are not regulated on-board. Figure 2 shows the schematic drawing for the power supply inputs and the on-board voltage regulator. 4 Freescale Semiconductor

Figure 2. FRDM-KL03Z power supply Table 1 provides the operational details and requirements for the power supplies. Table 1. Power supply requirements Supply Source Valid Range OpenSDA Operational? Regulated on-board? OpenSDA USB (J7) 5 V Yes Yes P5V0 9V0_VIN Pin on I/O header 4.3 9 V Yes Yes P3V3 Pin on I/O header 1.71 3.6 V Yes No Note that the OpenSDA circuit is only operational when a USB cable is connected and supplying power to J9. However, the protection circuitry is in place to allow multiple sources to be powered at once. Table 2. FRDM-KL03Z power supplies Power supply name Description P5V0-9V0_VIN Power supplied from the V IN pin of the I/O headers (J3 pin 8). P5V_USBSER P3V3_VREG P3V3 P3V3_MCU P3V3_USBSER Power supplied from the OpenSDA USB connector (J9). Regulated 3.3 V supply. Sources power to the P3V3 supply rail through a back drive protection Schottky diode. Main supply rail for the FRDM-KL03Z. Can be sourced from P3V3_VREG. KL03Z MCU power supply. Header J10 provides a convenient means for KL03Z energy consumption measurements. OpenSDA circuit power supply. Freescale Semiconductor 5

NOTE J10 and J5 are not populated by default on the production version. The two pins of these headers are shorted together by 0 resistor R27 and R28 on the PCB. To measure the energy consumption of either the KL03Z or the OpenSDA MCU, the 0 resistor between these pins must first be cut. A current probe or a shunt resistor and voltage meter can then be applied to measure the energy consumption on these rails. When the MCU current measurement is done with no further need, this 0 resistor can be soldered on again. 5.2 Serial and Debug Adapter (OpenSDA) OpenSDA is an open-standard serial and debug adapter. It bridges serial and debug communications between a USB host and an embedded target processor as shown in Figure 3. The hardware circuit is based on a Freescale Kinetis K20 family microcontroller (MCU) with 128 KB of embedded flash and an integrated USB controller. OpenSDA features a mass storage device (MSD) bootloader, which provides a quick and easy mechanism for loading different OpenSDA applications such as flash programmers, run-control debug interfaces, serial-to-usb converters, and more. Two or more OpenSDA applications can run simultaneously. For example, run-control debug application and serial-to-usb converter run in parallel to provide a virtual COM communication interface while allowing code debugging via OpenSDA with just a single USB connection. These two applications are provided in a single code package. Refer to the OpenSDA User s Guide for more details. Figure 3. OpenSDA block diagram OpenSDA is managed by a Kinetis K20 MCU built on the ARM Cortex-M4 core. The OpenSDA circuit includes a status LED (D1) and a RESET push button (SW1). The push button asserts the Reset signal to the KL03Z target MCU. It can also be used to place the OpenSDA circuit into Bootloader mode by holding 6 Freescale Semiconductor

down the RESET push button while plugging the USB cable into USB connector J9. Once the OpenSDA enters Bootloader mode, other OpenSDA applications such as a debug application can be programmed. SPI and GPIO signals provide an interface to the SWD debug port of the KL03Z. Additionally, signal connections are available to implement a UART serial channel. The OpenSDA circuit receives power when the USB connector J9 is plugged into a USB host. 5.2.1 Debugging interface Signals with SPI and GPIO capability are used to connect directly to the SWD of the KL03Z. These signals are also brought out to a standard 10-pin (0.05 ) Cortex Debug connector (J7) as shown in Figure 4. It is possible to isolate the KL03Z MCU from the OpenSDA circuit and use J7 to connect to an off-board MCU. To accomplish this, cut the trace between pin1 and pin2 of J6 on the bottom layer. This will disconnect the SWD_CLK pin to the KL03Z so that it will not interfere with the communications to an off-board MCU connected to J7. Figure 4. SWD debug connector to KL03Z 5.2.2 Virtual serial port A serial port connection is available between the OpenSDA MCU and LPUART0 pin PTB1(TXD) and PTB2 (RXD) of KL03Z. Several of the default OpenSDA applications provided by Freescale, including the MSD Flash Programmer and the P&E Debug Application, provide a USB Communications Device Class (CDC) interface that bridges serial communications between the USB host and this serial interface on the KL03Z. PTB2 is a multiplex pin with VREF_CAP and LPUART0, furthermore PTB2 is configured to manage the LPUART0_RX function under ROM Bootloader mode. There is one 0.1 F capacitor C35 on the PTB2 pin for VREF stability. We recommend using a maximum baud rate of 38400 bps. If the baud rate increases, C35 should be removed. 5.3 Clock source The Kinetis KL03 microcontrollers feature an on-chip oscillator compatible with low ranges of input crystal or resonator frequencies: 32 KHz to 40 KHz (low frequency mode). The KL03Z on the FRDM-KL03Z is clocked from a 32,768 Hz crystal. Freescale Semiconductor 7

5.4 Serial port The serial port interface signals used with OpenSDA are UART0 pin PTB1 (TXD) and PTB2 (RXD). These signals are also connected to I/O header J1. 5.5 Reset The RESET signal on the KL03Z is connected externally to a push button, SW1. The reset button can be used to force an external reset event in the target MCU. The reset button can also be used to force the OpenSDA circuit into bootloader mode when plugging the USB cable to J9. Please refer to Section 5.2, Serial and Debug Adapter (OpenSDA) for more details. 5.6 Debug The sole debug interface on all Kinetis L Series devices is a Serial Wire Debug (SWD) port. The primary controller of this interface on the FRDM-KL03Z is the onboard OpenSDA circuit. However, a 25-pin (0.05 ) Cortex Debug connector, J7, provides access to the SWD signals for the KL03Z MCU. Table 3 shows SWD connector signal descriptions for KL03Z. 5.7 Capacitive touch slider Table 3. ARM JTAG/SWD mini connector description Pin Function Connection to KL03Z 1 VTref P3V3_MCU 2 SWDIO/TMS PTA2 3 GND GND 4 SWDCLK/TCK PTA0 5 GND GND 6 SWO/TDO NC 7 NC NC 8 TDI NC 9 NC NC 10 RESET PTA1 Two GPIO pins functioning as Touch Sense Input (TSI) signals are connected to capacitive electrodes configured as a touch slider, as shown in Figure 5. 8 Freescale Semiconductor

Figure 5. Touch slider connection 5.8 3-axis accelerometer A Freescale MMA8451Q low-power, three-axis accelerometer is interfaced through an I 2 C bus and two GPIO signals as shown in Table 4. By default, the I 2 C address is 0x1D (SA0 pulled high). Table 4. Accelerometer signal connections MMA8451Q KL03Z SCL PTB3 SDA PTB4 INT1 INT2 PTA12 Figure 6. Accelerometer connection Freescale Semiconductor 9

5.9 RGB LED Three PWM-capable KL03Z signals are connected to a red-green-blue LED. The signal connections are shown in Table 5. Table 5. RGB LED signal connections RGB LED Red cathode Green cathode Blue cathode KL03Z PTB10/TPM0_CH1/SPI0_SS_b PTB11/TPM0_CH0/SPI0_MISO PTB13/CLKOUT32K/TPM1_CH1/RTC_CLKOUT 5.10 Input/output headers Figure 7. RGB LED connection The MKL03Z32VFK4 microcontroller is packaged in a 24-pin QFN. Some pins are utilized in on-board circuitry, but many are directly connected to one of four I/O headers (J1, J2, J3, and J4). 10 Freescale Semiconductor

FRDM-KL03Z hardware description ದ 37% ದ 37% ದ $5() ದ *1' ದ 37% ದ 37$ ದ 37$ ದ 37$ ದ 37% ದ 37% 6'$B37' ದ,25()ದ 5(6(7 ದ 9ದ 9ದ *1'ದ *1'ದ 9,1 ದ ದ 37$ ದ 37% ದ 37% ದ 1& ದ 37% ದ 1& ದ 37% ದ 37% 37$ ದ 37$ ದ 37$ ದ 37$ ದ 37% ದ 6'$B37' ದ Figure 8. I/O headers 5.11 Arduino compatibility The I/O headers on the FRDM-KL03Z are arranged to allow compatibility with peripheral boards (known as shields) that connect to Arduino and Arduino-compatible microcontroller boards. The pins on the Freescale Semiconductor 11

headers share the same mechanical spacing and placement as the I/O headers on the Arduino Uno Revision 3 board design. See Figure 8 for compatible signals. How to Reach Us: Home Page: freescale.com Web Support: freescale.com/support Information in this document is provided solely to enable system and software implementers to use Freescale products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits based on the information in this document. Freescale reserves the right to make changes without further notice to any products herein. Freescale makes no warranty, representation, or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Typical parameters that may be provided in Freescale data sheets and/or specifications can and do vary in different applications, and actual performance may vary over time. All operating parameters, including typicals, must be validated for each customer application by customer s technical experts. Freescale does not convey any license under its patent rights nor the rights of others. Freescale sells products pursuant to standard terms and conditions of sale, which can be found at the following address: freescale.com/salestermsandconditions. Freescale, the Freescale logo, and Kinetis are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. All other product or service names are the property of their respective owners. ARM and Cortex are the registered trademarks of ARM Limited. ARM M0+ is the trademark of ARM Limited. 2014 Freescale Semiconductor, Inc. Document Number: FRDMKL03ZUG Rev. 0 7/2014