This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

simulate spi

Hi Friends,
i have two problems:

1-i try writting a code in C using atmel 89c52 to simulate spi.does anyone has a helpful code for me?

2-in the program declaration,i declare an array:
int Read_Va[]=0x0D;
when i try to read it during the program:
ACC=Read_Va;

ACC equal A to D why?
Thanks

Parents
  • simulate spi.

    What exactly do you mean by that? On a micro, either you do SPI, or you don't. There's really nothing to be simulated.

    when i try to read it during the program:
    ACC=Read_Va;

    Then you're doing something rather massively wrong. ACC is not yours to use in a high-level language program.

Reply
  • simulate spi.

    What exactly do you mean by that? On a micro, either you do SPI, or you don't. There's really nothing to be simulated.

    when i try to read it during the program:
    ACC=Read_Va;

    Then you're doing something rather massively wrong. ACC is not yours to use in a high-level language program.

Children