NXP Designs Knowledge Base

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NXP Designs Knowledge Base

Discussions

Sort by:
The Motor Control Development Toolbox includes an embedded target supporting MCUs, Simulink™ plug-in libraries, and tool chain for configuring and generating the necessary software.     Features Generate code for standalone application with direct download to target support Optimized motor control library blocks including Park/Clarke transforms, digital filters, and general functions I/O blocks including CAN, SPI, PIT timer, Sine Wave Generation, eTimer, PWM and A/D. On-target profiling of functions and tasks Data acquisition and calibration using FreeMASTER tool Boot loader utility for programming application in flash Seamless integration with embedded coder including SIL and PIL test   Products Link S12ZVM S12ZVM Mixed-Signal MCUs|MagniV | NXP  S12ZVM Evaluation Board S12ZVM Evaluation Board | NXP  Links MCToolbox Automotive Block Diagram  
View full article
Overview During critical processes, an industrial diesel engine management system that includes an electric generator can supply emergency power to all vital and selected loads as desired. Today, most state-of-the-art- hospitals, manufacturing plants, telecommunications organizations, data centers, emergency facilities, large industries, and mining companies require uninterrupted power and have backup diesel engine generators that are reliable. As shown in the block diagram, NXP provides a full range of MCUs, barometric pressure sensors (BAP), and analog/mixed-signal IC drivers for improving diesel vehicle fuel economy, enhancing performance, and meeting emissions requirements in automotive applications. However, the NXP industrial diesel engine management solution is equally applicable in other industrial applications by changing the input sensors and outputs that require control. The NXP Industrial diesel engine management solution incorporates the MPC5777C Power Architecture® MCU that delivers advanced performance, timing systems, security, and functional safety capabilities. This includes a lockstep function that serves as a watchdog function to flag any problems with the MCU, support for advanced timers and ADCs, external memory, fault detection, and handling support, and the highest functional safety standards (ASIL-D) support. Together, this solution provides a reliable and high-performance solution to ensure your customers and their employees are safe. Block Diagram Recommended Products Category Link MCU MPC5777C|Engine Control MCU | NXP  Safety Power Management MC33905 | SBC Gen2 with High-Speed CAN and LIN | NXP  Physical Interface TJA1021 | LIN2.1/SAE J2602 Transceiver | NXP  Output Driver MC33800 | Engine Control Integrated Circuit | NXP  Motor Driver H-Bridge MC33931 | H-Bridge Motor Driver | NXP  MAP Sensor 20 to 105kPa, Absolute, Integrated Pressure Sensor | NXP  BAP Sensor -115 - 115kPa Gauge, Absolute Pressure Sensor | NXP  Injector Driver MC33810 | Automotive Engine Control IC | NXP  Input Signal and Sensor Interface MSDI | NXP 
View full article
Overview The NXP® Home Energy Manager (HEM) reference platform features an i.MX283 application processor, MC13224V ZigBee® module, 9S08QE32 MCU and MC34726 DC/DC buck. The reference platform is aimed at jumpstarting customer developments around the HAN (Home Area Network). Comprises a control board based on the low-power, yet powerful i.MX283 running connectivity interfaces to the: Smart meter Home automation system Broadband IP network User interface Micro-grid generation unit In order to accommodate a fast-paced changing connectivity landscape, the control board features extension connectors ready for: Powerline modems GPRS/3G data modem U-SNAP connectivity peripherals Mass storage cards Features Low-power Based on the latest low-power NXP ®  Arm9™ i.MX283  processor including integrated power management and supporting advanced voltage and frequency scaling techniques for optimized power consumption Running Our low-power ZigBee radio 1.5W max at full operating speed Low-cost Unique integration on the i.MX283 eliminates external components, enables 4-layer PCB Complete solution available Source code Hardware schematics Gerbers Bill of materials Complimentary software available through 3rd party partners Linux based frameworks Windows Embedded Compact 7 based framework Java-based framework Remote In-Home Display software Block Diagram Design Resources
View full article
Description Modern home appliances use electronics to provide a host of new features consumers expect. NXP MCUs and sensors keep up with the demand for constant improvements in reliability, cost, and energy efficiency. NXP helps to simplify consumers’ lives with sensor and MCU technology for home appliances. NXP technologies power the latest smart washing machine designs—from user interface, to motor control, to system management, to connectivity. Features Capacitive touch integrated in MCU and I2C devices TFT driving RF remote control NFC-based programming Display drivers, RTC, LED drivers Mux/Demux ESD protection AC power monitoring Fabric and detergent detection NFC-based maintenance Secure device identify Smart sensors Block Diagram Products Category Name 1: MCU Product URL 1 Arm® Cortex®-M4|Kinetis® KV3x Real-time Control MCUs | NXP  Product Description 1 The Kinetis® KV3x family of MCUs delivers a high-performance solution for BLDC, PMSM and ACIM motor control applications. Product URL 2 Arm Cortex-M0+|Kinetis KE1xZ 32-bit 5V MCUs with Touch Interface | NXP  Product Description 2 The robust TSI module provides a high level of stability and accuracy to any HMI system. Product URL 3 i.MX RT1050 MCU/Applications Crossover Processor| Arm® Cortex-M7, 512KB SRAM | NXP  Product Description 3 The i.MX RT1050 provides a Advanced multimedia for GUI and enhanced HMI. Includes a support to Wireless connectivity interface for Wi-Fi®, Bluetooth®, Bluetooth Low Energy, ZigBee® and Thread™ Category Name 2: Real Time Clock Product URL 1 PCF2123 | NXP  Product Description 1 The PCF2123 is a CMOS Real-Time Clock (RTC) and calendar optimized for low power applications. Category Name 3: Drivers Product URL 1 Universal LCD driver for low multiplex rates | NXP  Product Description 1 The PCF85133 is a peripheral device which interfaces to almost any Liquid Crystal Display (LCD) with low multiplex rates. Product URL 2 PCA9955BTW | NXP  Product Description 2 The PCA9955B is an I2C-bus controlled 16-channel constant current LED driver optimized for dimming and blinking 57 mA Red/Green/Blue/Amber (RGBA) LEDs in amusement products. Product URL 3 TEA172x | NXP  Product Description 3 These highly integrated devices enable low no-load power consumption below 10 mW, reduce component count for a cost-effective application design, and provide advanced control modes that deliver exceptional efficiency. Category Name 4: NFC Product URL 1 NTAG I2C | NXP  Product Description 1 The NTAG I2C plus has been designed to be the perfect enabler for NFC in home-automation and consumer applications, this connected NFC tag is the fastest, least expensive way to add tap-and-go connectivity to just about any electronic device. Category Name 5: Wireless Product URL 1 Zigbee and IEEE 802.15.4 wireless microcontroller with 512 kB Flash, 32 kB RAM | NXP  Product Description 1 The JN5169 is an ultra-low-power, high-performance wireless MCU suitable for ZigBee® applications. Product URL 2 Low-Power Multi-Channel UHF RF Wireless Platform | NXP  Product Description 2 The OL2385 device is a radio frequency transceiver with an embedded MCU designed for a wide range of industrial and home applications requiring very high link budget for bi-directional RF communication. Product URL 3 QN908x: Ultra-Low-Power Bluetooth Low Energy System on Chip (SoC) Solution | NXP  Product Description 3 QN908x integrates a Bluetooth Low-Energy radio, controller, protocol stack and profile software on a single chip, providing a flexible and easy to use Bluetooth Low Energy SoC solution. Category Name 6: Security Product URL 1  A71CH | Plug and Trust for IoT | NXP  Product Description 1 A71CH is a ready-to-use secure element for IoT devices providing a root of trust at the IC level and delivers, chip-to-cloud security right out of the box, so you can safely connect to IoT clouds and services, including AWS, IBM Watson IoT™ Platform, and Google Cloud™ IoT Core without writing security code or exposing keys. Demos i.MX RT1050 EVK i.MX RT1050 EVK with Storyboard Suite Demo Applications  Tools Product Link TWR-KV31F120M: Kinetis® KV3x Family Tower® System Module TWR-KV31F120M|Tower System Board|Kinetis® MCUs | NXP  FRDM-KE15Z: Freedom Development Platform for Kinetis® KE1xMCUs FRDM-KE15Z Platform|Freedom Development Board | NXP  MIMXRT1050-EVK: i.MX RT1050 Evaluation Kit i.MX RT1050 Evaluation Kit | NXP  OM13512: Demoboard for the SPI-bus RTC PCF2123 Demoboard for the SPI-bus RTC PCF2123 | NXP  NTAG I2C plus Explorer Kit with NFC Reader OM5569-NT322ER | NTAG I2C plus Explorer Kit + reader | NXP  OM15020: JN5169 USB Dongle for ZigBee JN5169 USB Dongle for ZigBee | NXP  TEA1721BDB1065: TEA1721 universal mains white goods flyback SMPS demo board TEA1721 universal mains white goods flyback SMPS demo board | NXP 
View full article
The demo from Code is an ultra-compact Sub-GHz to Wi-Fi Border Router solution for use in Home Automation Wireless Sensor Nodes, Smart Lighting, Smart City, Smart Meters, Smart Parking and IoT. The demo consists of an NXP SCM-i.MX 6SoloX V-Link device (i.MX6SoloX/PF0100/512MB LPDDR2) + Code V-Link Top board with 802.11a/b/g/n/ac module + Code Carrier board with the Phalanx Border Router. The Phalanx Border Router provides an optimized mesh network for sensing applications SCM V-Link technology is ideal for space-constrained applications allowing customers to integrate vertically. Features: Top board: Broadcom 2.4 GHz & 5 GHz Wi-Fi, 802.11 a/b/g/n/ac , up to 390 Mbps. U.FL standard antenna connector. SCM-i.MX6 SX V-Link Top board form factor, 15.5mm x 15.5mm. Optimized mesh network for sensing applications. Thousands of nodes, minimizing deployment costs. 900 MHz Wireless. A new, clever routing algorithm which reduces routing overhead. IPv6 capable __________________________________________________________________________________________________________________ Featured NXP Products: Single Chip System Modules (SCM)|NXP Partner CODE Ing __________________________________________________________________________________________________________________  
View full article
  Overview The Altimeter Barometer Reference Design is used for directly measuring the barometric pressure, determining altitude and making simple weather predictions. The barometer pressure readings are achieved using the compensated MPX2102A pressure sensor, a HCXX series of Flash microcontroller unit (MCU), and an LCD display. This reference design enables the user to evaluate a pressure sensor for barometer, personal weather station and altimeter applications. This design can be used for altimetry features in wrist watches, cell phones, GPS systems and other electronic devices. In addition, many systems require barometric pressure data to correct system response errors. This application note describes the reliability and accuracy that our sensors can provide in a barometer or altimeter system. Archived content is no longer updated and is made available for historical reference only.   Features Demonstrates barometric pressure and altitude Pressure Sensor: MPXM2102A MPAK Package Sensitivity: 0.4 mV / kPa Pressure Rating: 100kPa (Max) Microprocessor: MC68HC908QT4 4.0K Bytes of in-application reprogrammable Flash and 128 Bytes of RAM High performance, easy to use, HC08 CPU 4 Channel 8-bit analog to digital converter 8-pin DIP or SOIC packages       Design Resources
