Freescale Semiconductor FRDM-KL27Z User Manual

Freescale Semiconductor, Inc.
Document Number: FRDMKL27ZUG
User’s Guide
FRDM-KL27Z User’s Guide
Rev. 0, 02/2015
1 Introduction
The Freescale Freedom development board 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 KL27Z Freedom board (FRDM-KL27Z) is a simple, yet sophisticated design featuring a Kinetis L series microcontroller KL27Z, a 3.3V microcontroller built on the ARM® Cortex®-M0+ core.
The Kinetis L series is the most scalable portfolio of low-power, robust, mixed signal 32-bit ARM Cortex-M0+ MCUs running up to 48 MHz in the industry. It supports power supply voltage range from 1.71V to 3.6V, ambient operating temperature ranges from -40°C to 105°C and includes up to 64 KB flash.
The FRDM-KL27Z includes the Freescale open standard embedded serial and debug adapter known as OpenSDA. This circuit offers the user several options for serial communications, flash programming and run-control debugging.
Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2. Reference documents . . . . . . . . . . . . . . . . . . . . . . . . . . 2
3. Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
4. FRDM-KL27Z hardware overview . . . . . . . . . . . . . . . 2
5. FRDM-KL27Z hardware description . . . . . . . . . . . . . 4
5.1. Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5.2. Serial and debug adapter (OpenSDA) . . . . . . . . . . . . . 6
5.3. Debugging interface . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5.4. Virtual serial port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5.5. Clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5.6. Serial port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.7. Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.8. Debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.9. Capacitive touch slider . . . . . . . . . . . . . . . . . . . . . . . . 8
5.10. 6-axis accelerometer and magnetometer . . . . . . . . . . . 9
5.11. RGB LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5.12. Input/output headers . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.13. Arduino compatibility . . . . . . . . . . . . . . . . . . . . . . . . 11
6. Using the FRDM-KL27Z with EEMBC ULPBench . 12
6.1. Hardware modifications required for EnergyMonitor 12
6.2. Programming the ULPBench device software . . . . . 12
6.3. Hardware configuration . . . . . . . . . . . . . . . . . . . . . . . 12
6.4. EnergyMonitor connections . . . . . . . . . . . . . . . . . . . 13
7. Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
© 2015 Freescale Semiconductor, Inc. All rights reserved.
Reference documents
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 users the freedom 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.
2 Reference documents
OpenSDA User’s Guide: A guide for users of the OpenSDA embedded circuit
KL27 Sub-Family Reference Manual: A reference manual for KL27 sub-family devices
Arduino Overview: A guide to the Arduino platform
Arduino Uno: A guide to Arduino Uno revision
3 Getting started
Refer to the FRDM-KL27Z Quick Start Package for step-by-step instructions for getting started with the freedom board. See the “Jump Start Your Design” section at freescale.com/FRDM-KL27Z for the Quick Start Package and software lab guides.
4 FRDM-KL27Z hardware overview
The FRDM-KL27Z hardware is a Freescale Freedom development board assembled with the following features:
Kinetis L series KL27 family MCU MKL27Z64VLH4 in an 64 LQFP package
On-board serial and debug adapter (OpenSDA)
I/O headers for easy access to MCU I/O pins
Freescale inertial sensor, MMA8451Q, Magnetometer MAG3110
Capacitive touch slider
Reset pushbutton
NMI and LLWU buttons
RGB LED
Infrared communication
Thermistor sensor
Supports the EEMBC ULPBench benchmark
Figure 1 shows a block diagram of the FRDM-KL27Z board.
2 Freescale Semiconductor, Inc.
FRDMKL27Z User’s Guide, Rev. 0, 02/2015
Figure 1. FRDM-KL27Z block diagram
FRDM-KL27Z hardware overview
The FRDM-KL27Z features two microcontrollers (MCUs): the target MCU and a serial and debug adapter (OpenSDA) MCU. The target MCU is a Kinetis series KL27 family device, the KL27Z64VLH4. The OpenSDA MCU is a Kinetis K series K20 family device, the K20DX128VFM5.
Features of the KL27Z64VLH4 target MCU include:
32-bit ARM Cortex-M0+ core
— Up to 48 MHz operation
— Single-cycle fast I/O access port
Memories
— 64 KB flash
— 16 KB SRAM
— 16 KB ROM with build-in bootloader
— 32 bytes regfile
System integration
— 4-channel DMA controller
— Watchdog
— Low-leakage wakeup unit
— SWD debug interface and Micro Trace Buffer
— Bit Manipulation Engine
•Clocks
— 48 MHz high accuracy internal reference clock
— 8/2 MHz low power internal reference clock
Freescale Semiconductor, Inc. 3
FRDMKL27Z User’s Guide, Rev. 0, 02/2015
FRDM-KL27Z hardware description
— 32-40 kHz, or 3-32 MHz crystal oscillator
— 1 kHz LPO clock
Analog peripherals
— 16-bit SAR ADC with internal voltage reference, up to 17 channels
— High-speed analog comparator containing a 6-bit DAC and programmable reference input
— 1.2 V voltage reference (Vref)
Communication peripherals
— USB full-speed slave controller supporting crystal-less recovery
— Two 16-bit SPI modules
— One UART module supporting ISO7816
— Two LPUART modules
—Two I2C modules supporting up to 1 Mbit/s
— One FlexIO module
•Timers
— One 6-channel Timer/PWM module
— Two 2-channel Timer/PWM modules
— One low-power timer
— Periodic interrupt timer
— Real-time clock
Security
— 80-bit unique identification number per chip
Human-Machine Interfaces (HMI)
— Up to 54 general purpose input/output (GPIO)
— GPIO interrupt
— External input pin for LLWU in LLS and VLLSx mode
5 FRDM-KL27Z hardware description
5.1 Power supply
The FRDM-KL27Z offers a design with multiple power supply options. It can be powered from the USB connector, battery on the board, the VIN pin on the I/O header, or an off-board 1.71-3.6V supply from the
3.3V pin on the I/O header. The USB and VIN supplies are regulated on-board using a 3.3V 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, Inc.
FRDMKL27Z User’s Guide, Rev. 0, 02/2015
FRDM-KL27Z hardware description
Figure 2. FRDM-KL27Z power supply
Table 1 provides the operational details and requirements for the power supplies.
Table 1. Tower supply requirements
Supply Source Valid Range
OpenSDA USB (J13) 5V Yes Yes
Mini USB(J10) 5V No Yes
P5V0-9V0_VIN Pin on I/O header 4.3-9V No Yes
P3V3 Pin on I/O header 1.71-3.6V No No
Battery 2-3.6V No No
OpenSDA
Operational?
Regulated
On-board?
NOTE
The OpenSDA circuit is only operational when a USB cable is connected and supplying power to J13. However, the protection circuitry is in place to allow multiple sources to be powered at once.
Table 2. FRDM-KL27Z power supplies
Power Supply Name Description
P5V0-9V0_VIN Power supplied from the V
P5V_SDA Power supplied from the OpenSDA USB connector (J13).
P5V_KL27Z Power supplied from the Mini USB connector (J10).
Freescale Semiconductor, Inc. 5
pin of the I/O headers (J3 pin 16).
IN
FRDMKL27Z User’s Guide, Rev. 0, 02/2015
Loading...
+ 9 hidden pages