参数资料
型号: M68TC11E20B56
厂商: 飞思卡尔半导体(中国)有限公司
英文描述: HC11 Microcontrollers
中文描述: HC11微控制器
文件页数: 199/242页
文件大小: 1525K
代理商: M68TC11E20B56
第1页第2页第3页第4页第5页第6页第7页第8页第9页第10页第11页第12页第13页第14页第15页第16页第17页第18页第19页第20页第21页第22页第23页第24页第25页第26页第27页第28页第29页第30页第31页第32页第33页第34页第35页第36页第37页第38页第39页第40页第41页第42页第43页第44页第45页第46页第47页第48页第49页第50页第51页第52页第53页第54页第55页第56页第57页第58页第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页第93页第94页第95页第96页第97页第98页第99页第100页第101页第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页第182页第183页第184页第185页第186页第187页第188页第189页第190页第191页第192页第193页第194页第195页第196页第197页第198页当前第199页第200页第201页第202页第203页第204页第205页第206页第207页第208页第209页第210页第211页第212页第213页第214页第215页第216页第217页第218页第219页第220页第221页第222页第223页第224页第225页第226页第227页第228页第229页第230页第231页第232页第233页第234页第235页第236页第237页第238页第239页第240页第241页第242页
Main Bootloader Program
M68HC11 Bootstrap Mode, Rev. 1.1
Freescale Semiconductor
199
illustrates the extreme measures used in the bootloader firmware to minimize memory usage. However,
such measures are not usually considered good programming technique because they are misleading to
someone trying to understand the program or use it as an example.
After initialization, a break character is transmitted [3] by the SCI. By connecting the TxD pin to the RxD
pin (with a pullup because of port D wired-OR mode), this break will be received as a $00 character and
cause an immediate jump [4] to the start of the on-chip EEPROM ($B600 in the MC68HC711E9). This
feature is useful to pass control to a program in EEPROM essentially from reset. Refer to
Common
Bootstrap Mode Problems
before using this feature.
If the first character is received as $FF, the baud rate is assumed to be the default rate (7812 baud at a
2-MHz E-clock rate). If $FF was sent at 1200 baud by the host, the SCI will receive the character as $E0
or $C0 because of the baud rate mismatch, and the bootloader will switch to 1200 baud [5] for the rest of
the download operation. When the baud rate is switched to 1200 baud, the delay constant used to monitor
the intercharacter delay also must be changed to reflect the new character time.
At [6], the Y index register is initialized to $0000 to point to the start of on-chip RAM. The index register Y
is used to keep track of where the next received data byte will be stored in RAM. The main loop for loading
begins at [7].
The number of data bytes in the downloaded program can be any number between 0 and 512 bytes (the
size of on-chip RAM). This procedure is called "variable-length download" and is accomplished by ending
the download sequence when an idle time of at least four character times occurs after the last character
to be downloaded. In M68HC11 Family members which have 256 bytes of RAM, the download length is
fixed at exactly 256 bytes plus the leading $FF character.
The intercharacter delay counter is started [8] by loading the delay constant from TOC1 into the X index
register. The 19-E-cycle wait loop is executed repeatedly until either a character is received [9] or the
allowed intercharacter delay time expires [10]. For 7812 baud, the delay constant is 10,241 E cycles (539
x 19 E cycles per loop). Four character times at 7812 baud is 10,240 E cycles (baud prescale of 4 x baud
divider of 4 x 16 internal SCI clocks/bit time x 10 bit times/character x 4 character times). The delay from
reset to the initial $FF character is not critical since the delay counter is not started until after the first
character ($FF) is received.
To terminate the bootloading sequence and jump to the start of RAM without downloading any data to the
on-chip RAM, simply send $FF and nothing else. This feature is similar to the jump to EEPROM at [4]
except the $FF causes a jump to the start of RAM. This procedure requires that the RAM has been loaded
with a valid program since it would make no sense to jump to a location in uninitialized memory.
After receiving a character, the downloaded byte is stored in RAM [11]. The data is transmitted back to
the host [12] as an indication that the download is progressing normally. At [13], the RAM pointer is
incremented to the next RAM address. If the RAM pointer has not passed the end of RAM, the main
download loop (from [7] to [14]) is repeated.
When all data has been downloaded, the bootloader goes to [16] because of an intercharacter delay
timeout [10] or because the entire 512-byte RAM has been filled [15]. At [16], the X and Y index registers
are set up for calling the PROGRAM utility routine, which saves the user from having to do this in a
downloaded program. The PROGRAM utility is fully explained in
EPROM Programming Utility
. The final
step of the bootloader program is to jump to the start of RAM [17], which starts the user’s downloaded
program.
相关PDF资料
PDF描述
M68Z128W-70N1T 3V, 1 Mbit 128Kb x8 Low Power SRAM with Output Enable
M68Z128WN 3V, 1 Mbit 128Kb x8 Low Power SRAM with Output Enable
M68Z128W 3V, 1 Mbit 128Kb x8 Low Power SRAM with Output Enable
M69AW024BL60ZB8T 16 Mbit (1M x16) 3V Asynchronous PSRAM
M69AW024BL70ZB8T 16 Mbit (1M x16) 3V Asynchronous PSRAM
相关代理商/技术参数
参数描述
M68TC11E20FN52 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:HC11 Microcontrollers
M68TC11E20FU64 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:HC11 Microcontrollers
M68TC11E20PB52 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:HC11 Microcontrollers
M68TE08LJLKFB52E 功能描述:插座和适配器 TARGET HEAD ADAPTER RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
M68TE08LJLKFQ80E 功能描述:插座和适配器 TARGET HEAD ADAPTER RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x