參數(shù)資料
型號: ATMEGA324P-B15MZ
廠商: Atmel
文件頁數(shù): 17/70頁
文件大?。?/td> 0K
描述: IC MCU 8BIT 32KB FLASH 44VQFN
標(biāo)準(zhǔn)包裝: 4,000
系列: AVR® ATmega
核心處理器: AVR
芯體尺寸: 8-位
速度: 16MHz
連通性: I²C,SPI,UART/USART
外圍設(shè)備: 欠壓檢測/復(fù)位,POR,PWM,WDT
輸入/輸出數(shù): 32
程序存儲器容量: 32KB(16K x 16)
程序存儲器類型: 閃存
EEPROM 大?。?/td> 1K x 8
RAM 容量: 2K x 8
電壓 - 電源 (Vcc/Vdd): 2.7 V ~ 5.5 V
數(shù)據(jù)轉(zhuǎn)換器: A/D 8x10b
振蕩器型: 內(nèi)部
工作溫度: -40°C ~ 125°C
封裝/外殼: 44-VFQFN 裸露焊盤
包裝: 帶卷 (TR)
其它名稱: ATMEGA324P-B15MZ-ND
PIC16(L)F1826/27
DS41391D-page 236
2011 Microchip Technology Inc.
25.2.2
SPI MODE OPERATION
When initializing the SPI, several options need to be
specified. This is done by programming the appropriate
control bits (SSPxCON1<5:0> and SSPxSTAT<7:6>).
These control bits allow the following to be specified:
Master mode (SCKx is the clock output)
Slave mode (SCKx is the clock input)
Clock Polarity (Idle state of SCKx)
Data Input Sample Phase (middle or end of data
output time)
Clock Edge (output data on rising/falling edge of
SCKx)
Clock Rate (Master mode only)
Slave Select mode (Slave mode only)
To enable the serial port, SSPx Enable bit, SSPxEN of
the SSPxCON1 register, must be set. To reset or recon-
figure SPI mode, clear the SSPxEN bit, re-initialize the
SSPxCONx registers and then set the SSPxEN bit.
This configures the SDIx, SDOx, SCKx and SSx pins
as serial port pins. For the pins to behave as the serial
port function, some must have their data direction bits
(in the TRIS register) appropriately programmed as fol-
lows:
SDIx must have corresponding TRIS bit set
SDOx must have corresponding TRIS bit cleared
SCKx (Master mode) must have corresponding
TRIS bit cleared
SCKx (Slave mode) must have corresponding
TRIS bit set
SSx must have corresponding TRIS bit set
Any serial port function that is not desired may be
overridden by programming the corresponding data
direction (TRIS) register to the opposite value.
The MSSPx consists of a transmit/receive shift register
(SSPxSR) and a buffer register (SSPxBUF). The
SSPxSR shifts the data in and out of the device, MSb
first. The SSPxBUF holds the data that was written to
the SSPxSR until the received data is ready. Once the
8 bits of data have been received, that byte is moved to
the SSPxBUF register. Then, the Buffer Full Detect bit,
BF of the SSPxSTAT register, and the interrupt flag bit,
SSPxIF, are set. This double-buffering of the received
data (SSPxBUF) allows the next byte to start reception
before reading the data that was just received. Any
write
to
the
SSPxBUF
register
during
transmission/reception of data will be ignored and the
write collision detect bit WCOL of the SSPxCON1
register, will be set. User software must clear the
WCOL bit to allow the following write(s) to the
SSPxBUF register to complete successfully.
When the application software is expecting to receive
valid data, the SSPxBUF should be read before the
next byte of data to transfer is written to the SSPxBUF.
The Buffer Full bit, BF of the SSPxSTAT register,
indicates when SSPxBUF has been loaded with the
received data (transmission is complete). When the
SSPxBUF is read, the BF bit is cleared. This data may
be irrelevant if the SPI is only a transmitter. Generally,
the MSSPx interrupt is used to determine when the
transmission/reception has completed. If the interrupt
method is not going to be used, then software polling
can be done to ensure that a write collision does not
occur.
FIGURE 25-5:
SPI MASTER/SLAVE CONNECTION
Serial Input Buffer
(BUF)
Shift Register
(SSPxSR)
MSb
LSb
SDOx
SDIx
Processor 1
SCKx
SPI Master SSPxM<3:0> = 00xx
Serial Input Buffer
(SSPxBUF)
Shift Register
(SSPxSR)
LSb
MSb
SDIx
SDOx
Processor 2
SCKx
SPI Slave SSPxM<3:0> = 010x
Serial Clock
SSx
Slave Select
General I/O
(optional)
= 1010
相關(guān)PDF資料
PDF描述
AT91SAM7S64C-MU-999 IC ARM7 MCU FLASH 64K 64QFN
LX128V-32FN208C IC SWITCH DIGITAL 208FPBGA
AT91SAM7S64C-AU-999 IC ARM7 MCU 32BIT 64K 64LQFP
LX128EV-5FN208I IC SWITCH DIGITAL 208FPBGA
LX128EV-32FN208C IC SWITCH DIGITAL 208FPBGA
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ATMEGA324PB-AN 功能描述:IC MCU 8BIT 32KB FLASH 44TQFP 制造商:microchip technology 系列:AVR? ATmega 包裝:托盤 零件狀態(tài):在售 核心處理器:AVR 核心尺寸:8-位 速度:20MHz 連接性:I2C,SPI,UART/USART 外設(shè):欠壓檢測/復(fù)位,POR,PWM,WDT I/O 數(shù):39 程序存儲容量:32KB(16K x 16) 程序存儲器類型:閃存 EEPROM 容量:1K x 8 RAM 容量:2K x 8 電壓 - 電源(Vcc/Vdd):1.8 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x10b 振蕩器類型:內(nèi)部 工作溫度:-40°C ~ 105°C(TA) 封裝/外殼:44-TQFP 供應(yīng)商器件封裝:44-TQFP 標(biāo)準(zhǔn)包裝:160
ATMEGA324PB-ANR 功能描述:IC MCU 8BIT 32KB FLASH 44TQFP 制造商:microchip technology 系列:AVR? ATmega 包裝:剪切帶(CT) 零件狀態(tài):在售 核心處理器:AVR 核心尺寸:8-位 速度:20MHz 連接性:I2C,SPI,UART/USART 外設(shè):欠壓檢測/復(fù)位,POR,PWM,WDT I/O 數(shù):39 程序存儲容量:32KB(16K x 16) 程序存儲器類型:閃存 EEPROM 容量:1K x 8 RAM 容量:2K x 8 電壓 - 電源(Vcc/Vdd):1.8 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x10b 振蕩器類型:內(nèi)部 工作溫度:-40°C ~ 105°C(TA) 封裝/外殼:44-TQFP 供應(yīng)商器件封裝:44-TQFP 標(biāo)準(zhǔn)包裝:1
ATMEGA324PB-AU 功能描述:IC MCU 8BIT 32KB FLASH 44TQFP 制造商:microchip technology 系列:AVR? ATmega 包裝:散裝 零件狀態(tài):在售 核心處理器:AVR 核心尺寸:8-位 速度:20MHz 連接性:I2C,SPI,UART/USART 外設(shè):欠壓檢測/復(fù)位,POR,PWM,WDT I/O 數(shù):39 程序存儲容量:32KB(16K x 16) 程序存儲器類型:閃存 EEPROM 容量:1K x 8 RAM 容量:2K x 8 電壓 - 電源(Vcc/Vdd):1.8 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x10b 振蕩器類型:內(nèi)部 工作溫度:-40°C ~ 85°C(TA) 封裝/外殼:44-TQFP 供應(yīng)商器件封裝:44-TQFP 標(biāo)準(zhǔn)包裝:160
ATMEGA324PB-AUR 功能描述:IC MCU 8BIT 32KB FLASH 44TQFP 制造商:microchip technology 系列:AVR? ATmega 包裝:帶卷(TR) 零件狀態(tài):在售 核心處理器:AVR 核心尺寸:8-位 速度:20MHz 連接性:I2C,SPI,UART/USART 外設(shè):欠壓檢測/復(fù)位,POR,PWM,WDT I/O 數(shù):39 程序存儲容量:32KB(16K x 16) 程序存儲器類型:閃存 EEPROM 容量:1K x 8 RAM 容量:2K x 8 電壓 - 電源(Vcc/Vdd):1.8 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x10b 振蕩器類型:內(nèi)部 工作溫度:-40°C ~ 85°C(TA) 封裝/外殼:44-TQFP 供應(yīng)商器件封裝:44-TQFP 標(biāo)準(zhǔn)包裝:2,000
ATMEGA324PB-MN 功能描述:IC MCU 8BIT 32KB FLASH 44VQFN 制造商:microchip technology 系列:AVR? ATmega 包裝:托盤 零件狀態(tài):在售 核心處理器:AVR 核心尺寸:8-位 速度:20MHz 連接性:I2C,SPI,UART/USART 外設(shè):欠壓檢測/復(fù)位,POR,PWM,WDT I/O 數(shù):39 程序存儲容量:32KB(16K x 16) 程序存儲器類型:閃存 EEPROM 容量:1K x 8 RAM 容量:2K x 8 電壓 - 電源(Vcc/Vdd):1.8 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x10b 振蕩器類型:內(nèi)部 工作溫度:-40°C ~ 105°C(TA) 封裝/外殼:44-VFQFN 裸露焊盤 供應(yīng)商器件封裝:44-VQFN(7x7) 標(biāo)準(zhǔn)包裝:360