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 / 7187
7186  |  7188
Subject: 
synchronization error
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 7 Dec 1999 16:40:19 GMT
Original-From: 
Kar-Wing Chan <KWCHAN@VUSE.VANDERBILT.EDUnomorespam>
Viewed: 
857 times
  
I'm encountering a synchronization error when calling serial_putchar within
a for loop.  Here's my code:

void test(){
int looper;

for (looper=0;looper<16;looper++){
  if (looper<7){
   serial_putchar(analog(looper));
   printf("\nPort: %d  Value: %d",looper,analog(looper));
  }
  else{
   serial_putchar(digital(looper));
   printf("\nPort: %d  Value: %d",looper,digital(looper));
  }
}
}


It crashes after displaying the third port.  I've done the serial loopback
test and it works fine.

Here's the error message in interactive C:

Downloading 6 bytes (addresses C200-C205): 6 loaded
Board synchronization error: sent 114, received 73
Board synchronization error: sent 114, received 255

I'm using Windows NT 4.0, service pack 5 and IC version 3.2

Please help.


Thank you,

Kar-Wing



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