| ??? 12/20/01 18:00 Read: times |
#17907 - RE: Still Learning, Need some suggestions. |
Hi Carlos,
You come in CICLO routine with R0 loaded with 41H. Why after INC R0, you test CJNE R0,#BH,CICLO2 ?. I mean, why #BH ? You wrote: -Im trying to build a program who sents a set of bytes via one pin of the P1- I'm wonder which bit on P1 are you concerned since you use MOV P1,A after every rotate. About your question: Can I store those fixed bytes somewhere in the eeprom?? (look at the label head1 on the code, I'm using a MOV because a didn't find yet a better way to do it, but this is code, not fixed data and I will lose some time to execute this part) Yes. You can. Just use DB (DefineByte) assembler directive. All you have to do is to place a label like HEAD1: and then DB B8H,80H,A6H,10H,0DH,07H,E1H,4BH,06H,4CH,32H,59H,FFH. You must initialise at begining DPTR like MOV DPTR, #HEAD1 and instead INC R0 and MOV BYTE,@R0 place CLR A INC DPTR MOVC A,@A+DPTR MOV BYTE,A Regards, Silviu |
| Topic | Author | Date |
| Still Learning, Need some suggestions. | 01/01/70 00:00 | |
| RE: Still Learning, Need some suggestions. | 01/01/70 00:00 | |
| RE: Still Learning, Need some suggestions. | 01/01/70 00:00 | |
| RE: Still Learning, Need some suggestions. | 01/01/70 00:00 | |
| RE: Still Learning, Need some suggestions. | 01/01/70 00:00 | |
| RE: Still Learning, Need some suggestion | 01/01/70 00:00 | |
RE: Still Learning, Need some suggestion | 01/01/70 00:00 |



