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 / ATMEGA 16+ SPI

ATMEGA 16+ SPI

|

Microcontroller › AVR › ATMEGA 16+ SPI

  • This topic has 2 replies, 3 voices, and was last updated 14 years, 2 months ago by Amrith.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 4, 2012 at 1:56 am #1865
    anchal
    Participant

    I was doing a simple master slave data transfer program in which i passed ‘a’ thru master which shud be displayed on LCD connected through slave.. I burned both of them separately and then connected the master and slave but LCD only showed the last output that was displayed on running the hex file of the previous program.. i dont know whats wrong i have checked the program, connections etc but cant figure out…

    Here are the codes:-

     

    MASTER:

    while (1)

    {

       spi(‘a’);

       delay_ms(200);

    };

     

    SLAVE:

     

    while (1)

    {

        c=spi(0);

        lcd_putchar();

        delay_ms(200);

    }

    July 5, 2012 at 8:57 pm #8195
    AJISH ALFRED
    Participant

    The problem might be in your lcd_putchar() function. Post the code including the function defenition also.

    July 7, 2012 at 2:19 am #8210
    Amrith
    Participant

    you might not be using LCD clear command to clear LCD. Include clear command while intializing LCD & every time when you want to rewrite a new character.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS feed: Recent Posts Recent Posts

  • Will this solenoid actuator work as intended? September 13, 2026
  • NE602/SA602 Bias and Buffer circuit September 13, 2026
  • Rotary encoder with push function September 12, 2026
  • How much does generator frequency stability matter for sensitive electrical equipment? September 12, 2026
  • differential line loss question September 11, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly 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 Arrowfly
Privacy Policy | Advertising

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