element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • 'Choose another store...'
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Talk SPI to EEPROM with Hercules Launchpad - part 1: from Zero to Hero
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 8 May 2015 9:07 AM Date Created
  • Views 614 views
  • Likes 0 likes
  • Comments 1 comment
  • hercules_launchpad
  • microchip
  • EEPROM
  • spi
  • texas_instruments
  • serial
  • protocol
Related
Recommended

Talk SPI to EEPROM with Hercules Launchpad - part 1: from Zero to Hero

Jan Cumps
Jan Cumps
8 May 2015

My Peruvian mate martinvalencia and I purchased a set of 25LC256 SPI serial EEPROM chips.

Our plan was to get them working with the Texas Instruments Hercules LaunchPad MK II.

That was back in January. And then we stalled.

Martin has restarted the exercise and I'm going to play along.

 

This blog is our path from Zero to Hero. Feel free to jump all over us while we're doing things the wrong way.

image

 

 

The Microchip SPI EEPROM

 

We've chosen the 25LC256. That's actually by accident.

I was going to try out their i2c 24LC256, but either I or the local electronics shop goofed up and we ended up with the SPI version.

The datasheet is available from the Microchip 25LC256 landing page. That pdf is the source for some of the drawings and quotes on this page.

 

We ordered the through-hole DIP version because there is no intention to use them in a real product.

It's just for educational purpose.

image

The schematics part isn't going to be a complexity in our exercise. The pin-out doesn't hold any surprises.

 

imageimageimage

 

We find the 4 common SPI functions

  • SI (MOSI/SIMO),
  • SO (MISO/SOMI);
  • SCK and
  • ~CS.

The other functional pins (~HOLD and ~WP) we'll give a fixed value by pulling them high or low permanently. They aren't going to play a role in our communication.

(That is: if we get away with that. I haven't checked the datasheet enough to see if we have to change their value in our simple scenario).

 

The signal levels of the 25LC are compatible with the Hercules RM46. No worries there.

 

 

SPI on the Hercules LaunchPad II

 

The Texas Instruments Hercules LAUNCHXL2 RM46 launchpad has two types of SPI peripherals.

image

We have access to standard SPI and buffered MibSPI (Multi-buffer SPI).

image

 

I haven't checked if all are broken out to the side connectors, but you can see on the picture below that there isn't a SPI shortage.

image

I'm now going to wire up the EEPROM on a tiny breadboard, and I'll start setting up my firmware development project in Code Composer Studio.

Hang on.

 

Related posts
part 1: this post
part 2: Circuit and Test Bed
part 3: Testing SPI Protocol with Bus Pirate
part 4: First Trial on the RM46
  • Sign in to reply
  • martinvalencia
    martinvalencia over 8 years ago

    good friend, it's time to start the show!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube