View Single Post
  #1   Spotlight this post!  
Unread 03-09-2007, 21:38
Lawrey Lawrey is offline
Registered User
no team
 
Join Date: Aug 2007
Location: Singapore
Posts: 3
Lawrey is an unknown quantity at this point
Serial Communication to a Cmucam3

hi i encounter some problems :

im using a hitachi H8 microcontroller and the following is my program codes :


void serial_wait(int c){
int d=0;
while(d != c){
d = serial_getchar(0);
}
}

void serial_string(char c[])
{
int x,y=0;
while(y != 0x0d){ // while y ! \r
y = c[x++];
serial_putchar(y);
}
}

may i know does that send any command to my H8 board?