Joined: 27 Aug 2011 Posts: 22 Location: Baltimore, MD
#USE RS232 issue defining STREAM - V4.120
Posted: Wed Aug 31, 2011 10:32 am
Apparently you are supposed to be able to specify a stream id with the #use rs232 compiler directive.
Having multiple streams with a single uart is usefull because it provides a method of changing partity at run time... you simply select the appropriate stream with putc, getc, etc.
I get a compiler error when I add STREAM=1 to the use RS232 statement
USE parameter value is out of range "STREAM"
Any ideas?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Wed Aug 31, 2011 11:12 am
Don't use integers. It has to be a symbolic name. You don't need to
have a separate #define statement for it. Just put the identifier in
the #use rs232() statement as shown below:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum