MC68HC711E20CFS2 MOTOROLA [Motorola, Inc], MC68HC711E20CFS2 Datasheet - Page 232

no-image

MC68HC711E20CFS2

Manufacturer Part Number
MC68HC711E20CFS2
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
Application Note
232
50
51
52
53 B627 132E20FC WT4FF
54 B62B 962F
55 B62D CED000
56
57 B630 18CE523D WT4VPP
58 B634 150402
59 B637 960A
60 B639 2AF5
61 B63B 140402
62 B63E 1809
63 B640 26F5
64
65
66 B642 18CED000
67 B646 8D23
68 B648 8C0000
69 B64B 2702
70 B64D 8D1C
71 B64F 132E20FC VERF
72 B653 962F
73 B655 18A100
74 B658 2705
75 B65A 150403
76 B65D 2007
77 B65F
78 B65F 1808
79 B661 26E5
80 B663
81 B663 140401
82 B666
83 B666 150482
84 B669 20FE
85 B66B
86
87
88
89
90 B66B A600
91 B66D 132E80FC TRDYLP
92 B671 972F
93 B673 08
94 B674 39
95
*****
* Now wait for character from target to indicate it's ready for
* data to be programmed into EPROM
* Handle turn-on of Vpp
DLYLP2
* Vpp has been stable for 200ms
DATALP
VERFOK
DUNPRG
**************************************************
* Subroutine to get & send an SCI char.
*
**************************************************
SEND1
advances pointer (X).
Freescale Semiconductor, Inc.
For More Information On This Product,
BRCLR
LDAA
LDX
LDY
BCLR
LDAA
BPL
BSET
DEY
BNE
LDY
BSR
CPX
BEQ
BSR
BRCLR
LDAA
CMPA
BEQ
BCLR
BRA
INY
BNE
BSET
BCLR
BRA
LDAA
BRCLR
STAA
INX
RTS
Go to: www.freescale.com
SCSR RDRF WT4FF
SCDR
#EPSTRT
#21053
PORTB RED
PORTE
WT4VPP
PORTB RED
DLYLP2
#EPSTRT
SEND1
#0
VERF
SEND1
SCSR RDRF VERF
SCDR
0,Y
VERFOK
PORTB (RED+GREEN) Turn off LEDs
DUNPRG
DATALP
PORTB GREEN
PORTB (RESET+RED) Red OFF, apply reset
*
0,X
SCSR TDRE TRDYLP Wait for TDRE
SCDR
Wait for RDRF
Clear RDRF, don't need data
Point at start of EPROM
Delay counter (about 200ms)
Turn off RED LED
[3] Wait for Vpp to be ON
[3] Vpp sense is on port E MSB
[6] Turn on RED LED
[4]
[3] Total loop time = 19 cyc
X=Tx pointer, Y=verify pointer
Send first data to target
X points at $0000 after last
Skip send if no more
Send another data char
Wait for Rx ready
Get char and clr RDRF
Does char verify ?
Skip error if OK
Done (programming failed)
Advance verify pointer
Continue till all done
Grn LED ON
Done so just hang
Get a character
Send character
Advance pointer
** Return **
Also
AN1060 — Rev. 1.0
MOTOROLA

Related parts for MC68HC711E20CFS2