We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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.
i did what i need after a research & i don't want anything of you Hans-Bernhard Broeker it's a lesson for you:You must be polite in your reply ,your words like bricks i do right not wrong as you said & use accumlator in my program
No, I'm afraid you are wrong: you cannot rely upon the compiler not to use the accumulator for its own purposes - therefore, you must not use it for your purposes.
You might be lucky (sic?) and happen to get away with it on this occasion - but, if you continue to rely upon it, you will come unstuck!
Frau Handz-Bandeged Broeken,
You have now been told what we think of you!
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.
<quote>It's a bit late for that declaration.</quote>
Look at the OPs original post. Take each letter following the classic alternate quadratic encoding scheme, pass it through the proprietary decode algorithm, and you quite clearly see "Please will anyone respond except for Frau Handz-Bandeged Broeken".
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