參數(shù)資料
型號: MC68HC11E9VB2
廠商: FREESCALE SEMICONDUCTOR INC
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 2 MHz, MICROCONTROLLER, PDIP56
封裝: 0.070 INCH PITCH, SDIP-56
文件頁數(shù): 128/242頁
文件大?。?/td> 1672K
代理商: MC68HC11E9VB2
第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頁當(dāng)前第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頁
Driving Boot Mode from a Personal Computer
M68HC11 Bootstrap Mode, Rev. 1.1
Freescale Semiconductor
213
A problem arose with the BASIC programming technique used. The draft versions of this program tried
saving the object code bytes directly as binary in a string array. This caused "Out of Memory" or "Out of
String Space" errors on both a 2-Mbyte Macintosh and a 640-Kbyte PC. The solution was to make the
array an integer array and perform the integer-to-binary conversion on each byte as it is sent to the target
part.
The one compromise made to accommodate both Macintosh and PC versions of BASIC is in lines 1500
and 1505. Use line 1500 and comment out line 1505 if the program is to be run on a Macintosh, and,
conversely, use line 1505 and comment out line 1500 if a PC is used.
After the COM port is opened, the code to be bootloaded is modified by adding the $FF to the start of the
string. $FF synchronizes the bootloader in the MC68HC711E9 to 1200 baud. The entire string is simply
sent to the COM port by PRINTing the string. This is possible since the string is actually queued in
BASIC’s COM buffer, and the operating system takes care of sending the bytes out one at a time. The
M68HC11 echoes the data received for verification. No automatic verification is provided, though the data
is printed to the screen for manual verification.
Once the MCU has received this bootloaded code, the bootloader automatically jumps to it. The small
bootloaded program in turn includes a jump to the EPROM programming routine in the boot ROM.
Refer to the previous explanation of the EPROM Programming Utility for the following discussion. The
host system sends the first byte to be programmed through the COM port to the SCI of the MCU. The SCI
port on the MCU buffers one byte while receiving another byte, increasing the throughput of the EPROM
programming operation by sending the second byte while the first is being programmed.
When the first byte has been programmed, the MCU reads the EPROM location and sends the result back
to the host system. The host then compares what was actually programmed to what was originally sent.
A message indicating which byte is being verified is displayed in the lower half of the screen. If there is
an error, it is displayed at the top of the screen.
As soon as the first byte is verified, the third byte is sent. In the meantime, the MCU has already started
programming the second byte. This process of verifying and queueing a byte continues until the host
finishes sending data. If the programming is completely successful, no error messages will have been
displayed at the top of the screen. Subroutines follow the end of the program to handle some of the
repetitive tasks. These routines are short, and the commenting in the source code should be sufficient
explanation.
Modifications
This example programmed version 3.4 of the BUFFALO monitor into the EPROM of an MC68HC711E9;
the changes to the BASIC program to download some other program are minor.
The necessary changes are:
1.
In line 30, the length of the program to be downloaded must be assigned to the variable
CODESIZE%.
2.
Also in line 30, the starting address of the program is assigned to the variable ADRSTART.
3.
In line 9570, the start address of the program is stored in the third and fourth items in that DATA
statement in hexadecimal.
4.
If any changes are made to the number of bytes in the boot code in the DATA statements in lines
9500–9580, then the new count must be set in the variable "BOOTCOUNT" in line 25.
相關(guān)PDF資料
PDF描述
MC68HC11E9VFN2 8-BIT, MROM, 2 MHz, MICROCONTROLLER, PQCC52
MC68HC711E9CFN2 8-BIT, OTPROM, 2 MHz, MICROCONTROLLER, PQCC52
MC68L11E9B2 8-BIT, MROM, 2 MHz, MICROCONTROLLER, PDIP56
MC68HC11E0MFN2 8-BIT, 2 MHz, MICROCONTROLLER, PQCC52
MC68HC11E20VFN2 8-BIT, MROM, 2 MHz, MICROCONTROLLER, PQCC52
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC11E9VFN2 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:Microcontrollers
MC68HC11E9VFU2 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:Microcontrollers
MC68HC11E9VPB2 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:Microcontrollers
MC68HC11EA9 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:8 BIT HCMOS SINGLE CHIP MICROCONTOROLLER WITH A/D CONVERTER
MC68HC11EA9BCFN2 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:8-Bit Microcontrollers