Web Analytics
Datasheet 搜索 > 微控制器 > Microchip(微芯) > PIC16C770/SS 数据手册 > PIC16C770/SS 用户编程技术手册 3/5 页
PIC16C770/SS
器件3D模型
¥ 9.619
导航目录
  • 典型应用电路图在P1
PIC16C770/SS数据手册
Page:
of 5 Go
若手册格式错乱,请下载阅览PDF原文件
1996 Microchip Technology Inc. DS30154F-page 3
SQTP Specification for PIC16/17
APPENDIX A:
Implementing a table in the program memory of
PIC16C5X and PIC16C5XA:
The PIC16C5X and the PIC16C5XA family uses Har-
vard architecture, in which the program memory is sep-
arate from data memory. All instructions operate on
data that is fetched from the register file or data mem-
ory. Since there are no instructions to read from or write
to the program memory, simply storing data words in
program memory is of no use. There is, however, a sim-
ple and elegant way to implement constant tables in the
program memory by using the
RETLW
instruction. This
instruction returns from a subroutine as well as loads
an 8-bit constant into the W register. The following
example shows how to get a byte of “serial information”
from the table stored at location 000h in PIC16C54:
ORG 0 ;store serial numbers
RETLW 0FFh
RETLW 0FFh
RETLW 0FFh
RETLW 0FFh
RETLW 0FFh
RETLW 0FFh
RETLW 0FFh
RETLW 0FFh ;end of serial
;numbers
main_prog ORG XYZ ;This is main program
MOVLW byte_num ;byte_num = 0 for 1st
;byte
CALL get_1byte;
get_1byte MOVWF PC ;write W to program
;counter
;W = offset = 0 for
;1st byte
;end of get_1byte sub
;routine
END
The next example shows how a serial number may
reside at location other than 000h.
main_prog ORG XYZ ;This is main program
MOVLW byte_num ;byte_num = 0 for 1st
;byte
CALL get_1byte;
get_1byte ADDWFPC ;W = offset
RETLW 0ffh ;
RETLW 0ffh ;
RETLW 0ffh ;
RETLW 0ffh ;
RETLW 0ffh ;
RETLW 0ffh ;
RETLW 0ffh ;
RETLW 0ffh ;end of serial
;numbers
END
APPENDIX B:
Standard hex file format for serial programming:
The hex file containing the ‘serial numbers’ will be in
Intel hex 8-bit format. Since the PIC16C5X and the
PIC16C5XA have 12-bit data words, all addresses are
doubled in this hex format. Each line of the hex file will
be for a new part. Each line can contain only up to 16
bytes (i.e. eight PIC16C5X, PIC16C5XA instruction
words). The format is as follows:
:
NNAAAATTHHHHHH......HHCC
where:
NN = byte count on current line (max 10h allowed)
AAAA = address in four hex digits
TT = record type, always 00 except 01 for EOF
HH = Two digit hex data byte
CC = Two digit hex checksum

PIC16C770/SS 数据手册

Microchip(微芯)
224 页 / 3.07 MByte
Microchip(微芯)
137 页 / 5.82 MByte
Microchip(微芯)
5 页 / 0.05 MByte
Microchip(微芯)
24 页 / 0.47 MByte
Microchip(微芯)
18 页 / 0.58 MByte
Microchip(微芯)
2 页 / 0.1 MByte

PIC16C770 数据手册

Microchip(微芯)
PIC16 系列 376 B RAM 8 K x 14位 EPROM 8位 CMOS 微控制器 - PDIP-40
Microchip(微芯)
PIC16 系列 256 B RAM 2 K x 14位 EPROM 8位 CMOS 微控制器 - PDIP-20
Microchip(微芯)
MICROCHIP  PIC16C77-04/P  微控制器, 8位, 一次性可编程, PIC16C, 4 MHz, 14 KB, 368 Byte, 40 引脚, DIP
Microchip(微芯)
PIC16 系列 256 B RAM 2 K x 14位 EPROM 8位 CMOS 微控制器 - SOIC-20
Microchip(微芯)
PIC16 系列 376 B RAM 8 K x 14位 EPROM 8位 CMOS 微控制器 - PLCC-44
Microchip(微芯)
MICROCHIP  PIC16C770/P  微控制器, 8位, 一次性可编程, PIC16C7xx, 20 MHz, 3.5 KB, 256 Byte, 20 引脚, DIP
Microchip(微芯)
PIC16 系列 256 B RAM 2 K x 14位 EPROM 8位 CMOS 微控制器 - SSOP-20
Microchip(微芯)
PIC16 系列 256 B RAM 2 K x 14位 EPROM 8位 CMOS 微控制器 - SOIC-20
Microchip(微芯)
PIC16 系列 256 B RAM 2 K x 14位 EPROM 8位 CMOS 微控制器 - SSOP-20
Microchip(微芯)
8位CMOS微控制器与A / D转换器 8-Bit CMOS Microcontrollers with A/D Converter
器件 Datasheet 文档搜索
器件加载中...
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件