View full article
Demo   Resonant Power Supply Video from IEEE.TV   The TEA19161T is a resonant / LLC half bridge converter and the TEA19162T is a PFC converter. Combining these two IC’s together with the SR controller TEA1995T at the secondary side results in a high efficient converter over the whole output power range. These demos show 2 examples of a resonant power supply; one with an output power of 240 W (12V / 20A), and another with an output power of 90 W (19.5V / 4.6A). Both showing a very low component count and small design. The resonant supplies operate in normal mode for high and medium power levels, in low power mode at medium and low power levels and in burst mode at (very) low power levels. Low power mode and burst mode operation provides a reduction of power losses, resulting in a higher efficiency at lower output power levels. Power levels for switching over from one mode to another mode can be selected by the end customer by adjusting component values. The efficiency at high power is well above 90%. No load power consumption is well below 75 mW. At 250mW output power the input power is only 360mW, which is well below the 500 mW required to be compliant with EUP lot6 power saving specification, soon becoming mandatory for consumer electronics sold in Europe.   Features: Full digital output voltage regulation and burst mode control Easy and low-cost application with cycle-by-cycle capacitive voltage control Very high efficiency over wide load range Special low power mode enabling high efficiency at 0–30% load Extremely low no-load stand-by power (< 75 mW), saves auxiliary supply cost ___________________________________________________________________________________________________________________________   Featured NXP Products:   Resonant power supply control IC|NXP GreenChip Synchronous Rectifier controller|NXP ______________________________________________________________________________________________________________________   Desktop PC Supply. 12v, 20A (240W)                                                   Ultra Slim 90W Adaptor. 19.5V / 4.6A (90W)              C17
View full article
在KW3x蓝牙低功耗应用中集成NFC阅读器库 URL:https://community.nxp.com/t5/Wireless-Connectivity-Knowledge/Integrating-NFC-Reader-Library-in-a-KW3x-Bluetooth-Low-Energy/ta-p/1121247 版本历史 修订编号:1(共1) 最后更新:10-01-2019 03:59 AM 更新:ovidiu_usturoi 1.    简介 1.1 用途 本文提供了有关将NFC阅读器库如何集成到KW3x蓝牙低功耗应用程序的详细说明。 1.2受众 这篇文章的目的是为希望使用NFC 阅读器库并将其适配、集成到SDK无线连接示例中的软件开发人员提供指南。 1.3参考资料和资源 NFC阅读器库:nxp.com/pages/:NFC-READER-LIBRARY -NCF3320:nxp.com/products/:NCx3320 -CLRC663 plus:nxp.com/products/:CLRC66303HN -FRDM-KW36板:nxp.com/demoboard/FRDM-KW36 -KW35 / KW36 SDK:https://mcuxpresso.nxp.com/en/select -MCUXpresso IDE:nxp.com/products/:MCUXpresso-IDE 2. NFC 阅读器库总览 恩智浦NFC阅读器库是用C语言编写的模块化软件库,它提供了一个API,使客户能够为恩智浦非接触式阅读器IC创建自己的软件栈和应用程序, 阅读器IC为: - PN512; - CLRC633 系列; - PN7462 系列; - PN5180; 此API简化了NFC应用程序中所需的最常见操作,例如: -读取数据或将数据写入非接触式卡或标签; -与其他支持NFC的设备交换数据; -允许NFC阅读器IC模拟为卡. NFC阅读器库的设计方式使其可以轻松移植到具有多层体系结构的许多不同微控制器中:   作为主模块,有以下组件: -应用层(AL)-实现命令集以与MIFARE卡和NFC标签进行交互。 -NFC activity-实现可配置的发现循环,以检测非接触式卡,NFC标签或其他NFC设备。 -HCE和P2P组件,分别用于仿真Type 4标签和P2P数据交换。 -协议抽象层(PAL)-包含ISO14443,Felica,近邻和NFC标准的RF协议实施。 -硬件抽象层(HAL)-实现用于控制NFC前端RF接口和功能的驱动程序。 -驱动程序抽象层(DAL)-在主机MCU和读取器IC之间实现GPIO,计时器配置和物理接口(BAL)。 -OSAL模块,负责抽象OS或RTOS细节(任务事件,信号量和线程) 3. KW3x无线微控制器概述 KW3x无线微控制器(MCU)是高度集成的单芯片设备,可为汽车,工业和医疗/保健嵌入式系统提供低功耗蓝牙(Bluetooth LE)和通用FSK连接。 KW36 / 35无线MCU集成了Arm®Cortex®-M0+ CPU,最高有512 KB闪存和64 KB SRAM,以及2.4 GHz无线电,支持蓝牙LE 5.0和通用FSK调制。 低功耗蓝牙在任何主/从组合中最多支持8个同时连接。 KW36A / 36Z包含一个集成的FlexCAN模块,该模块可以无缝集成到汽车或工业CAN通信网络中,从而可以通过Bluetooth LE与外部控制和传感器监视设备进行通信。 有关更多详细信息,请参阅恩智浦网站信息: https://www.nxp.com/products/wireless/bluetooth-low-energy:BLUETOOTH-LOW-ENERGY-BLE. 4. NFC阅读器库–与FRDM-KW36集成 当前的NFC阅读器库v5.21.01不支持运行于Kinetis KW3x MCU。 本文将使用参考K82 NFC Reader Library软件包:www.nxp.com/pages/:NFC-READER-LIBRARY. 集成库所需的步骤是: -硬件准备(连接FRDM-KW36和NFC阅读器板); -设置开发环境(SDK下载,工作空间); -为FRDM-KW3x板准备适配文件; -将NFC应用程序集成到Wireless_UART Bluetooth LE示例中; -运行演示; 4.1硬件准备 所需硬件: -NCF3320 Antenna v1.0电路板作为NFC收发器; -FRDM-KW36电路板作为主机MCU,用于加载和运行蓝牙低功耗协议栈和NFC应用逻辑;   板卡之间的通信将使用以下引脚配置通过SPI通信进行: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Master board (FRDM-KW36)     Connects to       Slave board (NCF3320 Antenna v1.0)           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PTB0  (J2-pin10)                                      -                   IRQ PTB1  (J2-pin9)                              -                    Reset PTA16 (J2-pin1 - SPI1_Sout)                    -                    MOSI PTA17 (J1-pin5 - SPI1_Sin)                      -                    MISO PTA18 (J1-pin7 - SPI1_SCK)                -                 SCK PTA19 (J2-pin3 - SPI1_CS)                 -                  CS GND   (J3-pin7)                           -                  GND ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4.2搭建开发环境 安装MCUXpresso IDE(在本示例中,使用的版本是v10.2.0 build 759) -在MCUXpresso-IDE官方网页下载最新版本的IDE: www.nxp.com/products/:MCUXpresso-IDE. -安装IDE   获取最新的NFC Reader Library版本(在此示例中,使用的版本是v5.21.00) -在NXP NFC Reader Library官网下载(www.nxp.com/pages/:NFC-READER-LIBRARY) -切换到下载标签,然后点击下载按钮 -下载Kinetis K82F软件包的NFC阅读器库:   为FRDM-KW36板生成可下载的SDK软件包(SDK_2.2.1_FRDM-KW36) -导航至https://mcuxpresso.nxp.com/cn/select,然后选择FRDM-KW36板; -选择构建MCUXpresso SDK。 -确保工具链中已选择MCUXpresso IDE。 -使用“下载SDK”按钮开始下载SDK软件包:   创建MCUXpresso工作区 -打开MCUXpresso IDE并创建一个工作区; -将SDK_2.2.1_FRDM-KW36拖放到MCUXpresso IDE的installed SDKs选项卡中;   -将Wireless_Uart示例导入到当前工作空间:   4.3准备FRDM-KW3x板的适配文件 本章介绍驱动程序抽象层(DAL)为适配FRDM-KW36所需的更改: -解压缩NFC Reader Library并导航到boards文件夹:   -通过为GPIO和handlers设置正确的配置,为FRDM-KW36创建等效文件(Board_FRDM_KW36FRc663.h); -与FRDM-K82F板相比,以下是FRDM-KW36板所需的差异:   -将FRMD-KW36添加到…DAL \ cfg \ BoardSelection.h文件中: #ifdef PHDRIVER_FRDM_KW36FRC663_BOARD #include <Board_FRDM_KW36FRc663.h> #endif -在KinetisSDK文件夹中,更新以下依赖项: o PIT驱动程序IRQ名称:   o打开漏极和引脚锁配置: - phDriver_KinetisSDK.c:   - phbalReg_KinetisSpi.c:   -将PHDRIVER_FRDM_KW36FRC663_BOARD定义添加到…\ NxpNfcRdLib \ types \ ph_NxpBuild_Platform.h文件中,以启用正确的NFC收发器:   4.4将NFC应用程序集成到Wireless_UART Bluetooth LE示例 在本章中,将把BasicDiscoveryLoop NFC示例集成到Wireless_UART Bluetooth LE应用程序中。 为此,需要执行以下步骤: -在wireless_uart项目位置上,创建一个“ nfc”文件夹:   -从修改后的NFC阅读器库中复制DAL,NxpNfcRdLib和phOsal文件夹:   -在wireless_uart项目位置的“source”文件夹中,创建一个新的“ nfc”子文件夹,以集成BasicDiscovery loop文件:   -BasicDiscoveryLoop文件将需要进行一些更改: o将主函数重命名为NFC_BasicDiscoveryLoop_Start; o删除驱动程序/操作系统初始化部分; (所有更改都可以在附件中看到) -通过按F5来更新最新的更改,以更新MCUXpresso工作区:   -更新链接器信息(项目属性-> C / C ++构建->设置)和预处理器定义(项目属性-> C / C ++构建->预处理器):   -添加依赖项: o PIT模块/ PIT模块初始化; o更新LED,SW配置; o增加堆大小(gTotalHeapSize_c); o在wireless_uart.c应用程序中为NFC添加功能; (所有更改都可以在附件中看到); 考虑到随附的ZIP归档文件,我们可以轻松地将frdmkw36_w_uart_ncf3320_basic_discovery.zip文件拖放到MCUXpresso工作区:     4.5运行演示 -根据第4.1章描述连接硬件; -在PC端打开串行终端软件,并设置FRDM-KW36板对应的COM口。 使用的BaudRate是115200。 -在FRDM-KW36上按SW2键开始启动广播。 -打开移动应用程序-IoT toolbox-Wireless UART。 FRDM-KW36板将列为NXP_WU:   -创建蓝牙LE连接。串口将打印包含蓝牙LE操作的日志:   -使用靠近NCF3320 Antenna v1.0板的NFC卡来启动发现演示。 -一旦检测到卡片,便会将事件发送到移动应用程序,其中包括卡片支持的NFC技术以及卡的UUID,演示视频如下连接: (https://www.youtube.com/watch?v=wCCz5zDIwHE&feature=youtu.be) https://community.nxp.com/t5/video/gallerypage/video-id/8707 附件是本文应用例程的源码,下载链接: https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/wireless-connectivity%40tkb/200/1/ble_nfc_demo.zip      
View full article
       YAFFS是第一个在GPL协议下发布的、基于日志的、专门为NAND Flash存储器设计的、适用于大容量的存储设备的嵌入式文件系统。一般MCU系统使用YAFFS系统要求的性能及资源比较多,高性能的i.MXRT系列正好能够满足此要求。     本文基于野火i.MXRT 1052核心板及其上的NandFlash探讨Nand文件系统的原理及实现方式,并探讨了在此基础上如何建立Yaffs文件系统。 Products Product Category NXP Part Number URL MCU MIMXRT1050 https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/i-mx-rt-crossover-mcus/i-mx-rt1050-crossover-mcu-with-arm-cortex-m7-core:i.MX-RT1050   Tools NXP Development Board URL 野火i.MXRT核心板/开发板 https://ebf-products.readthedocs.io/zh_CN/latest/i.mx-rt/ebf_i.mx-rt1052.html   SDK SDK Version URL Yaffs file system https://yaffs.net/ MCUXpresso SDK mcuxpresso.nxp.com  
