FRDM-KL02Z User Manual Rev. 0 Freescale Semiconductor Inc.
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 Freedom KL02Z hardware is a simple, yet sophisticated design featuring a Kinetis L Series microcontroller, the industry’s first microcontroller built on the ARM Cortex-M0+ core.
1. Slide Down to Unlock. Sliding your finger down along the TSS Pad E1 (from “2” to “1”) will unlock the tilt functionality of the demo. 2. Tilt to adjust the LED. With the demo “Unlocked”, tilting the board will change the RGB values displayed on the LED 3. Slide Up to Lock. Sliding your finger up along the TSS Pad E1 (from “1” to “2”) will unlock the tilt functionality of the demo, and the LED will only display the default color.
Figure 2. FRDM-KL02Z Feature Call-outs The target MCU featured on the FRDM-KL02Z is a Kinetis L Series KL0 family device, the KL02Z32VLK4.
• • • • - System oscillator supporting external crystal or resonator - Low-power 1kHz RC oscillator for COP watchdog Analog peripherals - 12-bit SAR ADC w/ DMA support - High speed comparator Communication peripherals - One 8-bit Serial Peripheral Interfaces (SPI) - Two I2C modules - One low-power UART Timers - Two 2-channel Timer/PWM modules - Low-power Timer (LPT) - System tick timer Human-Machine Interfaces (HMI) - General purpose input/output controller 5. FRDM-KL02Z Hardware Description 5.1.
Figure 3. Power Supply Schematic Table 2. FRDM-KL02Z Power Supplies Power Supply Name P5-9V_VIN P5V0_USBER P3V3_VREG P3V3_BATT P3V3 P3V3_MCU P3V3_USBER Description Power supplied from the VIN pin of the I/O headers (J9 pin 8). 8 Power supplied from the OpenSDA USB connector (J2 and J9(pin J9( 5)). A Schottky diode provides back drive protection. Regulated 3.3V supply supply.. Sources power to the P3V3 supply rail through a back drive protection Schottky diode. 1 Coin cell battery supply voltage.
5.2. KL02Z Microcontroller 5.2.1. Clock Source The KL02Z32 on the FRDM-KL02Z is clocked from a 32.768KHz crystal. 5.2.2. Reset The PTA20/RESET signal on the KL02Z32 is connected externally to a pushbutton, SW1, and also to the OpenSDA circuit. The reset button can be used to force an external reset event in the target MCU.
5.4. 3-axis Accelerometer A Freescale MMA8451Q low-power, three-axis accelerometer is interfaced through an I2C bus and two GPIO signals as shown in Table 3 below. By default, the I2C address is 0x1D (SA0 pulled high). Table 3. Accelerometer Signal Connections MMA8451Q SCL SDA INT1 INT2 KL02Z32 PTB3 PTB4 NC PTA10 Figure 6. MMA8451Q Schematic Diagram 5.5. RGB LED Three PWM-capable KL02Z32 signals are connected to a red, green and blue LED. The signal connections are shown in Table 4 below. Table 4.
Figure 7. RGB LED Schematic Diagram 5.6. Input/Output Headers The KL02Z32VLK4 microcontroller is packaged in an 32-pin QFN. Some pins are utilized in on-board circuitry, but many are directly connected to one of four I/O headers. The pins on the KL02Z microcontroller are named for their general purpose input/output port pin function. For example, the 1st pin on Port A is referred to as PTA1. The I/O connector pin names are given the same name as the KL02Z pin connected to it, where applicable. 5.7.
6. FRDM-KL02Z OpenSDA Overview By default the FRDM-KL02Z board comes pre-programmed with the OpenSDA Bootloader. Using the OpenSDA Bootloader 1. Press and hold the Reset/Bootloader pushbutton while you plug in a USB cable (A to mini-B) to the OpenSDA USB connector (J2). Release the pushbutton. 2. The FRDM-KL02Z should enumerate as a mass-storage device with a volume label of "BOOTLOADER". 3. You may now drag/drop or copy/paste OpenSDA applications (e.g.
2. Open the Device Manager (e.g. Control Panel -> System and Security -> System -> Device Manager, or just type “Device Manager” in the search box of the Start Menu and hit Enter) 3. Look under “Other Devices” and locate the device with CDC in the name. Right click this device and choose “Update Driver Software”. 4. Choose to “Browse” for the driver and navigate to the enumerate Mass-Storage Device drive (“FRDM-KL02Z”) 5. Click “Install” and follow the on-screen prompts.