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 / hi am unable to transfer data through SPI protocol with philips P89v51rd2 controller , please help me out

hi am unable to transfer data through SPI protocol with philips P89v51rd2 controller , please help me out

|

Microcontroller › 8051 › hi am unable to transfer data through SPI protocol with philips P89v51rd2 controller , please help me out

  • This topic has 1 reply, 2 voices, and was last updated 14 years, 3 months ago by Anil K P.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 6, 2012 at 1:28 pm #1678
    karthik
    Participant

    #include<p89v51rd2.h>
    void main()
    {
     unsigned char v;
     MISO=1;
     SPCTL=0x65;
     v=’k’;
     while(1)
     {
     
      SPDAT(v);
      while(SPCFG==0X80);
      SPCFG=0x80;
     }
    }

    February 7, 2012 at 10:13 am #7117
    Anil K P
    Participant

     

    hi

     

    * check data what you have sending (if loop back  support)

     

    * check SPCFG (spi module is starting or not) and SPICR

     

     

  • 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

  • Why aren’t the power windows in my 2006 Volkswagen Polo 2006 working despite repairing the control unit circuit board? May 10, 2026
  • Voltage comparator circuit verification May 10, 2026
  • What is this??? May 9, 2026
  • infiniBand Layer 1 specifications testing question May 8, 2026
  • block RF May 8, 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