Simulink® Support Package for Arduino® Hardware supports these blocks whose operation is independent of the timer on the Arduino hardware board.
|Digital Input||I2C Read||ThingSpeak Write|
|Digital Output||Serial Receive||WiFi TCP/IP Receive|
|Analog Input||Serial Transmit||WiFi TCP/IP Send|
|Analog Output||TCP/IP Receive||WiFi UDP Send|
|External Interrupt||TCP/IP Send||WiFi UDP Receive|
|SPI WriteRead||UDP Receive||CAN Transmit|
|I2C Write||UDP Send||CAN Receive|
To view the pin mapping for these blocks, click View pin map in the Block Parameters dialog box. This opens the Arduino pin mapping table. For example, to find which pins you can use in the ThingSpeak Write block for the Leonardo board, look for the ThingSpeak Write entry under the Blocks column vertically down and Leonardo board horizontally across. Pins 10-13 can be used for the Leonardo board.
Analog Input | Analog Output | CAN Receive | CAN Transmit | Digital Input | Digital Output | External Interrupt | I2C Read | I2C Write | Pin Mapping for Arduino Timer Dependent Blocks | Serial Receive | Serial Transmit | SPI WriteRead | TCP/IP Receive | TCP/IP Send | ThingSpeak Write | UDP Receive | UDP Send | WiFi TCP/IP Receive | WiFi TCP/IP Send | WiFi UDP Receive | WiFi UDP Send