| 数据搜索系统,热门电子元器件搜索 |
|
AN4101 数据表(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4101 数据表(HTML) 13 Page - STMicroelectronics |
|
13 / 21 page ![]() AN4101 LIN demonstration software Doc ID 23127 Rev 1 13/21 7 LIN demonstration software STM8A-DISCOVERY contains all you need to start a basic LIN communication: ● STM8AF board with the following: – a STM8AF5288 microcontroller – a LIN transceiver – push buttons –LEDs – a ST-LINK/V2 for debugging and programming ● STM8AL board with the following: – a STM8AL3L68 microcontroller – a LIN transceiver – push buttons –LEDs –a LCD display – a ST-LINK/V2 for debugging and programming ● Dual type A to mini-B USB cable to connect the boards to your PC The following sections introduce the demonstration software running in the STM8AL and STM8AF boards. This application does not require any additional hardware. Once the STM8A-DISCOVERY is powered up through the dual type A to mini-B USB cable connected to the host PC, the application is ready to start LIN communication, and updates the LEDs and LCD display according to the user’s action with the push buttons and the trimmer. This software example comes preloaded with your STM8A-DISCOVERY, and is readily accessible at application power-up. Note: There are hidden test modes in this demonstration software. Consequently, the software source code contains additional modules not described in this application note. 7.1 Getting started 1. Connect CN3 and CN4 on the STM8AF board to CN3 and CN4 on the STM8AL board. 2. Connect both type A connectors of the USB cable to a PC. 3. Connect the mini-B connector of the USB cable to the STM8AF board. All LEDs should blink once on the STM8AF board and twice on the STM8AL board, and then the LIN communication starts between both boards. 4. Turn the RV1 trimmer on the STM8AF board to adjust the value from 0 to 100 on the STM8AL board LCD through the LIN bus. 5. Push button USER1 on the STM8AF board in order to sequentially display the LCD bars on the STM8AL board through the LIN bus. Push button USER2 on the STM8AF board to sequentially switch them off one by one. 6. Push button USER1 on the STM8AL board to sequentially switch on green LEDs LD4, LD5, LD6 and LD7 on the STM8AF board through the LIN bus. Push button USER2 on the STM8AL board to sequentially switch them off one by one. |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |