Hi Steve,
Quick overview,
-18f2525 3k ram
- DT ints for main timing loop 10X/sec
-after main loop of code for up to .1 sec, wait for int flag to loop,
then, the time in wait is idle time, (indicates if using up processing available between interrupts to remain in accurate timing.)
-Recieve ints work in backround
-HSEROUT takes up about 80% processing for the loop to send 600 some-odd chars. More hserout will make error for the main timing loops...If you want to count on the main loop for timing. See image of serout.
Code:
HSEROUT["<name=IDLE_TIME,value=",dec L2,".",dec w1,"%>, _
","<name=LONG,value=",dec L1,">",10,13]
HSEROUT["IN DATA ARRAY "] ' pin 14 on F2525
for ax=1 to 'SEND ALL IN MEM BY INDEX
indx
DAT = RCVDATA[AX]
HSEROUT[DAT]
next ax
HSEROUT [", INDEX COUNT=" , DEC INDX ,10,13]

So, TX int will work in backround and not interfere with timing.
I can post code but I program on my old XP computer and this Vista laptop to internet and the vista blocks my network at times, so I have to get code files to post here.
thanks for your thoughts
don
Bookmarks