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
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 10 years, 6 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

  • Charging shutdown circuit question. August 7, 2022
  • \Dim light short circuit tester August 7, 2022
  • Right channel distortion on vintage fisher rs-2010 August 7, 2022
  • Pedestal fan August 7, 2022
  • Automatic bartender machine audio decoration August 7, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 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