Freescale Semiconductor FRDM-KE04Z User guide

Freescale Semiconductor
Document Number: FRDMKE04ZUM
User's Guide
FRDM-KE04Z User’s Guide
User Guide
by: Wang Peng
Rev 0, 02/2014
Contents

1 Overview

The Freescale Freedom development platform is an ideal evaluation and development tool 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 KE04Z Freedom board (FRDM-KE04Z) is a simple, yet sophisticated design featuring a Kinetis E series microcontroller KE04Z, a 5 V microcontroller built on the ARM® Cortex®-M0+ core.
The Kinetis E 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 2.7 V to 5.5 V, ambient operating temperature ranges from -40 °C to 105 °C and includes up to 128 KB flash.
The FRDM-KE04Z board includes the Freescale open standard embedded serial and debug adapter known as OpenSDA. This circuit offers several options for serial communications, flash programming and run-control debugging to the user.
There are also many software development tool options available to the user. Choices include CodeWarrior for Microcontrollers, IAR Embedded Workbench, Keil MDK
1 Overview....................................................................1
2 Getting started........................................................... 2
3 FRDM-KE04Z hardware overview...........................2
4 FRDM-KE04Z hardware description........................4
4.1 Power supply...................... ........................... 4
4.2 Serial and Debug Adapter
(OpenSDA).....................................................5
4.2.1 Debugging interface.........................6
4.2.2 Virtual serial port.......... .................. 7
4.3 KE04Z microcontroller............ ......................7
4.3.1 Clock Source.............. ..................... 7
4.4 Infrared port................................................... 8
4.5 Capacitive touch slider............. ..................... 9
4.6 Three-axis accelerometer..............................10
4.7 RGB LED.......................... .......................... 11
4.8 Input/Output headers....................................12
4.9 Arduino compatibility..................................13
5 References.............................. ................................. 13
6 Revision history.......................... ............................ 14
© 2014 Freescale Semiconductor, Inc.

Getting started

featuring the µVision IDE, Red Suite from Code Red Technologies, Atollic TrueSTUDIO, Rowley Crossworks, and more.
All of these features are combined to give freedom to the user to rapidly prototype the 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 Getting started
Refer to the FRDM-KE04Z Quick Start Package for step-by-step instructions for getting started with the Freedom board. See Quick Start Package and Software Lab guides available on freescale.com.

3 FRDM-KE04Z hardware overview

The FRDM-KE04Z hardware is a Freescale Freedom development platform microcontroller board assembled with the following features:
• Kinetis E Series KE04 family MCU MKE04Z8VFK4 in an 24 QFN package
• Onboard serial and debug adapter (OpenSDA)
• I/O headers for easy access to MCU I/O pins
• Freescale inertial sensor, MMA8451Q
• Capacitive touch slider
• Reset pushbutton
• RGB LED
• Infrared communication
• Motor control header for simple BLDC motor control on APMOTOR56F8000E
FRDM-KE04Z User’s Guide, Rev 0, 02/2014
2 Freescale Semiconductor, Inc.
FRDM-KE04Z hardware overview
Figure 1. FRDM-KE04Z block diagram
The FRDM-KE04Z features two microcontrollers (MCUs): the target MCU and the serial and debug adapter (OpenSDA) MCU. The target MCU is a Kinetis E series KE04 family device, the KE04Z8VFK4. The OpenSDA MCU is a Kinetis K series K20 family device, the K20DX128VFM5.
Features of the KE04Z8VFK4 target MCU include:
• 32-bit ARM Cortex-M0+ core
• Up to 48 MHz operation
• Single-cycle fast I/O access port
• Aliased SRAM bitband region
• Memories
• 8 KB flash
• 1 KB SRAM
• System integration
• Power management and mode controllers
• Low-leakage wakeup unit
• Bit manipulation engine (BME) for read-modify-write peripheral operations
• Clock
• Clock generation module with FLL for system and CPU clock generation
• 32 kHz internal reference clock
• System oscillator supporting external crystal or resonator
• Low-power 1 kHz RC oscillator for RTC and watchdog
• Analog peripherals
• 12-bit SAR ADC
• Two analog comparators
FRDM-KE04Z User’s Guide, Rev 0, 02/2014
Freescale Semiconductor, Inc. 3

FRDM-KE04Z hardware description

• Communication peripherals
• One 8-bit serial peripheral interface (SPI)
• One I2C module
• One UART module
• Timers
• One 6-channel FlexTimer module (FTM)
• One 2-channel timer/PWM module
• One 2-channel periodic interrupt timer (PIT)
• Real-time clock (RTC)
• System tick timer
• One watchdog module
• Security
• One CRC
• Human-Machine Interfaces (HMI)
• General purpose input/output controller
• Two 8-bit keyboard interrupt modules (KBI)
• External interrupt (IRQ)
FRDM-KE04Z hardware description
4
4.1
The FRDM-KE04Z 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 onboard. Figure 2 shows the schematic drawing for the power supply inputs and the onboard voltage regulator.

Power supply

Figure 2. FRDM-KE04Z block diagram
Table 1 provides operational details and requirements for the power supplies.
FRDM-KE04Z User’s Guide, Rev 0, 02/2014
4 Freescale Semiconductor, Inc.
FRDM-KE04Z hardware description
Table 1. Power supply requirements
Supply source Valid range OpenSDA operational? Regulated onboard?
OpenSDA USB (J7) 5 V >Yes Yes VIN pin on I/O header 4.3–9 V Yes Yes
3.3V pin on I/O header 1.71–3.6 V Yes No
3.3V pin on motor control header
3.3 V Yes No
NOTE
The OpenSDA circuit is only operational when a USB cable is connected and supplying power to J6. However, the protection circuitry is in place to enable multiple sources to be powered at once.
Table 2. FRDM-KE04Z power supplies
Power supply name Description
P5–9V_VIN Power supplied from the VIN pin of the I/O headers (J4 pin 16). P5V_SDA Power supplied from the OpenSDA USB connector (J6). P3V3_VREG Regulated 3.3 V supply. Sources power to the P3V3 supply rail through a back drive protection
Schottky diode.
P3V3 Main supply rail for the FRDM-KE04Z. Can be sourced from P3V3_VREG, or directly from the I/O
headers (J4 pin 8), or from P3V3_MOTOR.
P3V3_KE04Z KE04Z MCU power supply. Header J9 provides a convenient means for KE04Z energy
consumption measurements.
P3V3_SDA OpenSDA circuit power supply. Header J10 provides a convenient means for K20 energy
consumption measurements.
P5V_USB Nominal 5 V supplied to the I/O headers (J4 pin 10). Sourced from P5V_SDA supply through a
back drive protection Schottky diode.
P3V3_MOTOR 3.3 V supply from motor control header.
NOTE
• J9 and J10 are not populated by default on the production version. The two pins of these headers are shorted together using the 0 Ω resistors R12 and R26 on the PCB. To measure the energy consumption of either KE04Z or 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 complete and no longer required, the 0 Ω resistors can be soldered on again.
• To get ADC accuracy on KE04Z, it is recommended that a 0 Ω resistor R13 be soldered on and ensure there is no power supply from P3V3_MOTOR and P3V3 sourced from I/O headers.
4.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
FRDM-KE04Z User’s Guide, Rev 0, 02/2014
Freescale Semiconductor, Inc. 5
Loading...
+ 11 hidden pages