8-bit
Microcontrollers
Application Note
Rev. 2595A-AVR-03/05
AVR107: Interfacing AVR serial memories
Features
• Devices: AT25128A/256A, AT25F1024/2048/4096
• Full Serial Memory Functions Support
• Memory Array Burst Read
• Page Burst Write
• Write Protection Detection
• On Going Access Detection
• Non-blocking Write Access
• Access Status Information
1 Introduction
Serial-interface memories are used in a broad spectrum of consumer, automotive,
telecommunication, medical, industrial and PC related markets. Primarily used to
store personal preference data and configuration/setup data, Serial memories are
the most flexible type of non-volatile memory utilized today. Compared to other
NVM solutions, serial memories devices offer a lower pin count, smaller packages,
lower voltages, as well as lower power consumption.
Most of the AVR provide a SPI interface which enables a connection with a serial
memory like the AT25128A/256A and AT25F1024/2048/4096.
To ease and accelerate the integration of SPI serial memories in customer’s AVR
systems, basic drivers were developed to efficiently access them. This application
note describes the functionality and the architecture of these drivers as well as the
motivation of the selected solution. The exhaustive list and description of the
provided functions are part of the Doxygen Automated Document.
Figure 1-1. Hardware connections
AVR with SPI interface
SCK
MOSI
MISO
#SS
Serial memory
(AT25xxxx or AT25Fxxxx)
SCK
SI
SO
#CS
#HOLD
#WP
Manual
switch
Vcc
- 1
- 2
前往页