thx for the post, but constructive help please
seriously important.
thx for the post, but constructive help please
seriously important.
First of all The used chip has only 1 hardware uart so HSERIN and HSEROUT without the 2 behind is normaly used.
Then you combine behind the HSEROUT the modifiers of the SEROUT command.
I can tell you ofcource what you had to type, but you will learn more by yourself if you read the exact used modifiers used for the HSEROUT (HSERIN) command and the SEROUT (SERIN) command and what is the difference beteween those two commands.
You can find it in the book that came with the compiler or you can download it by www.melabs.com
hey mat,
thx for the help but i still dun quite get it.
meaning that my HSEROUT is code wrongly??
am i missing something??
i meant i dun quite get this part
"without the 2 behind is normaly used.
Then you combine behind the HSEROUT the modifiers of the SEROUT command."
Indeed.
Look into the documents and you see:
HSEROUT [Item{,item....}] as HSEROUT [data1] when more HSEROUT [data1, data2, data3]
SERIN Pin,Mode,{Timeout,Label,}{[Qual...],}{Item...}
The Hser... commands are already defined by the statements:
DEFINE HSER_BAUD 9600
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 24h
DEFINE HSER_SPBRG 129
DEFINE HSER_CLROERR 1
I hope you understand what I meant to say.
In your programm you made a mix of the the both.
hey mat,
thx for all the help.
so how should i go about changing the codes??
basically i nv use HSEROUT before,
so i dun really understand it.
There's no reason why you can't use SEROUT in place of HSEROUT, just configure the I/O as general purpose rather than a serial port.
And you're trying to user HSEROUT2. If you read your PBP manual, you'll see that HSEROUT2 is reserved for PICs with 2 hardware serial port modules, something that the 16F876A does NOT have.
thx ski for telling me that.
but seriously i dunno why.
when i write serout and serin,
my programme doesnt really function as expected.
"my modem does receive the message that i send
but somehow there is no output"
is there any problems with it??
Bookmarks