NXP Designs ナレッジベース

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

NXP Designs Knowledge Base

ディスカッション

ソート順:
This demo shows the interaction among MCUs, motor drivers, and sensors using simple mbed code and various communication protocols, namely Ethernet, I2C, and PWM to simulate real-world applications on a smaller scale       Features Motor driver with Brushed DC motor driver with current feedback and thermal regulation 6-Axis sensor FXOS8700 (Accelerometer + Magnetometer) and 3-Axis Gyroscope FXAS21002 Kinetis K64 MCU 120 MHz ARM® Cortex®-M4 core with Ethernet and USB Complete system consisting of an MCU, a sensor, and a motor driver _______________________________________________________________________________________________________   Featured NXP Products Product Link Sensor Toolbox Development Boards for a 9-Axis Solution using FXAS21002C and FXOS8700CQ https://www.nxp.com/design/development-boards/freedom-development-boards/sensors/sensor-toolbox-development-boards-for-a-9-axis-solution-using-fxas21002c-and-fxos8700cq:FRDM-STBC-AGM01?&lang_cd=en Freedom Expansion board for MC34931- Brushed DC Motor Driver, H-Bridge, 20kHz https://www.nxp.com/design/development-boards/analog-toolbox/freedom-expansion-board-for-mc34931-brushed-dc-motor-driver-h-bridge-20khz:FRDM-34931S-EVB?&lang_cd=en Freedom Development Platform for Kinetis® K64, K63, and K24 MCUs https://www.nxp.com/design/development-boards/freedom-development-boards/mcu-boards/freedom-development-platform-for-kinetis-k64-k63-and-k24-mcus:FRDM-K64F?&lang_cd=en _______________________________________________________________________________________________________   Software Links Accelerometer code Motor driver code   For more detailed information about this demo, please download attached PDF
記事全体を表示
this doc explain the HSE crypto driver and how to develop new feature 目录 1 参考资料 .................................................................... 2 1.1 参考资料 ................................................................. 2 1.2 版本匹配说明 .......................................................... 3 2 HSE FW服务 ............................................................. 3 2.1 服务描述符 ............................................................. 3 2.2 服务编号 ................................................................. 4 2.3 服务请求和响应 ...................................................... 6 2.4 服务执行 ................................................................. 9 2.5 Crypto驱动AES示例使用到的服务 ........................ 18 3 环境搭建 .................................................................. 19 3.1 安装与编译 ........................................................... 19 3.2 运行Demo ............................................................ 21 4 Crypto驱动代码与功能说明 ...................................... 23 5 定制1:增加GetAttribute功能 .................................. 28 6 CmacCtr Demo简介 ................................................. 31 7 SymmetricPrimitive Demo简介 ................................ 32 8 总结 ......................................................................... 34 9 其它注意事项 ........................................................... 34
記事全体を表示
Overview This reference design is for a sensorless permanent magnet (PM) motor drive single-chip solution based on the NXP® DSC56F80XX digital signal controller (DSC). An electronically controlled three phase PM motor provides a unique feature set with the higher efficiency and power density This application presents a motor control technique of PM motor without a need to use a rotor position transducer This technique particularly targets horizontal axis (H-axis) washing machine with belt drive in fractional horsepower range A designer reference manual provides a detailed description of the application, including the design of the hardware and the software Features Designed to fit into consumer and industrial applications MC56F80XX digital signal controller 3-phase AC/BLDC High Voltage Power Stage Board 1-phase line input 110/230VAC 50/60Hz Apliance PM motor Initial rotor position detection Full torque at motor start-up Field weakening Application based on C-callable library functions (GFLIB, GDFLIB, MCLIB, ACLIB) Current control loop Speed control loop with Field weakening Flash: ~ 6KB, RAM ~ 1.5KB FreeMASTER based control pages Block Diagram Board Design Resources
記事全体を表示
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  
記事全体を表示
Overview The S12ZVH-REF-V1 is a reference design engineered for being a design base for starting an instrument cluster project, also it helps to reducing Automotive Cluster development time and maximizing engineering resources. Based on the 16-bit S12 MagniV® S12ZVH mixed-signal microcontrollers, the S12ZVH-REF-V1 provides a production-looking design with impressive integration. The S12ZVH-REF-V1 reference design is not only provided as a hardware reference but also as a software and mechanical design. Block Diagram   Products Product Features S12ZVH MagniV Mixed-signal MCU  16-bit S12 MagniV® S12ZVH mixed-signal microcontrollers for instrument cluster.   Features Interfaces   LIN physical transceiver and connector CAN connector interfaced with MCUs CAN physical transceiver Components 1 x custom 160 segment LCD 1 x low-power piezoelectric speaker 4 x stepper motors 49 x LEDs used as telltales and backlights 6 x user buttons 2 x potentiometers S12ZVH The S12ZVH-REF-V1 does not include on-board programming/debugging circuitry; it requires an external programmer compatible with the BDM protocol. Files S12ZVH-REF-V1 Mechanical and Assembly files  S12ZVH-REF-V1 Reference Design Software (CW10.5) 
記事全体を表示
Overview The Bluetooth® Low Energy heart rate monitor reference design demonstrates the implementation of a wireless electrocardiogram (ECG) acquisition system. It features the Kinetis® KW40Z system on chip (SoC) which includes an Arm® Cortex® M0+ processor together with a 2.4 GHz radio for Bluetooth Low Energy and 802.15.4. The ECG signal is obtained from the finger tips and processed by the Kinetis KW40Z SoC. Then, the user’s heart rate is calculated and transmitted to a smartphone application using Bluetooth Low Energy. The reference design can be powered by a Li-Ion coin-cell battery. Due to the low-power features of Kinetis KW40Z MCU, a 3.6V 200mA/h Li-Ion coin-cell rechargeable battery can provide the power of up to 40 hours of continuous use. The NXP® MC34671 is in used as a battery charger solution for the device. Features Includes the NXP ®  ultra-low-power Kinetis ®  KW40Z SoC Bluetooth Low Energy/ZigBee platform. The low-power features of this solution allow up to 40 hours of continuous operation using a small coin-cell battery. Fully compliant Bluetooth v4.1 Low Energy Differential input/output port used with external balun for single port operation Block Diagram Board Design Resources
記事全体を表示
Overview This reference design is a 3-phase brushless DC (BLDC) motor sensorless drive for fans, pumps and compressors based on the low-cost NXP® 56F801x digital signal controllers (DSCs). The concept is a closed-loop speed-controlled BLDC drive with no need for position or speed sensors AIt serves as a reference design for a BLDC motor sensorless control system, ideal for fan, pump and compressor applications Power stages used by the application are designed for 12V DC line voltage and 3Aor 8A output current The reference manual provides a detailed description of the application, including design of the hardware and the software Features 3-phase brushless DC motor sensorless drive Designed to fit into fan, pump and compressor applications Uses 56F8013 32 MIPS Digital Signal Controller Available for two power stages and two motors Input power supply voltage +12 VDC for power stages Control techniques incorporate: Sensorless, trapezoidal control of 3-phase BLDC motor with back-EMF sensing ADC zero crossing sensing for sensorless control Closed-loop speed control using PI controller Adjustable DC-bus current limitation PI controller Motoring mode Both directions of rotation Speed range: 200-2000 and 800-8000 RPM (depending on the motor used) Manual interface (RUN/STOP switch, UP/DOWN pushbuttons) FreeMaster interface for monitoring, controlling and tuning Fault protection (DC-bus over-current, DC-bus under-voltage, DC-bus over-voltage) Automatic calibration of phase back-EMF measurements 20 kHz PWM switching frequency Easy to tune for different power stages and motors. Block Diagram Board Design Resources
記事全体を表示
Introduction Background There is not an official data for PCIe latency and performance, while some customers pay attention to and request these data. This paper utilizes Lmbench lat_mem_rd tool and DPDK qdma_demo to test the PCIe latency and performance separately. Requirement 1) Plug Advantech iNIC (LX2160A) into LX2160ARDB. 2) Configure EP ATU outbound window at console. 3) Apply the patch to lmbench-3.0-a9, and recompile lmbench tool. 4) There is qdma_demo in iNIC kernel rootfs by default. Test Environment     PCIe Latency Overview   Direction Description Latency(ns) PCIe(Gen3 x8) – DDR read from EP to RC 900 PCIe – PCIe – DDR Read from EP to EP (through CCN-508) 1550 PCIe – PCIe – DDR Read from EP to EP (through HSIO NOC) 1500 Setup 1) LX2160ARDB 2) iNIC – PCIe EP Gen3 x8 with LX2160A 3) Test App running at iNIC: Lmbench lat_mem_rd   # ./lat_mem_rd_pcie -P 1 -t 1m   PCIe Performance Overview    Direction Throughput (Gbps) PCIe EP to EP 50   Setup 1) LX2160ARDB 2) iNIC – PCIe EP Gen3 x8 with LX2160A 3) Test App : qdma_demo running at iNIC   $./qdma_demo -c 0x8001 -- --pci_addr=0x924fa00000 --packet_size=1024 --test_case=mem_to_pci Peer to Peer On LX2 Rev. 2      Products   Product Category NXP Part Number URL MPU LX2160A https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/layerscape-processors/layerscape-lx2160a-lx2120a-lx2080a-processors:LX2160A LSDK software Layerscape Software Development Kit https://www.nxp.com/design/software/embedded-software/linux-software-and-development-tools/layerscape-software-development-kit:LAYERSCAPE-SDK   Tools    NXP Development Board URL LX2160ARDB https://www.nxp.com/design/qoriq-developer-resources/layerscape-lx2160a-reference-design-board:LX2160A-RDB Advantech ESP2120 Card      
記事全体を表示
Demo Owner Rebeca   The Freescale concept car demonstrates multiple solutions for automotive systems in powertrain, infotainment, cluster, safety and body applications. Specific system solutions include engine control, small and large motor control, lamp control, radio, digital cluster, gauge drivers, TPMS, touch control, surround view camera, media player and fast boot Linux®.     https://community.nxp.com/players.brightcove.net/4089003392001/default_default/index.html?videoId=4282635362001" style="color: #05afc3; background-color: #ffffff; font-size: 14.4px;" target="_blank   Featured NXP Products Qorivva S12 MagniV S08 i.MX6 Links Automotive
記事全体を表示
Overview   NXP Home Appliances is dedicated to provide intelligent, reliable and appealing solutions to make everyday life a bit easier. Home appliances are part of our daily lives and have been evolving with us. Our wireless MCUs add HAN, WiFi and NFC and along our security devices ensure high-quality wireless connectivity. We have a wide range of precise sensors and complete solutions to simply add voice control to any home appliance. From gas cooktops to inductive and RF cooking; electric toothbrushes with low-energy consumption and battery charging; blenders with efficient, reliable and robust motor control, and all of them need to have sensing options and secure connectivity to offer a personalized and optimal experience. Block Diagram   Products Category MCU Product URL KE1xZ: up to 72MHz, 5V main stream CM0+ MCU with NXP Touch (TSI) and CAN control  Product Description KE1xZ MCUs are based on the Arm® Cortex®-M0+ core, running up to 72 MHz.   Category Power Management Product URL TEA19363LT: GreenChip SMPS Primary Side Control IC with QR/DCM Operation and Active x-Capacitor Discharge  Product Description The TEA19363LT is a member of the GreenChip family of controller ICs for switched mode power supplies.   Category Drivers Product URL 1 PCA9955BTW: 16-channel Fm+ I²C-bus 57 mA/20 V constant current LED driver  Product Description 1 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 2 PCF8579: LCD column driver for dot matrix graphic displays  Product Description 2 The PCF8579 is a low power CMOS LCD column driver, designed to drive dot matrix graphic displays at multiplex rates of 1:8, 1:16, 1:24 or 1:32. Product URL 3 NX5P2924CUK: Logic controlled high-side power switch  Product Description 3 The NX5P2924C is a high-side load switch which features a low ON resistance N-channel MOSFET with controlled slew rate that supports 2.5 A of continuous current.   Category RTC Product URL PCA85073A: Automotive tiny Real-Time Clock/Calendar with alarm function and I2C-bus  Product Description The PCA85073A is a CMOS1 Real-Time Clock (RTC) and calendar optimized for low power consumption. An offset register allows fine-tuning of the clock.  
記事全体を表示
  Overview The Water Level Reference design continuously monitors water level and water flow using the temperature compensated MPXM2010GS pressure sensor in the low cost MPAK package, a dual op–amp, and the MC68HC908QT4, 8–pin microcontroller. This system uses very few components, reducing the overall system cost. This allows for a solution to compete with a mechanical switch for water level detection but also offer additional applications such as monitoring water flow for leak detection, and the other applications for smart washing machines. Archived content is no longer updated and is made available for historical reference only.   Features Demonstrate Water Level Monitor plus additional features such as water flow monitoring and leak Pressure Sensor - MPXM2010 MPAK Package Sensitivity 2.5 mV / kPa Pressure Rating 10kPa (Max) Microprocessor MC68HC908QT4 40K 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 Considerations Media Isolate pressure sensor from water by using a head tube Accuracy To prevent overflow and control consumption of water Auto-zeroing concept can eliminate offset errors Tank/tub diameter is irrelevant, the important part is to have an accuracte look up table to correlate water height versus pressure     Printed Circuit Boards and Schematics RD1950MPXM2010SCHEM RD1950MPXM2010SCHEMATIC RD1950MPXM2010DGRBR
