This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Modeling

Prepare model for hardware connection, add blocks to support hardware protocols

Blocks

Digital OutputSet the logical value of a digital output pin
Digital InputRead the logical value of a digital input pin
RGB LEDSet the RGB LED to a desired color
Serial ReceiveReceive an [Nx1] array of byte data on the UART
Serial TransmitSend an [MxN] array of data to the UART
Analog OutputSend an analog output signal to PTE30 pin
Analog InputMeasure the voltage of an analog input pin
Servo WriteDrive the servo motor to the specified angle
Line Scan CameraRead the data from a line scan camera
Momentary SwitchRead the state of a momentary switch
DIP SwitchRead the state of a DIP switch
DC MotorDrive a DC motor in either direction
PotentiometerRead the state of a potentiometer
Battery ReadRead the battery voltage of a battery connected to the TFC Shield
Battery IndicatorDisplay the battery voltage level with LEDs on the TFC shield
I2C Master ReadRead data from I2C slave device or I2C slave device register
I2C Master WriteWrite data to I2C slave device or I2C slave device register
PWM OutputGenerate 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.