View full article
现在越来越多的客户,对于S32G PFE在master/slave的使用有了需求。 但是,PFE只有4个HIF接口,HIF0~HIF3,而PFE有3个EMAC口,以及LLCE2PFE也需要要给HIF,从而HIF成为一个关键资源。 同时,有些客户需要从A核,M核的业务考量,A核和M核的网络不仅要和外部设备进行通信,同时A核和M核内部也有通信需求,并且需要把业务报文和管理报文分离,这就对PFE master/slave的使用场景有了更多变化,以及对各种配置有了更多需求。 因此,针对PFE/Slave的几种使用典型的使用场景,进行配置。
View full article
1. 引言 众所周知,我们一般使用调试器下载程序或调试设备。 FRDMK64在板上具有OpenSDA调试接口,因此不需要额外的调试器。但是如果我们要设计一个没有调试器但可以下载程序的电路板,则可以使用引导加载程序(Bootloader)。引导加载程序是一个小程序,目的是通过UART,I2C,SPI等接口更新MCU的应用程序。 本文将描述一个基于FRDMK64F的简单SD卡引导程序,使用SD卡更新MCU的应用程序。用户可以将二进制文件放入卡中。卡插入目标板后,板子将自动更新应用程序。本设计提供了对应的引导加载程序和应用程序代码,以便您可以在自己的板上进行测试。 2. Bootloader的实现 SD卡的示意图如下所示。该板使用SDHC模块与SD卡通信。 图1. SD卡示意图 我们使用FRDM-K64F的2.6.0版本的SDK。您可以在我们的网站上下载该SDK。 链接是“mcuxpresso.nxp.com”。 引导加载程序使用SDHC和fafts文件系统,因此我们应该添加文件来支持它。 图2.支持文件 在主代码中,程序将等待直到插入卡。然后它将在SD卡中找到名为“ a000.bin”的文件以更新应用程序。如果文件不存在,则开发板将直接执行该应用程序。如果没有应用程序,程序将结束。 以下代码显示了程序如何等待插入sd卡,此外它还将检查该地址是否包含应用程序的地址。 图3.代码-等待插入卡 以下代码显示了程序如何打开二进制文件,如果sd卡没有该文件,则程序将跳转到该应用程序开始执行。 图4.打开二进制文件 如果程序正常打开文件,则更新将开始,它将从0xa000擦除200k的空间,您可以根据自己的实际代码工程大小进行调整。 现在我将详细说明更新的方法。我们的数据被写入称为“ rBUff”的缓冲区,缓冲区大小为4K,在向其中写入数据之前,需要先将其擦除。 请注意,在擦除和编程闪存之前应该先禁用所有中断,当操作完成后再重新使能中断。 文件大小将决定将数据写入闪存的方式。 1.如果大小小于4k,我们只需读取文件数据进行缓冲,然后判断文件大小是否与8个字节对齐。如果不是,我们增加“readSize”的大小以读取称为“rBuffer”的数据缓冲区中的更多数据,这些多读出来的数据内容为0。 2.如果大小> 4K,我们使用“ remainSize”来记录剩余的数据量。每次读取4k直到其大小小于4k,然后重复步骤1。一次完成操作后,我们应清除缓冲区并增加扇区编号以准备下一次发送。   图5:写Flash操作代码 清除空间的方法如图所示。它将初始化闪存并从给定地址擦除给定大小。 “ SectorNum”用于显示要擦除的扇区。 图6.擦除操作代码 下图显示了如何将数据写入闪存。 图7.程序操作代码 在转到应用程序之前,我们应该修改在引导加载程序中所做的配置。 关闭Systick时钟并清掉其计数; 将VTOR中断向量寄存器恢复为之前的默认值; 我们的引导程序以PEE模式运行。因此,我们应该将其更改为FEI模式; 禁用所有引脚。 运行这些代码时,应禁用全局中断,并且不要忘记重新使能全局中断。 图8. 反初始化代码 然后我们可以转到应用程序。 图9.转到应用程序 3. 内存重定位 FRDMK64具有1M闪存,从0x00000000到0x00100000。如图10所示,我们使用0xa000作为应用程序的起始地址。 图10:内存映射 现在,我将向您展示如何在不同的IDE中为用户应用程序修改链接文件。 在IAR中: 图11:IAR的ICF 在MDK中: 图12.MDK的SCF 在MCUXpresso中: 图13. MCUXpresso的闪存配置 4. 运行演示 1)首先下载引导程序; 2)准备一个用户应用程序。 我们以“led blinky”为例; 3)修改链接文件; 4)用您的IDE生成二进制文件,请将其命名为“a000.bin”; 5)将其放入SD卡中,如图5所示。 图14:SD卡的内容 6)插入卡,并打开电源。请稍等片刻,该应用程序将自动执行。 5. 参考资料 1) Kinetis MCU的bootloader解决方案 2) KEA128_can_bootloader
View full article
Overview   The RDS12VR is a solution engineered for window lift, power windows, and sun roof systems. Developed in partnership with Tongji University and based on the 16-bit S12 MagniV® S12VR mixed-signal microcontrollers, the RDS12VR offers control by multiple LIN salve nodes or LIN master node, through the easy-to-control Graphics User Interface (GUI). The RDS12VR reduces unnecessary external components, lowers the total bill of material (BoM), improves system quality, and saves space in automotive applications through a smaller PCB. The RDS12VR solution includes hardware for real door/window in-vehicle applications, as well as software including anti-pinch algorithms and low-level S12VR drivers for reducing time to market. Block Diagram   Products Product Features S12VR  16-bit S12 MagniV® S12VR mixed-signal microcontrollers, efficient and scalable relay driven DC motor control solution   Features Features   Window manual/automatic up/down, automatic up/down with stop function Anti-pinch in both manual/automatic mode, anti-pinch region and force can be adjusted Stuck detection out of anti-pinch region, motor overload protection Soft stop when window is close to the top/bottom Self learning, calibration by updating the window/motor parameters stored in EEPROM Use hall sensor as well as current sense to judge anti-pinch in algorithm Power   Fault diagnosis, indicating low voltage, over voltage/current/temperature etc. Low power mode (leveraging S12VR low power mode) to reduce power consumption GUI Easy-to-control GUI, set the parameters and get the status Window lift can be controlled either by multiple LIN salve nodes or LIN master node, through GUI Functional Safety Able to comply with relevant content in US Federal Motor Vehicle Safety FMVSS No. 118 standard Document DRM160, Window Lift and Relay Based DC Motor Control Reference Design Using the S12VR Microcontrollers     
View full article
The purpose of this project is the control of a RGB LED panel using the FlexIO peripheral included in the Kinetis K82 microcontroller. The FlexIO peripheral offers a great advantage, unloading the CPU in the process of refreshing the LED color and brightness information, comparing with other control methods using GPIO bit-banging or PWM + DMA. I will use different method. The panel will use LED stripes with the WS2812B controller. We will also have a simulation platform for developing the applications. Hardware: 30 x16 LED WS2812B Panel Multiplexer board FRDM-K82 Uctronics QVGA display Software: IAR Workbench 7.50.1 SDK 1.3 for the Kinetis K82 FreeRTOS eGUI graphic library You can watch the video with the LED panel working: Video Link : 4707 Part 1: Building the LED Panel Part 2: LED control method using the FlexIO Part 3: Software for LED Panel emulation Part 4: Software for panel control
View full article
Demo Owner: b14714 The motor control development toolbox is a comprehensive set of tools that plug into the MATLAB™/Simulink™ model-based design environment for rapid application development on MCUs.  The SFIO Toolbox is a new addition that can control Simulink system models by SFIO algorithms running directly on NXP DSC and Kinetis MCU hardware. NXP FreeMASTER debug monitor and data visualization tool interfaces provide an interface to monitor signals in real time for data logging and signal calibration. Features The motor control development toolbox is a comprehensive set of tools that plug into the MATLAB™/Simulink™ model-based design Auto code generation straight to the Micro. NXP developed a library and embedded target to interface with MATLAB and SimuLink Customers can directly go from the model based environment to the MCU without having to write C code by hand Featured NXP Products Motor Control
View full article
Demo Wheel rotation is controlled by the SB0400 DC motor pre-driver. When the wheel is stopped manually, the Wheel Speed Sensor -KMI23- detects it & sends a signal to the SB0400 motor pre-driver & S32K MCU to activate the electromagnet Products 32-bit Automotive General Purpose MCUs|NXP Motorcycle Two-Wheel Antilock Braking (ABS)|NXP KMI23_KMI25|NXP  Links Motorcycle Two-Wheel Antilock Braking (ABS)|NXP  Analog Expert Software and Tools|NXP  Recommended product Link S32K144EVB https://www.nxp.com/design/development-boards/automotive-development-platforms/s32k-mcu-platforms/s32k144-evaluation-board:S32K144EVB?&fsrch=1&sr=1&pageNum=1
View full article
  Overview   The Freescale Airbag Reference Platform (ARP) is an application demonstrator system which provides an airbag Electronic Control Unit (ECU) implementation example using complete Freescale standard products for the growing automotive safety segment. The GUI firmware does not constitute a true airbag application but is intended to demonstrate features and capabilities of Freescale's standard products aimed at the airbag market.     Features   Device Description Features MPC560xP|32-bit MCU|Chassis-Safety | NXP  Qorivva 32-bit Microcontroller Scalable MCU family for safety applications e200z0 Power Architecture 32-bit core up to 64 MHz Scalable memory, up to 512 KB flash MC33789 | Airbag Power Supply and PSI5 Sensor Interface | NXP  Airbag System Basis Chip (PSI5) Power supply for complete ECU Up to four Satellite Sensor interfaces (PSI5) Up to nine configurable switch input monitors for simple switch, resistive and Hall-effect sensor interface Safing block and watchdog LIN 2.1 physical layer interface MMA68xx ECU Local X/Y Accelerometer ±20 g to ±120 g full-scale range, independently specified for each axis SPI-compatible serial interface 10-bit digital signed or unsigned SPI data output Independent programmable arming functions for each axis 12 low-pass filter options, ranging from 50 Hz to 1000 Hz MC33797 | Four Channel Squib Driver IC | NXP  Four Channel Squib Driver Four channel high-side and low-side 2.0 A FET switches Externally adjustable FET current limiting Adjustable current limit range: 0.8 to 2.0 A Diagnostics for high-side safing sensor status Resistance and voltage diagnostics for squibs 8-bit SPI for diagnostics and FET switch activation MC33901 High Speed CAN Physical Layer ISO11898-2 and -5 compatible Standby mode with remote CAN wake-up on some versions Very low current consumption in standby mode, typ. 8 μA Excellent EMC performance supports CAN FD up to 2 Mbps MMA52xx MMA51xx High G Collision Satellite Sensor ±60 g to ±480 g full-scale range PSI5 Version 1.3 Compatible (PSI5-P10P-500/3L) Selectable 400 Hz, 3 pole, or 4 pole low-pass Filter X-axis (MMA52xx) and Z-axis (MMA51xx) available
