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 13 years, 11 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

  • Wien bridge oscillator January 19, 2026
  • Silicone insulated wire January 19, 2026
  • Op amp shock January 19, 2026
  • Is the input voltage selectable ? January 19, 2026
  • Unable To Get Advertised Op-Amp Slew Rate January 19, 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