![]() |
MKMxxZxxACxx5 Bare Metal Software Drivers
R4.1.6
Reference Manual
|
This document describes the NXP® bare metal software drivers for Kinetis® M series of microcontrollers. These software drivers are provided in source code. The source code files are intended to be included directly into the application project or built separately into a statically linked library. This document gives you all information about bare metal drivers' configuration and their use in an application. The Directory Structure explains the source files and header files important for your application. The Drivers FAQ is available to answer the most common questions. Please read the License document for terms and conditions under which you can use the software.
CREATING NEW PROJECT
Execute make_project.exe
script from the "template" subfolder to create a new project. The script creates a new project based on selected toolchain, debugger probe, device derivative and project name. The new project can be either standalone or part of drivers' installation. The standalone project will be created in a specific subfolder and it will contain snapshot of all source files necessary to build application.
BASIC DATA TYPES AND MACROS
The drivers define some basic data types and conversion macros to support code portability between different hardware architectures and tools. These Basic Data Types definitions and Conversion Macros can be found in the common.h
header file.
CORE'S PLATFORM INTERFACE
The arm_cm0.h
header file contains constants, macros and inline functions which interface to the MKMxxZxxACxx5 core's platform architecture based on the ARM® Cortex®-M0+ core. Refer to MKMxxZxxACxx5 Platform Interface for more details.
BASIC I/O OPERATIONS
The iohw.h
header file declares several Basic Operations for making direct access to I/O registers supported by core platform's Bit Manipulation Engine (BME). The BME provides robust read-modify-write capability to low-end MKMxxZxxACxx5 microcontrollers and improves code density of the on-chip peripherals software drivers.
PERIPHERAL DRIVERS
NXP's MKMxxZxxACxx5 devices are integrated with powerful 24-bit Sigma Delta analogue to digital converter, low-noise Programmable Gain Amplifiers, timers, communication interfaces and additional on-chip peripherals. This document also contains a complete reference of the API driver functions and macros for each on-chip peripheral module and Pin Assignments. Supported bare metal software drivers listed in alphabetical order:
A | C | D | E | F | G | I | L | M | O | P | R | S | T | U | V | W | X |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ADC | CMP | DMA | EWM | FLL | GPIO | IRTC | LLWU | MCM | OSC | PIT | RCM | SIM | TMR | UART | VREF | WDOG | XBAR |
AFE | CRC | FTFA | I2C | LPTMR | MPU | OSC32K | PLL | RNGA | SMC | ||||||||
AIPS | PMC | SPI | |||||||||||||||
SWISR | |||||||||||||||||
SYST |
EXAMPLES
Software Examples demonstrate correct use of the MKMxxZxx(A)Cxx5 bare metal software drivers in an application. Each peripheral driver is complemented by one or more software examples depending on the driver complexity and number of features to be demonstrated.
BOOT MODES
NXP's MKMxxZxxACxx5 devices support several boot options. The preferred boot mode can be activated by uncommenting boot constants in the appconfig.h
file. For more information about boot time and current consumption profile for each supported boot mode refer to Boot Modes.
USEFUL LINKS
Here are some useful links to MKMxxZxxACxx5 Documentation.
RELEASE NOTES
Release Notes for the NXP's MKMxxZxxACxx5 bare metal software drivers. Send your feedback to bmdrv. @fre escal e.co m