??? 04/20/05 16:01 Modified: 04/20/05 16:04 Read: times |
#91990 - leg up Responding to: ???'s previous message |
This is the compiler output for the relevant portion of the transmit routine I wrote for the RPC a while ago.
Data lines are connected to the low nibble of P2, the control lines to the high nibble (hence the repeated OR with 0xF0). CLR TXR ?WHILE6: JB TXA,?WHILE6 MOV A,Tx_data ORL A,#0F0H ANL P2,A SETB TXR ?WHILE7: JNB TXA,?WHILE7 ORL P2,#00FH CLR TXR ?WHILE8: JB TXA,?WHILE8 MOV A,Tx_data SWAP A ANL A,#00FH ORL A,#0F0H ANL P2,A SETB TXR ?WHILE9: JNB TXA,?WHILE9 Hope this helps you get started. Regards, Rob. |
Topic | Author | Date |
Host to RPC byte transfer | 01/01/70 00:00 | |
leg up | 01/01/70 00:00 | |
RE: leg up | 01/01/70 00:00 | |
You've got to be joking! | 01/01/70 00:00 | |
Receive sequence | 01/01/70 00:00 | |
why not try it | 01/01/70 00:00 | |
Simulate | 01/01/70 00:00 | |
Wrong way round | 01/01/70 00:00 | |
F.A.O Rob | 01/01/70 00:00 | |
On the right track | 01/01/70 00:00 | |
Thanks Rob | 01/01/70 00:00 | |
Resetting port pins![]() | 01/01/70 00:00 | |
F.A.O Rob Klein | 01/01/70 00:00 |