If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
thank you joe for attention
anyway just to make something clear
normaly i use programmer software to set all (define) like HS , MCLR_OFF , LVP ...etc
and other thing (define) erorr may not let pic work stable or work at all
and my circuit hung after 10 min of good execution time(it looped fine for 10 min)
when i used WDT it work fine .
you know the problem of pic basic pro is most of functions work at background
so you will be far from (hardware imagination execution) to track erorrs like this one
Very likely the problem is the time taken to dtmfout between the two serin command. If the for/next loop takes just longer than allowed you miss tx bytes and your system is out of syncronism. (Remember you have a wait comand)
Remove
And dtmfout after the second serin command, to be sure to avoid loosing tx bytesCode:dtmfout porta.3 ,100 ,100,[ 10 , 0 , 10 ] for x = 0 to 20 pause 10 if gdata[x] = "." then gdata[x] = 12 endif dtmfout porta.3 ,100,100,[ gdata[x] ] next x
Al.
Last edited by aratti; - 29th October 2008 at 14:35.
my serial data source is repeat it self continuously
when the first package arrive the the buffer will be load
and then first (FOR) loop will execute meen while there is serail data looses
after first (FOR LOOP)
the second serial in command will wait for other Sync WORD "SD"
because serial source repeat all data packages continuously (if because of loop
i miss the first appearing of "SD" at the end i'll catch it no matter what )
it works gooood
all data transmit ok and tone appear OK for 9 to 10 min of operation and the two FOR LOOP update continuously
--------------------------------------------------------
the hung is apear on tone sound
normaly DTMFOUT sounds apear like this
[toot -- teet -- tut -- tat -- tet - toot --tiit - toot ----> for 10 minuets ]
and then it become sounds like this after 10 min
[teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet] -------> till reset![]()
Last edited by eng.alamin; - 30th October 2008 at 11:00.
Bookmarks