EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / SPI (serial peripheral interface) using AVR microcontroller (ATmega16) Missing Code2

SPI (serial peripheral interface) using AVR microcontroller (ATmega16) Missing Code2

|

Microcontroller › AVR › SPI (serial peripheral interface) using AVR microcontroller (ATmega16) Missing Code2

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 1 month ago by Ganesh Selvaraj.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 25, 2013 at 9:04 am #2734
    Dimitrios Mitsas
    Participant

    Greetings all.

     

    I found this brilliand example that you have about spi comunication between two avrs. The only problem is that when i am not logged in i can see code and code2 tabs. But when i login i can only see code tab and not the code2. Where can i find that code?

    Thanks.

    March 2, 2014 at 5:23 pm #11162
    Ganesh Selvaraj
    Participant

    The code available seems to be of the receiver (slave) microcontroller and as you said the transmitter code is missing. But they have given the steps of the programme for the transmitter also. Here it is

     

    1. Set SS, MOSI and SCK pin as output pins.
    2. Enable MSTR bit to make it master device.
    3. Program SPR [1:0] bits to select SCK frequency.
    4. Set SPE bit to enable SPI.
    5. Copy data in SPDR register to send.
    6. Wait until SPI interrupt flag get set.
     
  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • compile errors April 22, 2026
  • Quick Tip: Handling CH340 Driver Issues on Uno SMD Clones April 22, 2026
  • My Advanced Realistic Humanoid Robots Project April 22, 2026
  • Getting into an LED bulb April 21, 2026
  • understanding of resonance in time domain April 21, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise