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

X  

AN2792 数据表(PDF) 5 Page - STMicroelectronics

部件名 AN2792
功能描述  STM8A easy programmer
PDF  12 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN2792 数据表(HTML) 5 Page - STMicroelectronics

  AN2792 Datasheet HTML 1Page - STMicroelectronics AN2792 Datasheet HTML 2Page - STMicroelectronics AN2792 Datasheet HTML 3Page - STMicroelectronics AN2792 Datasheet HTML 4Page - STMicroelectronics AN2792 Datasheet HTML 5Page - STMicroelectronics AN2792 Datasheet HTML 6Page - STMicroelectronics AN2792 Datasheet HTML 7Page - STMicroelectronics AN2792 Datasheet HTML 8Page - STMicroelectronics AN2792 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 5 / 12 page
background image
AN2792
Bootloader description
5/12
1.
Disable all interrupt sources (any peripheral managed by polling).
2.
The host can reprogram the Flash program memory and the bootloader option byte
values as shown in Table 1 according to the content of the first Flash program memory
location (8000h).
3.
When read out protection (ROP) is equal to AAh (ROP active), the Flash program
memory is read out protected. In this case, the bootloader stops and the user
application starts. If ROP is not equal to AAh, the bootloader continues to be executed.
4.
The CAN peripheral can only be used if an external clock (8 MHz, 16 MHz, or 24 MHz)
is present. It is initialized at 125 kbps. The USART, LINUART, and SPI peripherals do
not require an external clock.
5.
Set the high speed internal RC oscillator (HSI) to 16 MHz and initialize the USART and
LINUART receiver pins in input pull-up mode in the GPIO registers. Initialize the SPI in
slave mode.
6.
Interface polling: The bootloader polls the peripherals waiting for a synchronization
byte/message (SYNCHR) within a timeout of 1 s. If a timeout occurs, either the Flash
program memory is virgin in which case it waits for a synchronization byte/message in
an infinite loop, or the Flash program memory is not virgin and the bootloader restores
the registers’ reset status before going to the Flash program memory reset vector at
8000h.
Note: When synchronization fails and the bootloader receives a byte/message different
to ‘SYNCHR’, two different situations can be distinguished according to the peripheral:
With USART or LINUART, a device reset or power-down is necessary before
synchronization can be tried again.
With CAN or SPI, the user can continue to poll the interfaces until a synchronization or
a timeout occurs.
7.
If the synchronization message is received by the USART or LINUART, the bootloader
detects the baud rate and initializes the USART or LINUART respectively and goes to
step 8 below. If the synchronization message is received by the CAN or SPI, the
bootloader goes directly to step 8 below.
Note: Once one of the available interfaces receives the synchronization message, all
others are disabled.
8.
Waiting for commands: Commands are checked in an infinite loop and executed. To exit
from the bootloader, the host has to send a ‘go’ command. When this is done, the
bootloader removes the EM and WM routines from the RAM memory before jumping to
the address selected by the host.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12


数据表 下载

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