記事全体を表示
Demo Owner: Thomas Zemites   Demonstration of cost effective Solar Panel Tracker Control using MC34932 dual H-Bridge motor driver. These thermally efficient 28V / 5A H-Bridge DC Brushed motor drivers feature real-time load current monitoring and automatic thermal back-off to ensure high availability operation in demanding high-current, high-temperature automotive and industrial applications.  The demonstration uses the FRDM-KL25Z board in conjunction with Solar Tracker Demo board and graphical user interface.       Features Thermal protection Package, PWM Mode, Thermal Fold-back, Current Mirror, Complete Internal protection Featured NXP Products Product Link MC34932/S H-Bridge, Brushed DC Motor Driver, 5-36V, 5A, 11kHz/20kHz MC34932 | H-Bridge, Brushed DC Motor Driver | NXP  KL2x-72/96MHz, USB Ultra-Low-Power Microcontrollers (MCUs) based on Arm® Cortex®-M0+ Core Arm® Cortex®-M0+|Ultra-Low Power Kinetis® KL2x USB MCU | NXP  Freedom Development Platform for Kinetis® KL14, KL15, KL24, KL25 MCUs https://www.nxp.com/design/development-boards/freedom-development-boards/mcu-boards/freedom-development-platform-for-kin… 
記事全体を表示
Demo NXP has released the 1500 W MRF1K50H and MRF1K50N. The industry’s highest power transistors for ISM, FM broadcast and sub-GHz aerospace applications. These are pin-compatible so can be situated on the same PCB as existing solutions on the market Demo / product features MRF1K50H 1.5 kW LDMOS Transistor 1–500 MHz, 1500 W CW 74% efficiency 23.5 dB gain Extremely rugged  (65:1 VSWR) MRF1K50N 1.5 kW LDMOS Transistor 1–500 MHz, 1500 W CW 73% efficiency 23 dB gain 30% lower thermal resistance compared to ceramic package Extremely rugged  (> 65:1 VSWR) NXP Recommends MRF1K50H MRF1K50N
記事全体を表示
Android Open Accessory support allows external USB hardware (an Android USB accessory) to interact with an Android-powered device in a special accessory mode. When an Android-powered powered device is in accessory mode, the connected accessory acts as the USB host (powers the bus and enumerates devices) and the Android-powered device acts in the USB accessory role. This ADK library is based on NXP Kinetis Microcontroller KL26, It implements some functions to communicate with android phone.  
記事全体を表示
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
記事全体を表示
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
記事全体を表示
Chinese version   S32G的partition off流程要求核稳定的进 入到WFI状态,本文说明如何修改Linux内核, 在A53 Linux关机或kernel panic时,如何让所 有A53 Core进入WFI。 目录 1 背景说明与参考资料 .................................................. 2 1.1 背景说明 ................................................................. 2 1.2 参考资料 ................................................................. 5 1.3 测试工具 ................................................................. 6 2 Panic ......................................................................... 7 2.1 Panic代码流程分析 ................................................. 7 2.2 BSP30修改说明(Non-ATF) ................................... 10 2.3 BSP36修改说明(ATF) .......................................... 15 3 Poweoff ................................................................... 17 3.1 Poweroff代码流程分析 ......................................... 17 3.2 BSP30修改说明(Non-ATF) ................................... 19 3.3 BSP36修改说明(ATF) .......................................... 20 4 Reboot情况说明 ....................................................... 20 5 STR情况说明 ........................................................... 21   Contents 1    Background and Reference. 2 1.1  Background. 2 1.2  Reference materials. 5 1.3  Test Tools. 6 2    Panic. 7 2.1  Panic code flow analysis. 7 2.2  BSP30 Modification (Non-ATF) 10 2.3  BSP36 Modification (ATF) 16 3    Poweoff 18 3.1  Poweroff code analysis. 18 3.2  BSP30 Modification (Non-ATF) 20 3.3  BSP36 Modification (ATF) 21 4    Reboot Description. 21 5    STR Description. 21
記事全体を表示
在进行时钟同步时,目前S32G2/G3有一种很典型的使用场景: Grand master clock  <-> S32G PFE <-> 其余连接在PFE 某些 eMAC口上的设备 外部的grand master clock,连接在PFE的一个eMAC上,要同步S32G以及连接在PFE其余eMAC上的设备时钟。 但是S32G2/G3的PFE仅仅是支持timestamp,对于将S32G PFE设置成交换机使用时,PFE不能实现Transparent clock的功能。 因此,本文讨论将PFE + S32G SoC当作Transparent clock,以及将PFE + S32G当作boundary clock,来同步S32G以及其余部件的时钟。
記事全体を表示
功能需求 RT117X系列MCU在汽车和工业类产品中有广泛应用,有很多客户对LIN通讯有需求,RT1176有12路独立的LPUART接口,最大支持的波特率能支持到20M,而且每一路都支持Break发送和中断接收,可以用来配合定时器实现LIN的主机和从机通讯。但是目前RT117X的EVK板没有放置LIN的收发器,SDK也没有相关LIN的示例代码和LIN协议栈支持,所以本示例目的是移植KW36工程中的LIN 2.1版本的代码到RT1176 EVK板子上,在硬件上通过跳线将LIN Master主节点和 Slave从节点的LPUART TX/RX线连接到FRDM-KW36板载的LIN收发器TJA1027上,分别实现LIN 2.1版本协议栈在Master和Slave节点的通讯功能验证,同时还需支持Auto Baud Rate自动波特率调整。为客户做二次开发或者移植用户自己的LINstack提供底层驱动,提高开发效率。 代码包软件   RT1176 LIN Master节点代码:RT1170_LIN_Porting_Demo_Master.7z RT1176 LIN Slave节点代码(支持自动波特率😞 RT1170_LIN_Porting_Demo_Slave_with_Auto_Baud_Rate.7z 配置FRDM-KW36板载LIN 收发器的代码: KW36_LIN_PHY_Board_Init.7z 硬件Setup   MIMXRT1170-EVK: 2pcs,分别用作LIN Master节点和Slave节点。 FRDM-KW36:2pcs, 分别用作Master节点的收发器,和 Slave节点的收发器 下图是系统连接,2块RT1170 EVK板分别和2块FRDM-KW36板通过Arduino接口连接在一起,然后将两块KW36之间的LIN收发器通过 J13 连接在一起,需要使用外部12V adapter为FRDM-KW36供电,否则板上的LIN收发器无法工作。特别强调的是,如果需要使能自动波特率检测的话,还需要将Slave节点RT1176 Arduino接口的J9-Pin2引脚连接到RT1176 Arduino接口的J9-Pin12引脚,作为Timer 脉冲捕捉的输入,即可完成系统硬件的setup。   软件Setup:   在以上硬件连接完成后,按照如下步骤下载对应软件: - Step1: 下载KW36_LIN_PHY_Board_Init.7z代码到两块FRDM-KW36板子上;  该代码中主要实现两个功能:第1个拉高板子的PTC5引脚,唤醒LIN收发器TJA1027。第2个将PTA18引脚配置成disable高阻状态。如果该引脚作为GPIO输出或者LPUART TX功能,会导致LIN slave回应数据出错(bit位丢失或者错误)。究其原因猜测应该是短路导致,当这个引脚作为GPIO输出或者LPUART TX功能,内部会有上拉,当RX1176 TX引脚输出Low时,由于电路上没有串联电阻(板子上使用的0Ω),会导致引脚上出现大电流。尤其是第2个点,花费了很多时间去查这个问题,从波形去看,是有数据输出的,但只是数据不对,很具有迷惑性。当然如果客户是自己打的板子,板子上已经有LIN收发器就不需要这一步,直接跳到Step2即可。 - Step2: 下载RT1170_LIN_Porting_Demo_Master.7z代码到作为Master节点的IMRT1176-EVK板; - Step3: 下载RT1170_LIN_Porting_Demo_Slave_with_Auto_Baud_Rate.7z代码到作为Slave节点的IMRT1176-EVK板,如果需要使能自动波特率调整,需要配置宏linUserConfigSlave.autobaudEnable = true; 代码中默认是打开的。 实验结果   打开两个IMRT1176-EVK板串口,波特率配置115200,单击RT1176 Master节点上的按键SW7,便可以启动Master节点开始发送数据,通讯波形和串口打印信息如下两张图所示。   代码移植的几个难点   1. LIN通讯协议栈的调度流程的理解,包括Wakeup段,Break段,Sync段,PID段,Data段的状态切换和跳转,每个段的超时监测和错误处理,其核心思想有两个:一个在于LIN的RX引脚要不断去monitor TX引脚的状态,然后去切换状态机,具体调度的流程在后文会详细介绍,这里不展开。第二个是准确获取在每个段的定时器时间,尤其是超时超过一个overflow周期的情况,需要对timerGetTimeIntervalCallback0函数有理解。 2. 自动波特率调整功能的支持,该功能的原理是测量SYNC段的8个脉冲的脉宽,如果每个脉宽差异在2%范围内,再根据脉冲宽度去判断对应的波特率。在原来KW36的代码中是使用TPM的Overflow中断来作为计时,Edge中断来触发,而RT1176没有TPM,只能使用Qtimer (Qtimer功能上要更强于TPM),但是不巧的是Qtimer不支持Overflow中断(参见芯片ERRATA 050194),所以只能使用compare中断来实现类似的功能,而原有的计时定时计算都是基于overflow的,因此就需要对定时器部分的代码做大范围的更改。 应用中考虑到timerGetTimeIntervalCallback0函数在自动波特率调整时和超时监测处理时的一致性,最好使用同一个Timer的同一个channel,这就需要这个Timer既支持普通的定时中断模式,又支持input capture功能。对于TPM来说,是无法实现的因为两次在寄存器配置上时互斥的, 参见下图。幸运的是Qtimer支持这个feature,只是需要根据SDK代码做些配置 前面提到,需要QTimer支持input capture功能, 触发信号是LPUART_RX引脚的信号,需要硬件loop到Qtimer支持的硬件引脚上,对于KW36来说,只需要把这两个物理引脚连接在一起即可,但对RT1176来说, 只有这一步还不行,还需要对XBAR进行配置,将Qtimer的TIMER 1的触发引脚(合计有4个物理引脚)Link到QTIMER对应的Channel上,因为RT1176有4个QTimer,每个Qtimer有4个通道,标称的Qtimer trigger pin有4个,那具体哪个pin触发哪个QTimer的哪个通道,是需要配置的。如果客户没有使用过XBAR配置起来有难度,还好MCUXpresso config tool支持配置,可以简便的完成配置。示例代码和触发关系如下,如果实际硬件使用的物理引脚有区别,需要对应修改。 RT的XBAR功能非常强大,或许可以不使用外部的物理连线,直接将Qtimer的出发引脚的信号直接在内部Loop到LPUART_RX引脚,这样就更加灵活,此处只提供一个思路,不再进一步延伸。 IOMUXC_GPR->GPR15 = ((IOMUXC_GPR->GPR15 & (~(IOMUXC_GPR_GPR15_QTIMER4_TRM1_INPUT_SEL_MASK | IOMUXC_GPR_GPR15_QTIMER4_TRM2_INPUT_SEL_MASK)))/*Mask bits to zero which are setting*/ | IOMUXC_GPR_GPR15_QTIMER4_TRM1_INPUT_SEL(0x00U) /*QTIMER4 TMR1 input select: 0x00U*/ | IOMUXC_GPR_GPR15_QTIMER4_TRM2_INPUT_SEL(0x00U) /*QTIMER4 TMR2 input select: 0x00U*/ ); 4. 在状态机切换和超时以及错误处理过程中,经常会看到两种模式Sleep模式和Idle模式,区别是什么呢? LIN_LPUART_GoToSleepMode: 函数会关闭Break中断,RX接收中断,帧错误中断,保留RX边沿 中断; LIN_LPUART_GotoIdleState 函数会打开Break中断,RX接收中断,帧错误中断,关闭RX边沿中 断; 实际通讯波形   Master作为Subscribe角色时,发送Header,由Slave发送Respone Master作为PUBLIC角色时,同时发送Header,以及Respone 按照调度表依次发送LI0_lin_configuration_RAM数组定义的PID数据 static uint8_t LI0_lin_configuration_RAM[LI0_LIN_SIZE_OF_CFG]= {0x00, 0x30, 0x33, 0x36, 0x2D, 0x3C, 0x3D ,0xFF}; Qtimer准确读取wake up信号的脉冲宽度 Slave使能Auto baud rate后读取到的每个脉冲宽度数据 免责声明: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND *ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, *INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUTNOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, ORPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY,WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE)
記事全体を表示
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 
記事全体を表示