To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 487
486  |  488
Subject: 
Serial IO
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 5 Jun 1996 15:22:32 GMT
Original-From: 
(William Patrick Lundberg) <wl571236@lance&NoMoreSpam&.colostate.edu>
Viewed: 
1852 times
  
Yesterday I experimented with the Serial IO code in the FAQ.  I have a couple of questions though.  Here is the basic program that I wrote to try to understand this stuff:

I wrote this into hb_lib.c:

void disable_pcode_serial()
/* necessary to receive characters using serial_getchar */
{
   poke(0x3c, 1);
}

Then my program looked like this:

void tester()
{
   disable_pcode_serial();
   printf("Press the Start Button\n");
   start_button();
}

I thought that the HB would disconnect from my PC, then prompt for the Start Button to be pressed.  But instead it would disconnect from my PC until I pressed the Start Button.  I was just wondering why exactly this is happening?

Thanks for any help,
WilL



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR