timestamps as used on mainframes/unix etc are imho the simplest,easiest and most efficient way to measure time periods accurately. they work marvelously on pic micros too, i have tried to...
Type: Posts; User: richard; Keyword(s):
timestamps as used on mainframes/unix etc are imho the simplest,easiest and most efficient way to measure time periods accurately. they work marvelously on pic micros too, i have tried to...
i did a little test , your way is 4 times bigger code and executes upto 10 times slower
#CONFIG __config _CONFIG1, _FEXTOSC_OFF & _RSTOSC_HFINT32 & _CLKOUTEN_OFF & _CSWEN_OFF & _FCMEN_ON
...
it could simplify further
IF (UsartFlag = 1) then
ARRAYREAD RecvData,5,itsadud,[wait(UsartRight,UsartSlave,Usart0)]
select case RecvData[3]
case UsartC
IF RecvData[4] ==...
try array read
IF (UsartFlag = 1) then
ARRAYREAD RecvData,5,ndisp,[wait(UsartRight,UsartSlave,Usart0,UsartC,Usart2)]
GOSUB DisplayCOM1
ndisp:
...