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 did what i need after a research
    I can do 'research' at some websites and find that the world is flat.

    If, by 'research', you mean 'experimenting', then you are on the wrong path.

    You can find one result of an 'experiment' one day and another the next.

    The correct approach is DESIGN, which, oddly enough, would have eliminated ACC= in C.

    Erik

Reply
  • i did what i need after a research
    I can do 'research' at some websites and find that the world is flat.

    If, by 'research', you mean 'experimenting', then you are on the wrong path.

    You can find one result of an 'experiment' one day and another the next.

    The correct approach is DESIGN, which, oddly enough, would have eliminated ACC= in C.

    Erik

Children
No data