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
  • i don't want anything of you

    It's a bit late for that declaration.

    You asked the question; that means you gave away the privilege of not having to listen to answers.

    And you asked it here, in a public forum; that means you also gave away the privilege of getting to pick who answers.

    i do right not wrong

    Interesting you should think so, given you had to come here and ask what went wrong.

Reply
  • i don't want anything of you

    It's a bit late for that declaration.

    You asked the question; that means you gave away the privilege of not having to listen to answers.

    And you asked it here, in a public forum; that means you also gave away the privilege of getting to pick who answers.

    i do right not wrong

    Interesting you should think so, given you had to come here and ask what went wrong.

Children