Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits
English
한국어
日本語
русский
简体中文
español
부품명
상세내역
TB025 데이터 시트보기 (PDF) - Microchip Technology
부품명
상세내역
제조사
TB025
Downloading HEX Files to PIC16F87X PICmicro® Microcontrollers
Microchip Technology
TB025 Datasheet PDF : 8 Pages
1
2
3
4
5
6
7
8
TB025
FIGURE 2: FLOWCHART
Download Code
1
Get a single byte
GetByte
No
Character = :?
Yes
Read
ByteCount
and
store in
LineChecksum
Divide by 2 to
get # of words
Read
AddrH
and
add to
LineChecksum
2
No
RecType
= 1?
1
Yes
Read Checksum and
add to
LineChecksum
Result = 0?
Yes
No
Return with W = 0
Return with W = 1
Read
AddrL
and
add to
LineChecksum
Read
RecType
and
add to
LineChecksum
No
R
R
e
e
co
c
r
T
d
y
t
p
y
e
pe==0?0?
Yes
Yes
ByteCount
= 0?
No
Read
DataH
and
add to
LineChecksum
Return with W = FFh
2
Return with W = FFh
Read Checksum and
add to
LineChecksum
3
Move
AddrH:AddrL
into
EEADRH:EEADR
Move
HexDataH:HexDataL
into
EEDATH:EEDATA
Set
EEPGD
and
WREN
bits
Write 55h to
EECON2
Write AAh to
EECON2
Set
WR
bit
Wait for EE Write complete
Set
RD
bit
No
EEDATH
=
HexDataH
?
Yes
No
EEDATA
=
HexDataL
?
Yes
Continue with program
Read
DataL
and
add to
LineChecksum
3
Decrement
ByteCount
Yes
Result = 0?
1
No
Return with W = 1
©
1998 Microchip Technology Inc.
DS91025A-page 7
Share Link:
datasheetq.com [
Privacy Policy
]
[
Request Datasheet
] [
Contact Us
]