参数资料
型号: PIC18F2480-E/SP
厂商: Microchip Technology
文件页数: 60/88页
文件大小: 0K
描述: IC PIC MCU FLASH 8KX16 28DIP
产品培训模块: Asynchronous Stimulus
PIC18 J Series MCU Overview
标准包装: 15
系列: PIC® 18F
核心处理器: PIC
芯体尺寸: 8-位
速度: 25MHz
连通性: CAN,I²C,SPI,UART/USART
外围设备: 欠压检测/复位,HLVD,POR,PWM,WDT
输入/输出数: 25
程序存储器容量: 16KB(8K x 16)
程序存储器类型: 闪存
EEPROM 大小: 256 x 8
RAM 容量: 768 x 8
电压 - 电源 (Vcc/Vdd): 4.2 V ~ 5.5 V
数据转换器: A/D 8x10b
振荡器型: 内部
工作温度: -40°C ~ 125°C
封装/外壳: 28-DIP(0.300",7.62mm)
包装: 管件
配用: DVA18XP280-ND - DEVICE ADAPTER 18F2220 PDIP 28LD
2010 Microchip Technology Inc.
DS21801F-page 63
MCP2515
12.0
SPI INTERFACE
12.1
Overview
The MCP2515 is designed to interface directly with the
Serial Peripheral Interface (SPI) port available on many
microcontrollers and supports Mode 0,0 and Mode 1,1.
Commands and data are sent to the device via the SI
pin, with data being clocked in on the rising edge of
SCK. Data is driven out by the MCP2515 (on the SO
line) on the falling edge of SCK. The CS pin must be
held low while any operation is performed. Table 12-1
shows the instruction bytes for all operations. Refer to
Figure 12-10 and Figure 12-11 for detailed input and
output timing diagrams for both Mode 0,0 and Mode 1,1
operation.
12.2
Reset Instruction
The Reset instruction can be used to re-initialize the
internal registers of the MCP2515 and set Configuration
mode. This command provides the same functionality,
via the SPI interface, as the RESET pin.
The Reset instruction is a single-byte instruction that
requires selecting the device by pulling CS low,
sending the instruction byte and then raising CS. It is
highly recommended that the reset command be sent
(or the RESET pin be lowered) as part of the power-on
initialization sequence.
12.3
Read Instruction
The Read instruction is started by lowering the CS pin.
The Read instruction is then sent to the MCP2515
followed by the 8-bit address (A7 through A0). Next, the
data stored in the register at the selected address will
be shifted out on the SO pin.
The
internal
address
pointer
is
automatically
incremented to the next address once each byte of
data is shifted out. Therefore, it is possible to read the
next consecutive register address by continuing to pro-
vide clock pulses. Any number of consecutive register
locations can be read sequentially using this method.
The read operation is terminated by raising the CS pin
12.4
Read RX Buffer Instruction
The Read RX Buffer instruction (Figure 12-3) provides
a means to quickly address a receive buffer for reading.
This instruction reduces the SPI overhead by one byte,
the address byte. The command byte actually has four
possible values that determine the address pointer
location. Once the command byte is sent, the controller
clocks out the data at the address location the same as
the Read instruction (i.e., sequential reads are
possible). This instruction further reduces the SPI
overhead by automatically clearing the associated
receive flag (CANINTF.RXnIF) when CS is raised at the
end of the command.
12.5
Write Instruction
The Write instruction is started by lowering the CS pin.
The Write instruction is then sent to the MCP2515
followed by the address and at least one byte of data.
It is possible to write to sequential registers by
continuing to clock in data bytes, as long as CS is held
low. Data will actually be written to the register on the
rising edge of the SCK line for the D0 bit. If the CS line
is brought high before eight bits are loaded, the write
will be aborted for that data byte and previous bytes in
the command will have been written. Refer to the timing
diagram in Figure 12-4 for a more detailed illustration of
the byte write sequence.
12.6
Load TX Buffer Instruction
The Load TX Buffer instruction (Figure 12-5) eliminates
the eight-bit address required by a normal write
command. The eight-bit instruction sets the address
pointer to one of six addresses to quickly write to a
transmit buffer that points to the “ID” or “data” address
of any of the three transmit buffers.
12.7
Request-To-Send (RTS)
Instruction
The RTS command can be used to initiate message
transmission for one or more of the transmit buffers.
The MCP2515 is selected by lowering the CS pin. The
RTS command byte is then sent. Shown in Figure 12-6,
the last 3 bits of this command indicate which transmit
buffer(s) are enabled to send.
This command will set the TxBnCTRL.TXREQ bit for
the respective buffer(s). Any or all of the last three bits
can be set in a single command. If the RTS command
is sent with nnn = 000, the command will be ignored.
12.8
Read Status Instruction
The Read Status instruction allows single instruction
access to some of the often used status bits for
message reception and transmission.
The MCP2515 is selected by lowering the CS pin and
the read status command byte, shown in Figure 12-8,
is sent to the MCP2515. Once the command byte is
sent, the MCP2515 will return eight bits of data that
contain the status.
If additional clocks are sent after the first eight bits are
transmitted, the MCP2515 will continue to output the
status bits as long as the CS pin is held low and clocks
are provided on SCK.
Note:
The MCP2515 expects the first byte after
lowering
CS
to
be
the
instruction/
command byte. This implies that CS must
be raised and then lowered again to
invoke another command.
相关PDF资料
PDF描述
V375A36E600B3 CONVERTER MOD DC/DC 36V 600W
VE-JWH-IX-F1 CONVERTER MOD DC/DC 52V 75W
PIC18F4610-I/ML IC MCU FLASH 32KX16 44QFN
V375A36E600B2 CONVERTER MOD DC/DC 36V 600W
VE-JWF-IX-F4 CONVERTER MOD DC/DC 72V 75W
相关代理商/技术参数
参数描述
PIC18F2480-I/ML 功能描述:8位微控制器 -MCU 16 KB 768 RAM 25 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F2480-I/SO 功能描述:8位微控制器 -MCU 16 KB 768 RAM 25 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F2480-I/SP 功能描述:8位微控制器 -MCU 16 KB 768 RAM 25 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F2480T-I/ML 功能描述:8位微控制器 -MCU 16 KB 768 RAM 25 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F2480T-I/SO 功能描述:8位微控制器 -MCU 16 KB 768 RAM 25 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT