Datasheet 搜索 > 微控制器 > Microchip(微芯) > PIC16C771-I/SO 数据手册 > PIC16C771-I/SO 用户编程技术手册 3/5 页


¥ 11.131
PIC16C771-I/SO 用户编程技术手册 - Microchip(微芯)
制造商:
Microchip(微芯)
分类:
微控制器
封装:
SOIC-20
描述:
PIC16C717/770/771 8 位微控制器Microchip 的 PIC16C 系列微控制器 8 位 CMOS MCU,将 Microchip 的 PIC® 体系架构融入到引脚和封装选件中,从节省空间的 14 引脚设备到功能丰富的 64 引脚设备。 现在由基于闪存的型号代替,这些设备在传统设计方面也仍受到欢迎。 对于新应用,应考虑 PIC16F 型号。 PIC16C717/770/771 系列微控制器基于 Microchip 的中级体系结构,带 8 层硬件堆栈和 35 个 14 位指令。 这些 MCU 可提供高达 5 MIP、7 千字节的程序存储器,数据存储器为 256 字节 RAM。 板载 RC 振荡器,精确度为 ±1%。### 特点35 指令 8 级硬件堆栈 15 个输入/输出引脚 1 个增强型捕获、比较、PWM (ECCP) 模块 6 通道模拟到数字转换器 (ADC) - PIC16C717 10 位、PIC16C770/771 12 位 两个 8 位计时器 一个 16 位计时器 主同步串行端口 (MSSP),带有 SPI 和 I2C 监控器计时器 (WDT) 通电重置 (POR) 通电计时器 (PWRT) 振荡器启动计时器 (OST) 可编程掉电重置 (PBOR) 在线串行编程 (ICSP)展开
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
典型应用电路图在P1
导航目录
PIC16C771-I/SO数据手册
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
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件