Modeling
Prepare Simulink® models for hardware connection, add blocks to support hardware protocols, reference examples featuring various applications.
Blocks
Digital Output | Set the logical value of a digital output pin |
Digital Input | Read the logical value of a digital input pin |
RGB LED | Set the RGB LED to a desired color |
Serial Receive | Receive an [Nx1] array of byte data on the UART |
Serial Transmit | Send an [MxN] array of data to the UART |
Analog Output | Send an analog output signal to PTE30 pin |
Analog Input | Measure the voltage of an analog input pin |
Servo Write | Drive the servo motor to the specified angle |
Line Scan Camera | Read the data from a line scan camera |
Momentary Switch | Read the state of a momentary switch |
DIP Switch | Read the state of a DIP switch |
DC Motor | Drive a DC motor in either direction |
Potentiometer | Read the state of a potentiometer |
Battery Read | Read the battery voltage of a battery connected to the TFC Shield |
Battery Indicator | Display the battery voltage level with LEDs on the TFC shield |
I2C Controller Read | Read data from I2C peripheral device or I2C peripheral device register |
I2C Controller Write | Write data to I2C peripheral device or I2C peripheral device register |
PWM Output | Generate square wave on the specified output pin |
Topics
- Model Configuration Parameters for NXP FRDM-KL25Z Board
Parameter and configuration options for creating and running applications on the target hardware.
- Getting Started with Simulink Coder Support Package for NXP FRDM-KL25Z Board
This example shows you how to use Simulink® Coder™ Support Package for NXP FRDM-KL25Z Board to run Simulink model on a NXP FRDM-KL25Z board.
- Code Verification and Validation with External Mode
This example shows you how to use Simulink® Coder™ Support Package for NXP™ FRDM-KL25Z for code verification and validation using External mode.
- Servo Control with NXP FRDM-KL25Z Board
This example shows how to use Simulink® Coder™ Support Package for NXP™ FRDM-KL25Z Board to control a servo motor connected to FRDM-TFC Shield.
- Code Verification and Validation with PIL
This example shows you how to use Simulink® Coder™ Support Package for NXP™ FRDM-KL25Z Board for code verification and validation using PIL.
- Read Acceleration Data from MMA8451Q 3-Axis Digital Accelerometer Using I2C
This example shows how to use Simulink® Coder™ Support Package for NXP™ FRDM-KL25Z Board to control the color of the RGB LED based on the orientation of the board.