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 13 years, 8 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 Recent Posts

  • Phone charger fix March 12, 2026
  • Very Curious Issue With DS3231 RTC Clock March 12, 2026
  • Summing inverting amplifier query March 12, 2026
  • Troubleshoot Wine Enthusiast Model 272 03 12 01 control board FX-108-1 March 12, 2026
  • Motor Getting Hot March 12, 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