programing 8051 to read spi protocol

hi i am a student tryin to read the data between two spi devices by tapping the lines in the middle please help me if anyone hav a code to read the ss,mosi,miso,sclk signals using GPIO they vl jst act lyk input port n read

Parents
  • Remember that the SPI protocol has various modes of operation. Like data bits captured on falling or rising edges, etc. So ensure that the device you are communicating with are compatible with your processor's code.

    en.wikipedia.org/.../Serial_Peripheral_Interface_Bus

    And since this is a 'class' the idea is that YOU figure it out, and not request 'free' source code. Such free source code might not work, and you won't know how to fix it, and the whole point in 'learning' is lost.

    --Cpt. Vince Foster
    2nd Cannon Place
    Fort Marcy Park, VA

Reply
  • Remember that the SPI protocol has various modes of operation. Like data bits captured on falling or rising edges, etc. So ensure that the device you are communicating with are compatible with your processor's code.

    en.wikipedia.org/.../Serial_Peripheral_Interface_Bus

    And since this is a 'class' the idea is that YOU figure it out, and not request 'free' source code. Such free source code might not work, and you won't know how to fix it, and the whole point in 'learning' is lost.

    --Cpt. Vince Foster
    2nd Cannon Place
    Fort Marcy Park, VA

Children
More questions in this forum