參數(shù)資料
型號: MC68HC11E20VFN2
廠商: FREESCALE SEMICONDUCTOR INC
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 2 MHz, MICROCONTROLLER, PQCC52
封裝: PLASTIC, LCC-52
文件頁數(shù): 111/242頁
文件大?。?/td> 1672K
代理商: MC68HC11E20VFN2
第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.
相關(guān)PDF資料
PDF描述
MC68HC11E9BCB3 8-BIT, MROM, 3 MHz, MICROCONTROLLER, PDIP56
MC68HC711E20CFU2 8-BIT, OTPROM, 2 MHz, MICROCONTROLLER, PQFP64
MC68S711E9CFN2 8-BIT, OTPROM, 2 MHz, MICROCONTROLLER, PQCC52
MC68HC11E9MPB2 8-BIT, MROM, 2 MHz, MICROCONTROLLER, PQFP52
MC68HC711E9CFS2 8-BIT, UVPROM, 2 MHz, MICROCONTROLLER, CQCC52
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC11E20VFU2 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:Microcontrollers
MC68HC11E9 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:M68HC11E Series Programming Reference Guide
MC68HC11E9B3 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:8-channel, 8-bit analog-to-digital (A/D) converter
MC68HC11E9BCB2 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:Microcontrollers
MC68HC11E9BCB3 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:8-channel, 8-bit analog-to-digital (A/D) converter