BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 8:17 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: OUTS faulty?
PostPosted: Tue May 20, 2003 10:00 am 
This program works fine to alternately flash 2 LED's connected to ports 0 and 15:

Start:
Low 15
High 0
Pause 100
Low 0
High 15
Pause 400
Goto Start

If only the first Low/High pair is replaced with OUTS = $7FFF, it still works.

If only the second Low/High pair is replaced with OUTS = $FFFE, it still works.

But if both pairs are replaced together, it fails.



Top
  
 
 Post subject: Re: OUTS faulty?
PostPosted: Wed May 21, 2003 10:00 am 
how does it "fail"? also, which version of the IDE and which version of the PRO are you using?


Top
  
 
 Post subject: Re: OUTS faulty?
PostPosted: Wed May 21, 2003 10:00 am 
It fails in that neither LED lights.
PRO X (3 days old). IDE 07.1.0.2.


Top
  
 
 Post subject: Re: OUTS faulty?
PostPosted: Mon May 26, 2003 10:00 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
If you replace both low/high pairs the pins are never set as outputs. You must either set the direction of the pins to outputs using the DIRS variable or use the output command.

Nathan


_________________
Tech Support
Basic Micro - Robotic Technology Evolved


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

All times are UTC - 8 hours [ 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