| ??? 03/06/07 08:22 Read: times |
#134344 - what purpose? Responding to: ???'s previous message |
Bob Tilkey said:
org 0
Initialize:
mov r0,#0ffh ; set regesters with 1-3 with timing and loop settings
mov r1,#04ch
mov r3,#00fh
mov r5,#cold ;pot 0 reg
mov r6,#cold ;pot1 reg
mov r7,#014h ;increment pot loop
setb cs ;initialize output pins
setb sda
setb scl
acall etc_iat ;start
.
.
.
Mainline:
inc r5 ;increment pot settings prior to writing to pot
inc r6
djnz r7,data_ect ;inc. counter & write to pot after inc.
ajmp loop
.
.
.
.
ETC_IAT: ;write ect & iat to pot
mov a,r5
clr cs
acall txsend
mov a,#potab
acall txsend
; acall delay
setb cs
ajmp mainline
.
.
.
.
loop:
acall loop
end
What's the purpose of following sequence? 1)Calling ET_IAT 2)Jump to mainline 3)jump to loop 4)acall to loop (ad infinitum) whereby 4) will certainly be filling up your stack You will have to rethink/restructure your code regards Patrick |
| Topic | Author | Date |
| trouble w/ my bit banging code i2c, spi | 01/01/70 00:00 | |
| calls and jumps | 01/01/70 00:00 | |
| Sorry | 01/01/70 00:00 | |
| Reformatted your code. | 01/01/70 00:00 | |
| seen enough | 01/01/70 00:00 | |
| thanks erik | 01/01/70 00:00 | |
| A call to a subroutine that ends in a jump | 01/01/70 00:00 | |
| Thanks All | 01/01/70 00:00 | |
| don't take it personaly | 01/01/70 00:00 | |
what I am implying | 01/01/70 00:00 | |
| criticism and such... | 01/01/70 00:00 | |
| well, if you do not want advice, but cuddling | 01/01/70 00:00 | |
| what purpose? | 01/01/70 00:00 |