View full article
S32G Host Secure debug methods with Lauterbach tool after LC is updated, and some details about secure debug knowledge in S32G. 本文主要描述S32G在演进生命后如何使用lauterbach工具来进行调试,涉及到S32G HSE相关知识点。
View full article
Demo HomeKit accessory example and development system implementing a HomeKit controlled chicken coop door with NFC chicken identification, based on the Kinetis K64 microcontroller (MCU), HomeKit SDK, and Arcturus Networks IoT system Features: The Arcturus Networks uCMK64-IoT board is a 60x60mm module for developing secure IoT devices that require a combination of connectivity and control. Includes Ethernet and Wi-Fi connectivity. HomeKit Software Development Kit (SDK) from NXP offers support for home automation applications using Apple HomeKit technology, delivering exceptional performance and advanced security. NXP Kinetis K64 120MHz MCU based on the ARM® Cortex®-M4 core, 256 KB SRAM, 1 MB Flash, and with a rich suite of analog, communication, timing and control peripherals. NXP NFC Controller PN7120, full NFC solution for easy integration into any OS environment, with integrated firmware and NCI interface designed for contactless communication at 13.56 MHz. ________________________________________________________________________________________________________ Featured NXP Products: HomeKit Software Development Kit (SDK)|NXP Arcturus Networks Inc. | uCMK64-IoT ARM Cortex-M4 Cores|Kinetis K6x MCUs|NXP Full NFC Forum-compliant controller with integrated|NXP ________________________________________________________________________________________________________
View full article
Demonstrating the Low voltage level driver motor product line.       Features Features FRDM-KL25Z MCU and FRDM-17510-EVB motor driver Battery-ready KL25Z ARM® Cortex™-M0+ processor MPC17510 motor driver 2.0 V to 15 V / 3.8 A peak operation   Featured NXP Products KL2x |Kinetis KL2x USB MCUs|NXP Engine and DC Motor Control|NXP     Tools   Product Link Freedom Development Platform for Kinetis® KL14, KL15, KL24, KL25 MCUs FRDM-KL25Z|Freedom Development Platform|Kinetis® MCU | NXP  MPC17510: H-Bridge, Brushed DC Motor Driver, 2-15V, 3.8A, 200kHz H-Bridge DC Motor Driver 2-15V 3.8A 200kHz | NXP  Freedom Expansion Board - MPC17510, H-Bridge, Brushed DC Motor Driver, 2.0V-15.0V, 1.2A https://www.element14.com/community/docs/DOC-75609/l/freedom-expansion-board--mpc17510-h-bridge-brushed-dc-motor-driver-…  NXP Stepper Motor/Dual DC Motor Shield NXP Stepper Motor/Dual DC Motor Shield | Mbed  KL25Z-MPC17510_candy_dispenser KL25Z-MPC17510_candy_dispenser - This is code used for the stand-alone FSL candy... | Mbed  FRDM-KL25Z FRDM-KL25Z | Mbed  Training Hands-On: Drive a Stepper Motor Using NXP's Motor Drivers and Kinetis Development Tools https://community.freescale.com/servlet/JiveServlet/previewBody/106138-102-1-27793/ftf-ind-f1303.pdf   Related Stepper Motor/Dual DC Motor Shield  | mbed
View full article
Overview This reference design describes the design of a 3-phase sensorless brushless DC (BLDC) motor control with back-EMF (electromotive force) zero-crossing sensing using an AD converter for the NXP® 56F80X and 56F83XX Digital Signal Controller (DSCs) dedicated for motor control applications. It can also be adapted to Our 56F81XX Digital Signal Controllers The system is designed as a motor drive for three-phase BLDC motors and is targeted for applications in both industrial and appliance fields (e.g. compressors, air conditioning units, pumps or simple industrial drives) The reference design incorporates both hardware and software parts of the system including hardware schematic Features BLDC sensorless motor 115 or 230V AC Supply Targeted for 56F80x, 56F83XX, and 56F81XX Digital Signal Controllers Running on 3-phase BLDC Motor EVM at 12V, 3-Phase BLDC Low-Voltage Power Stage Speed control loop Motor mode in both direction of rotation Manual interface (RUN/STOP switch, UP/DOWN push buttons control, LED indication) Overvoltage, undervoltage, overcurrent and overheating fault protection PC remote control interface (speed set-up) FreeMASTER software remote monitor Block Diagram Design Resources
View full article