数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN4101 数据表(PDF) 13 Page - STMicroelectronics

部件名 AN4101
功能描述  LIN communication with STM8A-DISCOVERY
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN4101 数据表(HTML) 13 Page - STMicroelectronics

Back Button AN4101 Datasheet HTML 9Page - STMicroelectronics AN4101 Datasheet HTML 10Page - STMicroelectronics AN4101 Datasheet HTML 11Page - STMicroelectronics AN4101 Datasheet HTML 12Page - STMicroelectronics AN4101 Datasheet HTML 13Page - STMicroelectronics AN4101 Datasheet HTML 14Page - STMicroelectronics AN4101 Datasheet HTML 15Page - STMicroelectronics AN4101 Datasheet HTML 16Page - STMicroelectronics AN4101 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 21 page
background image
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.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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