BasicMicroUK - Forums

www.basicmicro.co.uk
It is currently Wed Apr 25, 2018 10:57 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Alias for in Pin
PostPosted: Thu Aug 28, 2014 1:20 am 
Offline
Citizen

Joined: Wed Mar 13, 2002 7:00 pm
Posts: 36
I use Atom pro 40

XY_Pin VAR in17

if I use..."PULSIN p17, 1, pWidth"...it is ok
but if I use..."PULSIN XY_Pin, 1, pWidt...whith the Alias "XY_Pin" it gets a very wrong result.

I can not find my mistake. Somebody may tell me please
Heinz Germany


Top
 Profile  
 
 Post subject: Re: Alias for in Pin
PostPosted: Tue Sep 02, 2014 9:38 pm 
Offline
Site Admin
User avatar

Joined: Fri Apr 12, 2013 8:38 pm
Posts: 87
Location: Nottingham, England, UK
HI

As you have set up the software you are defining XY_Pin as a variable BUT you only need a constant as your defining a port number so if you code it as shown below :-

Code:
XY_Pin        CON         P17

    PULSIN        XY_Pin, 1, pWidth


It should work fine,

I hope this helps

Dave
BasicMicroUK
http://www.basicmicro.co.uk


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


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