MC68HC711E20CFN2 Freescale Semiconductor, MC68HC711E20CFN2 Datasheet - Page 216

no-image

MC68HC711E20CFN2

Manufacturer Part Number
MC68HC711E20CFN2
Description
IC MCU 20K 2MHZ OTP 52-PLCC
Manufacturer
Freescale Semiconductor
Series
HC11r
Datasheets

Specifications of MC68HC711E20CFN2

Core Processor
HC11
Core Size
8-Bit
Speed
2MHz
Connectivity
SCI, SPI
Peripherals
POR, WDT
Number Of I /o
38
Program Memory Size
20KB (20K x 8)
Program Memory Type
OTP
Eeprom Size
512 x 8
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Data Converters
A/D 8x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
52-PLCC
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Listing 2. BASIC Program for Personal Computer
1090 BYTECOUNT = BYTECOUNT - 3
1099 REM ***** NEXT 4 HEX DIGITS BECOME THE STARTING ADDRESS FOR THE DATA *****
1100 GOSUB 6000
1102 GOSUB 7000
1104 ADDRESS= 4096 * X
1106 GOSUB 6000
1108 GOSUB 7000
1110 ADDRESS= ADDRESS+ 256 * X
1112 GOSUB 6000
1114 GOSUB 7000
1116 ADDRESS= ADDRESS+ 16 * X
1118 GOSUB 6000
1120 GOSUB 7000
1122 ADDRESS= ADDRESS+ X
1124 ARRAYCNT = ADDRESS-ADRSTART
1129 REM ***** CONVERT THE DATA DIGITS TO BINARY AND SAVE IN THE ARRAY *****
1130 FOR I = 1 TO BYTECOUNT
1140 GOSUB 6000
1150 GOSUB 7000
1160 Y = 16 * X
1170 GOSUB 6000
1180 GOSUB 7000
1190 Y = Y + X
1200 CODE%(ARRAYCNT) = Y
1210 ARRAYCNT = ARRAYCNT + 1
1220 NEXT I
1230 GOTO 1000
1250 CLOSE 1
1499 REM ***** DUMP BOOTLOAD CODE TO PART *****
1500 'OPEN "R",#2,"COM1:1200,N,8,1" 'Macintosh COM statement
1505 OPEN "COM1:1200,N,8,1,CD0,CS0,DS0,RS" FOR RANDOM AS #2 'DOS COM statement
1510 INPUT "Comm port open"; Q$
1512 WHILE LOC(2) >0
1513 GOSUB 8020
1514 WEND
1515 PRINT : PRINT "Sending bootload code to target part..."
1520 A$ = CHR$(255) + BOOTCODE$ 'ADD HEX FF TO SET BAUD RATE ON TARGET HC11
1530 GOSUB 6500
1540 PRINT
1550 FOR I = 1 TO BOOTCOUNT
1560 GOSUB 8000
1564 K=ASC(B$):GOSUB 8500
1565 PRINT "Character #"; I; " received = "; HX$
1570 NEXT I
1590 PRINT "Programming is ready to begin.": INPUT "Are you ready"; Q$
1595 CLS
1597 WHILE LOC(2) > 0
1598 GOSUB 8020
1599 WEND
1600 XMT = 0: RCV = 0
1610 A$ = CHR$(CODE%(XMT))
1620 GOSUB 6500
1625 FOR I = 1 TO CODESIZE% - 1
1630 A$ = CHR$(CODE%(I))
1635 GOSUB 6500
216
M68HC11 Bootstrap Mode, Rev. 1.1
'SAVE UPPER NIBBLE OF BYTE
'ADD LOWER NIBBLE
'SAVE BYTE IN ARRAY
'INCREMENT ARRAY INDEX
'FLUSH INPUT BUFFER
'# OF BYTES IN BOOT CODE BEING ECHOED
'FLUSH INPUT BUFFER
'POINTERS TO XMIT AND RECEIVE BYTES
'SEND FIRST BYTE
'SEND SECOND BYTE TO GET ONE IN QUEUE
'SEND IT
'ADJUST FOR ADDRESS + CHECKSUM
'GET FIRST NIBBLE OF ADDRESS
'CONVERT TO DECIMAL
'GET NEXT NIBBLE
'INDEX INTO ARRAY
'ZERO BASED ARRAY 0 -> CODESIZE-1
Freescale Semiconductor

Related parts for MC68HC711E20CFN2