??? 03/31/10 21:06 Read: times |
#174693 - You have to be prepared to do some work, you know Responding to: ???'s previous message |
Odysseas Ko said:
there is no code in assembly language. Even if you don't use it directly, 'C' code is not hard to read. Look at the 'C' code - it tells you quite plainly what you need to do! Example: //---------------------------------------------------------------------------------- void s_transstart(void) //---------------------------------------------------------------------------------- // generates a transmission start // _____ ________ // DATA: |_______| // ___ ___ // SCK : ___| |___| |______ { DATA=1; SCK=0; //Initial state _nop_(); SCK=1; _nop_(); DATA=0; _nop_(); SCK=0; _nop_();_nop_();_nop_(); SCK=1; _nop_(); DATA=1; _nop_(); SCK=0; } _nop_() in Keil C51 is just NOP in assembler; assignment in C is just a MOV in assembler. It really isn't that hard! And, as Erik says, you can always just use the compiler to turn it into assembly! |
Topic | Author | Date |
8051 using i2c | 01/01/70 00:00 | |
What was your result? | 01/01/70 00:00 | |
Results | 01/01/70 00:00 | |
Binary data or printable ASCII data? | 01/01/70 00:00 | |
Binary data | 01/01/70 00:00 | |
I probably have a problem using I2C protocol. | 01/01/70 00:00 | |
I2C protocol | 01/01/70 00:00 | |
that being the case | 01/01/70 00:00 | |
So it clearly tells you that it is *not* I2C!! | 01/01/70 00:00 | |
start over | 01/01/70 00:00 | |
Why not start with the code they give you? | 01/01/70 00:00 | |
what code? | 01/01/70 00:00 | |
compile it | 01/01/70 00:00 | |
You have to be prepared to do some work, you know | 01/01/70 00:00 | |
Ripping assembler from the debugger | 01/01/70 00:00 | |
I need some help | 01/01/70 00:00 | |
Not a Contracting Site | 01/01/70 00:00 | |
We may be able to come to an arrangement - on one condition | 01/01/70 00:00 | |
BRAVO | 01/01/70 00:00 | |
I need some help 2 | 01/01/70 00:00 | |
Have you checked the debugger/simulator yet? | 01/01/70 00:00 | |
Compiler/simulator | 01/01/70 00:00 | |
No compiler in the C51 kit??? | 01/01/70 00:00 | |
you were so right![]() | 01/01/70 00:00 |