I will try to add an external crystal BUT i do not think that this is the brpblem!!!!!!!!!!The echo sample code for HERSIN/HSEROUT is working...
Something else happend.When It reads the byte and trying to send to DS1620
(Shiftout).
Last edited by ngeronikolos; - 16th December 2008 at 09:24.
Maybe you need to make the variable a number of some kind?
From the manual...
Modifier Operation
{I}{S}BIN{1..16} Send binary digits
{I}{S}DEC{1..5} Send decimal digits
{I}{S}HEX{1..4} Send hexadecimal digits
REP c\n Send character c repeated n times
STR ArrayVar{\n} Send string of n characters
Dave
Always wear safety glasses while programming.
My variable is the InChar (look the code) and I set it as a byte.Maybe you need to make the variable a number of some kind?
The possible value could be $a1 or $a2 or $aa.
When I type that value via the terminal I have it back (hserout) but I do not have correct answer from the DS1620.
The strange thing is that I send
$a1
and I receive back
$
a
1
MAYBE????Code:hserin 100,start,[WAIT($), HEX InChar] Shiftout DQ, CLK, MSBFIRST, ["$",HEX InChar]
Dave
Always wear safety glasses while programming.
Do you have a Pull-Up resistor on PORTA.4 (RST)?
It's an Open Collector output, so it can't go HIGH on it's own.
DT
Of course my friend Taylor I use Pull-Up resistor on PORTA.4...
Bookmarks