BasicMicroUK - Forums

www.basicmicro.co.uk
It is currently Tue Oct 23, 2018 1:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: hserout2 on ARC32 old version
PostPosted: Fri May 16, 2014 10:21 pm 
Offline
Citizen

Joined: Sun May 04, 2014 7:35 pm
Posts: 8
Hey guys, trying to use the second hardware serial on the arc32 original board. serout works fine but hserout2 no go. Here is what I have:

Works:

serout P17, i38400, ["t", 003]


Dosnt compile:
error: expected variable

enablehserout2
sethserial2 i38400,h8databits,hnoparity,h1stopbits
hserout2 ["t", 003]


Top
 Profile  
 
 Post subject: Re: hserout2 on ARC32 old version
PostPosted: Mon May 19, 2014 2:24 pm 
Offline
Master

Joined: Tue Nov 21, 2006 5:34 pm
Posts: 662
I am getting rusty here, but awhile ago HSEROUT was cleaned up to make life a little easier. That is instead of saying:
hserout1 ... and hserout2 ...

you say hserout 1, and likewise hserout 2.

Which allows you to define constants for it, so I have code like:
Code:
hserout HSP_XBEE, [   "ATD6 1",13,|

On an BAP28 HSP_XBEE is defined as 1 and on Arc32 it is defined as 2


Top
 Profile  
 
 Post subject: Re: hserout2 on ARC32 old version
PostPosted: Tue May 20, 2014 1:21 am 
Offline
Citizen

Joined: Sun May 04, 2014 7:35 pm
Posts: 8
Thanks KurtEck! That's the ticket. Looks like this now:

sethserial2 h38400
hserout 2, ["v", 13]

Smitty


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO