このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
モデル化
ハードウェア接続用の Simulink® モデルを準備し、ハードウェア プロトコルをサポートするためのブロックを追加し、各種アプリケーションを取り上げた例を参照します。
ブロック
| 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 | I2C 周辺デバイスまたは I2C 周辺デバイス レジスタにデータを書き込む |
| PWM Output | Generate square wave on the specified output pin |
トピック
- 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 the 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. To run this model you need to have Embedded Coder®.
- 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.