Go to GlobalSpec.com Home
Toolbar   The Engineering Toolbar
The Ultimate Resource for Engineering and Technical Research. (Learn More)

Using the C30 Compiler to Interface SPI Serial EEPROMs with dsPIC33

From Microchip Technology, Inc.
 

 

AN1096 Using the C30 Compiler to Interface SPI Serial EEPROMs with dsPIC33F and PIC24F This application note provides assistance and source Author: Martin Kvasnicka code to ease the design process of interfacing a Microchip Technology Inc. Microchip dsPIC33F Digital Signal Controller to a Microchip SPI serial EEPROM, without the use of a hardware serial port. INTRODUCTION Figure 1 describes the hardware schematic for the interface between Microchip's 25XXX series devices The 25XXX series serial EEPROMs from Microchip ® microcontrol-and the dsPIC33F DSC or PIC24F PIC compatible and have maximumTechnology are SPI ler. The schematic shows the connections necessary clock frequencies ranging from 3 MHz to 20 MHz. Many between the DSC or PIC MCU and the serial EEPROM times when designing an application which utilizes a as tested, and the software was written assuming serial EEPROM device, it may be beneficial to use a and HOLD pins are tied tothese connections. The WP microcontroller which does not feature a dedicated VCC through resistors, because the write-protect and protocol-specific serial port. This can be due to several hold features are not used in the examples provided. possible reasons, including size restrictions or costs. In these instances, it is required of the designer to write software routines capable of generating the proper signals for communicating with the EEPROM device. FIGURE 1: CIRCUIT FOR dsPIC33F256GP710, PIC24FJ128GA010 AND 25XXX SERIES DEVICES Vcc SDA1/RG3 SCK1/INT0/RF6 SDI1/RF7100 Pin TQFP SDO1/RF8 dsPIC33FJ256GP710 U1RX/RF2 1 8 VccCS PIC24FJ128GA010 U1TX/RF3 X 2 7SO HOLDX 4 54 5 25X SS DD F F WP 3 6 SCK V V R R / / RD1 RD1 7 8 / / 0 1 Vss 4 5 SI CN1 CN1 / X TRX/ S/CN2 S/CN2 2 T U2U CT R U1 U1 Note: CS, WP and HOLD pins should all have pull-up resistors (~10k-ohms).


Products & Services
Microcontrollers (MCU) are complete computer systems on a chip. They combine an arithmetic logic unit (ALU), memory, timer/counters, serial port, input/output (I/O) ports and a clock oscillator. Search by Specification | Learn more about Microcontrollers (MCU)
Specialty microprocessors and microcontrollers are specialty or proprietary products and accessories related to microprocessors and microcontrollers. Learn more about Specialty Microprocessors and Microcontrollers

Product Announcements
R4 Systems, Inc. - Proteus VSM for PIC Micros
Proteus VSM for PIC contains everything you need to develop and simulate embedded system designs based around the PIC series of microcontrollers from Microchip Technologies™. Models are... (read more)
Microchip Technology, Inc. - 100 Mbps Ethernet Controllers
Low-Cost ENC624J600 10/100Base-TX, MAC & PHY Ethernet Controllers Provide Cryptographic Security Hardware and Factory Preprogrammed MAC Addresses... (read more)
Microchip Technology, Inc. - Lowest Voltage EEPROM Devices on the Market
Microchip Technology Inc., a leading provider of microcontroller and analog semiconductors, today announced a series of I2C™ EEPROM devices with the lowest operating voltage available on the... (read more)
Microchip Technology, Inc. - Embedded Wi-Fi in PIC® Microcontroller With ZeroG
Explorer 16 Development Kit and PICtail™ Daughter Board Available Now from microchipDIRECT; Enable Wi-Fi Wireless Networks Using 8-, 16- or 32-bit PIC MCUs... (read more)
Microchip Technology, Inc. - Next Generation 16-Bit Digital Signal Controllers
Microchip Technology Inc., a leading provider of microcontroller and analog semiconductors, today announced the first seven next-generation 16-bit dsPIC® Digital Signal Controllers (DSCs) for common,... (read more)
Microchip Technology, Inc. - mTouch™ Capacitive Touch Evaluation Kit
Kit Enables Designers to Quickly and Easily Evaluate Capacitive Touch User-Interface Designs Using Microchip's 8- and 16-bit PIC® Microcontrollers... (read more)
Microchip Technology, Inc. - Robotics Development Kit from Digilent
PIC32-based Kit Targets Academia and Hobbyists; Comes With Integrated Programmer/Debugger and Free C Compiler... (read more)
Microchip Technology, Inc. - New Low-Power 8-bit PIC® Microcontrollers
Microchip Technology Inc., a leading provider of microcontroller and analog semiconductors, today announced a new family of 8-bit PIC® microcontrollers (MCUs) featuring nanoWatt XLP technology, which... (read more)
Microchip Technology, Inc. - Digital Power Interleaved PFC Reference Design
Free Reference Design Helps Designers of Green Power-Supply Products Lower Costs, Reduce Size and Improve Power Efficiency via Digital Power Conversion... (read more)
Microchip Technology, Inc. - 12-bit Quad Digital to Analog Converter w/EEPROM
Microchip Technology Inc., a leading provider of microcontroller and analog semiconductors, today announced the MCP4728 Digital-to-Analog Converter (DAC)—the industry's first 12-bit Quad DAC to... (read more)

Topics of Interest
AN1193 Using C to Interface 8051 MCUs with SPI Serial EEPROMs The main features of the 25XXX serial EEPROMs are: Author: Alexandru Valeanu * SPI-compatible serial interface bus Microchip Technology... (Read More)
AN1197 Using a Hardware Module to Interface 8051 MCUs with SPI Serial EEPROMs The main features of the 25XXX serial EEPROMs are: Author: Alexandru Valeanu * SPI-compatible serial interface bus... (Read More)
The 25XXX series serial EEPROMs from Microchip Technology are SPI compatible and have maximum clock frequencies ranging from 3 MHz to 20 MHz. Many times when designing an application which utilizes a... (Read More)
The 25XXX series serial EEPROMs from Microchip Technology are SPI compatible and have maximum clock frequencies ranging from 3 MHz to 20 MHz. The SPI module available on dsPIC33F Digital Signal... (Read More)
AN1100 Using the C30 Compiler to Interface Serial EEPROMs with dsPIC33F Figure 1 describes the hardware schematic for the Author: Martin Bowman interface between Microchip's 24XXX series devices... (Read More)