| 1 |
1:From [email protected] Wed Jul 1 13:17:17 1998 |
| 2 |
2:Received: from aleve.media.mit.edu by hub.media.mit.edu; (5.65v3.2/1.1/06Jun95-8.2MPM) |
| 3 |
3: id AA10324; Wed, 1 Jul 1998 13:17:17 -0400 |
| 4 |
4:Received: from comp.uark.edu ([email protected] [130.184.252.197]) |
| 5 |
5: by aleve.media.mit.edu (8.8.7/ML970927) with ESMTP id LAA00083 |
| 6 |
6: for <[email protected]>; Wed, 1 Jul 1998 11:56:44 -0400 (EDT) |
| 7 |
7:Received: from comp.uark.edu (IDENT:[email protected] [130.184.201.233]) |
| 8 |
8: by comp.uark.edu (8.9.0/8.9.0) with ESMTP id KAA12202; |
| 9 |
9: Wed, 1 Jul 1998 10:56:30 -0500 (CDT) |
| 10 |
10:Sender: [email protected] |
| 11 |
11:Message-Id: <[email protected]> |
| 12 |
12:Date: Wed, 01 Jul 1998 10:56:30 -0500 |
| 13 |
13:From: Douglas Blank <[email protected]> |
| 14 |
14:Organization: University of Arkansas, CS |
| 15 |
15:X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.0.33 i686) |
| 16 |
16:Mime-Version: 1.0 |
| 17 |
17:To: Aaron Edsinger <[email protected]> |
| 18 |
18:Cc: handy <[email protected]> |
| 19 |
19:Subject: Re: Serial Interface |
| 20 |
20:References: <[email protected]> |
| 21 |
21:Content-Type: text/plain; charset=us-ascii |
| 22 |
22:Content-Transfer-Encoding: 7bit |
| 23 |
23: |
| 24 |
24:Aaron Edsinger wrote: |
| 25 |
25: |
| 26 |
26:> Hello, |
| 27 |
27:> I've been having some problems using my HandyBoard to talk directly to my |
| 28 |
28:> PC via the serial interface. I disable Interactive C and then Poke() and |
| 29 |
29:> Peek() as has been described on this list. I send short character strings |
| 30 |
30:> from my PC to the HandyBoard under Windows 95. If I send strings longer |
| 31 |
31:> than 2 characters, it seems that some of the characters get lost. This |
| 32 |
32:> behavior seems to be affected by repositioning or slightly modifying the |
| 33 |
33:> code, suggesting perhaps a timing issue. |
| 34 |
34: |
| 35 |
35:Although there is the HEXMON program, I too, have been trying to do what |
| 36 |
36:you describe, and encountered the same problems. I found it to be a |
| 37 |
37:timing issue, and, through trial and error, have a found some settings |
| 38 |
38:that seem to work most of the time. |
| 39 |
39: |
| 40 |
40:My goal was to make C code that looked the same when compiled and run on |
| 41 |
41:the Host is the code that ran under IC. |
| 42 |
42: |
| 43 |
43:I am including the host and HB programs here. If anyone knows of a |
| 44 |
44:better way of communicating, please let us know. |
| 45 |
45: |
| 46 |
46:-Doug Blank |
| 47 |
47: |
| 48 |
48:===================================================================== |
| 49 |
49:[email protected] Douglas Blank, University of Arkansas |
| 50 |
50:Assistant Professor Computer Science |
| 51 |
51:==================== http://www.uark.edu/~dblank ==================== |
| 52 |
52: |
| 53 |
53:This code was written for MS C++4.0 running on Win95. |
| 54 |
54: |
| 55 |
55://************** BEGIN: serial_HOST.c |
| 56 |
56: |
| 57 |
57:/* VC++4.0 HandyBoard Host Programming System |
| 58 |
58: Dr. Douglas S. Blank |
| 59 |
59: University of Arkansas, Department of Computer Science |
| 60 |
60: www.uark.edu/~dblank |
| 61 |
61: |
| 62 |
62: This code runs on a host PC. |
| 63 |
63:*/ |
| 64 |
64: |
| 65 |
65:#include <ctype.h> |
| 66 |
66:#include <conio.h> |
| 67 |
67:#include <stdlib.h> |
| 68 |
68:#include <stdio.h> |
| 69 |
69: |
| 70 |
70:#include "serial_HOST.h" |
| 71 |
71: |
| 72 |
72:void main(int argc, char *argv[]) |
| 73 |
73:{ |
| 74 |
74: motor(0, 100); |
| 75 |
75: motor(1, 100); |
| 76 |
76: motor(2, 100); |
| 77 |
77: motor(3, 100); |
| 78 |
78: sleep(1000); |
| 79 |
79: motor(0, -100); |
| 80 |
80: motor(1, -100); |
| 81 |
81: motor(2, -100); |
| 82 |
82: motor(3, -100); |
| 83 |
83: sleep(1000); |
| 84 |
84: ao(); |
| 85 |
85: print("\nThis is a test"); |
| 86 |
86: printf("Knob is %d\n", knob() ); |
| 87 |
87: printf("Analog(0) is %d\n", analog(0)); |
| 88 |
88: printf("Digital(0) is %d\n", digital(0)); |
| 89 |
89: printf("Analog(1) is %d\n", analog(1)); |
| 90 |
90: printf("Digital(1) is %d\n", digital(1)); |
| 91 |
91: printf("Analog(2) is %d\n", analog(2)); |
| 92 |
92: printf("Digital(2) is %d\n", digital(2)); |
| 93 |
93: printf("Analog(3) is %d\n", analog(3)); |
| 94 |
94: printf("Digital(3) is %d\n", digital(3)); |
| 95 |
95: printf("Analog(4) is %d\n", analog(4)); |
| 96 |
96: printf("Digital(4) is %d\n", digital(4)); |
| 97 |
97: printf("Analog(5) is %d\n", analog(5)); |
| 98 |
98: printf("Digital(5) is %d\n", digital(5)); |
| 99 |
99: printf("Analog(6) is %d\n", analog(6)); |
| 100 |
100: printf("Digital(6) is %d\n", digital(6)); |
| 101 |
101: printf("Analog(7) is %d\n", analog(7)); |
| 102 |
102: printf("Digital(7) is %d\n", digital(7)); |
| 103 |
103: printf("Analog(8) is %d\n", analog(8)); |
| 104 |
104: printf("Digital(8) is %d\n", digital(8)); |
| 105 |
105: printf("Analog(9) is %d\n", analog(9)); |
| 106 |
106: printf("Digital(9) is %d\n", digital(9)); |
| 107 |
107: printf("Analog(10) is %d\n", analog(10)); |
| 108 |
108: printf("Digital(10) is %d\n", digital(10)); |
| 109 |
109: printf("Analog(11) is %d\n", analog(11)); |
| 110 |
110: printf("Digital(11) is %d\n", digital(11)); |
| 111 |
111: printf("Analog(12) is %d\n", analog(12)); |
| 112 |
112: printf("Digital(12) is %d\n", digital(12)); |
| 113 |
113: printf("Analog(13) is %d\n", analog(13)); |
| 114 |
114: printf("Digital(13) is %d\n", digital(13)); |
| 115 |
115: printf("Analog(14) is %d\n", analog(14)); |
| 116 |
116: printf("Digital(14) is %d\n", digital(14)); |
| 117 |
117: printf("Analog(15) is %d\n", analog(15)); |
| 118 |
118: printf("Digital(15) is %d\n", digital(15)); |
| 119 |
119: beep(); |
| 120 |
120: sleep(1000); |
| 121 |
121: while (! stop_button() ) { |
| 122 |
122: sprintf(buffer, "%d.0", (knob() * 10)); |
| 123 |
123: tone( buffer, "0.1"); |
| 124 |
124: } |
| 125 |
125:} |
| 126 |
126: |
| 127 |
127://************** END: serial_HOST.c |
| 128 |
128: |
| 129 |
129://************** BEGIN: serial_HOST.h |
| 130 |
130: |
| 131 |
131:/* VC++4.0 HandyBoard Host Programming System |
| 132 |
132: Dr. Douglas S. Blank |
| 133 |
133: University of Arkansas, Department of Computer Science |
| 134 |
134: www.uark.edu/~dblank |
| 135 |
135:*/ |
| 136 |
136: |
| 137 |
137:#define MOTOR 0 |
| 138 |
138:#define AO 1 |
| 139 |
139:#define ANALOG 2 |
| 140 |
140:#define DIGITAL 3 |
| 141 |
141:#define PRINTF 4 |
| 142 |
142:#define KNOB 5 |
| 143 |
143:#define BEEP 6 |
| 144 |
144:#define TONE 7 |
| 145 |
145:#define START_BUTTON 8 |
| 146 |
146:#define STOP_BUTTON 9 |
| 147 |
147:#define QUIT 113 |
| 148 |
148: |
| 149 |
149:#define sleep(NUM) _sleep(NUM) |
| 150 |
150:#define SERIALWAIT 5 |
| 151 |
151: |
| 152 |
152:unsigned short PORT = 0x3f8; // LPT1: 0x378 COM1: 0x3f8 |
| 153 |
153: |
| 154 |
154:int send(int i) { |
| 155 |
155: int retval; |
| 156 |
156: retval = _outp( PORT, i); |
| 157 |
157: _sleep(SERIALWAIT); |
| 158 |
158: return retval; |
| 159 |
159:} |
| 160 |
160: |
| 161 |
161:int receive() { |
| 162 |
162: int retval; |
| 163 |
163: retval = _inp( PORT); |
| 164 |
164: _sleep(SERIALWAIT); |
| 165 |
165: retval = _inp( PORT); |
| 166 |
166: return retval; |
| 167 |
167:} |
| 168 |
168: |
| 169 |
169:void hangup() { |
| 170 |
170: send(QUIT); |
| 171 |
171:} |
| 172 |
172: |
| 173 |
173:void print(char buffer[]) { |
| 174 |
174: int i; |
| 175 |
175: send(PRINTF); |
| 176 |
176: for (i = 0; buffer[i] != 0; i++) |
| 177 |
177: send(buffer[i]); |
| 178 |
178: send('\0'); |
| 179 |
179:} |
| 180 |
180: |
| 181 |
181:void motor(int motornum, int power) { |
| 182 |
182: send(MOTOR); |
| 183 |
183: send(motornum); |
| 184 |
184: send(power + 100); // taken off on the other end |
| 185 |
185:} |
| 186 |
186: |
| 187 |
187:int analog(int sensor) { |
| 188 |
188: send(ANALOG); |
| 189 |
189: send(sensor); |
| 190 |
190: return receive(); |
| 191 |
191:} |
| 192 |
192: |
| 193 |
193:int digital(int sensor) { |
| 194 |
194: send(DIGITAL); |
| 195 |
195: send(sensor); |
| 196 |
196: return receive(); |
| 197 |
197:} |
| 198 |
198: |
| 199 |
199:void ao() { |
| 200 |
200: send(AO); |
| 201 |
201:} |
| 202 |
202: |
| 203 |
203:int knob() { |
| 204 |
204: send(KNOB); |
| 205 |
205: return receive(); |
| 206 |
206:} |
| 207 |
207: |
| 208 |
208:void beep() { |
| 209 |
209: send(BEEP); |
| 210 |
210:} |
| 211 |
211: |
| 212 |
212:void tone(char f1[], char f2[]) { |
| 213 |
213: int i; |
| 214 |
214: send(TONE); |
| 215 |
215: for (i = 0; f1[i] != 0; i++) |
| 216 |
216: send(f1[i]); |
| 217 |
217: send('\0'); |
| 218 |
218: for (i = 0; f2[i] != 0; i++) |
| 219 |
219: send(f2[i]); |
| 220 |
220: send('\0'); |
| 221 |
221: _sleep((unsigned long) (atof(f2) * 1000)); // to keep from |
| 222 |
222:overflowing serial line |
| 223 |
223:} |
| 224 |
224: |
| 225 |
225:void interactive() |
| 226 |
226:{ |
| 227 |
227: char c; |
| 228 |
228: char key = ' '; |
| 229 |
229: while (key != 'q') { |
| 230 |
230: key = getch(); |
| 231 |
231: send(key); |
| 232 |
232: printf("Sent %c\n", key); |
| 233 |
233: c = receive(); |
| 234 |
234: printf("Got %c as a return value\n", c); |
| 235 |
235: } |
| 236 |
236:} |
| 237 |
237: |
| 238 |
238:int start_button() { |
| 239 |
239: send(START_BUTTON); |
| 240 |
240: return receive(); |
| 241 |
241:} |
| 242 |
242: |
| 243 |
243:int stop_button() { |
| 244 |
244: send(STOP_BUTTON); |
| 245 |
245: return receive(); |
| 246 |
246:} |
| 247 |
247://************** END: serial_HOST.h |
| 248 |
248: |
| 249 |
249://************** BEGIN: serial_HB.c |
| 250 |
250: |
| 251 |
251:/* VC++4.0 HandyBoard Programming System |
| 252 |
252: (Parts taken from other HB programs) |
| 253 |
253: Dr. Douglas S. Blank |
| 254 |
254: University of Arkansas, Department of Computer Science |
| 255 |
255: www.uark.edu/~dblank |
| 256 |
256: |
| 257 |
257: This code runs on the HB |
| 258 |
258:*/ |
| 259 |
259: |
| 260 |
260:#define MOTOR 0 |
| 261 |
261:#define AO 1 |
| 262 |
262:#define ANALOG 2 |
| 263 |
263:#define DIGITAL 3 |
| 264 |
264:#define PRINTF 4 |
| 265 |
265:#define KNOB 5 |
| 266 |
266:#define BEEP 6 |
| 267 |
267:#define TONE 7 |
| 268 |
268:#define START_BUTTON 8 |
| 269 |
269:#define STOP_BUTTON 9 |
| 270 |
270:#define QUIT 113 |
| 271 |
271: |
| 272 |
272:int _isspace(int a) /* returns 1 for space or tab, 0 |
| 273 |
273:otherwise */ |
| 274 |
274: /* internal routine used by atof() and |
| 275 |
275:cgets() */ |
| 276 |
276: |
| 277 |
277:{ |
| 278 |
278: return ((a == 32) || (a == 9)); /* 32 is space, 9 is tab */ |
| 279 |
279:} |
| 280 |
280: |
| 281 |
281:/*****************************************************************************/ |
| 282 |
282: |
| 283 |
283:int _isdigit(int a) /* returns 1 if a digit 0-9, 0 otherwise */ |
| 284 |
284: /* internal routine used by atof() */ |
| 285 |
285: |
| 286 |
286:{ |
| 287 |
287: return ((a >= 48) && (a <= 57)); /* 48 is '0', 57 is '9' */ |
| 288 |
288:} |
| 289 |
289: |
| 290 |
290:float atof(char s[]) /* Convert a string containing a number in |
| 291 |
291:ASCII */ |
| 292 |
292: /* form (integer, float, or exponential float) |
| 293 |
293:to a */ |
| 294 |
294: /* float. Strips whitespace characters (space |
| 295 |
295:and */ |
| 296 |
296: /* tab) from the front of the string, but |
| 297 |
297:stops */ |
| 298 |
298: /* parsing at the first (unexpected) |
| 299 |
299:non-numeric */ |
| 300 |
300: /* character if the string has garbage at the |
| 301 |
301:end. */ |
| 302 |
302: /* This means that " 34.3foo78" translates to |
| 303 |
303:34.3. */ |
| 304 |
304: /* Modified from atof() function in the |
| 305 |
305:standard */ |
| 306 |
306: /* library of the Hi-Tec C compiler for |
| 307 |
307:CP/M. */ |
| 308 |
308: /* Note: all string literals converted to |
| 309 |
309:decimal */ |
| 310 |
310: /* form because IC can't deal with string |
| 311 |
311:literals */ |
| 312 |
312: /* in math |
| 313 |
313:calculations. */ |
| 314 |
314: /* Also note: very ugly code because IC will |
| 315 |
315:not */ |
| 316 |
316: /* allow any math operations on pointers! Thus, |
| 317 |
317:the */ |
| 318 |
318: /* the number string has to be treated as an |
| 319 |
319:array! */ |
| 320 |
320: /* Also also note: no error handling; assumes |
| 321 |
321:that */ |
| 322 |
322: /* the string is a valid representation of a |
| 323 |
323:number! */ |
| 324 |
324: /* Valid range for exponential-format numbers |
| 325 |
325:is */ |
| 326 |
326: /* approximately 2.0e-38 to |
| 327 |
327:3.4e+38. */ |
| 328 |
328: |
| 329 |
329:{ |
| 330 |
330: int i=0; /* index into string array */ |
| 331 |
331: int sign=0; /* mantissa sign flag: 0=positive, |
| 332 |
332:1=negative */ |
| 333 |
333: int exp0=0; /* mantissa exponent counter */ |
| 334 |
334: int eexp=0; /* E-form exponent counter */ |
| 335 |
335: int expsign=0; /* exponent sign flag: 0=positive, |
| 336 |
336:1=negative */ |
| 337 |
337: float m=0.0; /* mantissa accumulator */ |
| 338 |
338: |
| 339 |
339: /* skip any leading whitespace (space, tab) */ |
| 340 |
340: while (_isspace(s[i])) |
| 341 |
341: i++; /* skip it */ |
| 342 |
342: |
| 343 |
343: /* check for mantissa sign */ |
| 344 |
344: if (s[i] == 45) /* 45 is '-' */ |
| 345 |
345: { |
| 346 |
346: sign = 1; /* flag minus sign */ |
| 347 |
347: i++; /* point to next */ |
| 348 |
348: } |
| 349 |
349: else if (s[i] == 43) /* 43 is '+' */ |
| 350 |
350: i++; /* point to next */ |
| 351 |
351: |
| 352 |
352: /* now get all digits up to either a decimal point or an e/E */ |
| 353 |
353: while (_isdigit(s[i])) |
| 354 |
354: { |
| 355 |
355: m = 10.0*m + (float)(s[i] - 48); /* 48 is '0' */ |
| 356 |
356: i++; /* point to next */ |
| 357 |
357: } |
| 358 |
358: |
| 359 |
359: /* no more digits, so check for decimal point */ |
| 360 |
360: if (s[i] == 46) /* 46 is '.' */ |
| 361 |
361: { |
| 362 |
362: i++; /* point to next */ |
| 363 |
363: /* get all digits after decimal point */ |
| 364 |
364: while (_isdigit(s[i])) |
| 365 |
365: { |
| 366 |
366: exp0--; |
| 367 |
367: m = 10.0*m + (float)(s[i] - 48); /* 48 is '0' */ |
| 368 |
368: i++; /* point to next */ |
| 369 |
369: } |
| 370 |
370: } |
| 371 |
371: |
| 372 |
372: /* check for e/E exponential form */ |
| 373 |
373: if ((s[i] == 101) || (s[i] == 69)) /* 101 is 'e', 69 is 'E' */ |
| 374 |
374: { |
| 375 |
375: i++; /* point to next */ |
| 376 |
376: /* check for exponent sign */ |
| 377 |
377: if (s[i] == 45) /* 45 is '-' */ |
| 378 |
378: { |
| 379 |
379: expsign = 1; /* flag negative exponent */ |
| 380 |
380: i++; /* point to next */ |
| 381 |
381: } |
| 382 |
382: else if (s[i] == 43) /* 43 is '+' */ |
| 383 |
383: i++; /* point to next */ |
| 384 |
384: |
| 385 |
385: /* now get exponent */ |
| 386 |
386: while (_isdigit(s[i])) |
| 387 |
387: { |
| 388 |
388: eexp = eexp*10 + s[i] - 48; /* 48 is '0' */ |
| 389 |
389: i++; /* point to next */ |
| 390 |
390: } |
| 391 |
391: |
| 392 |
392: /* adjust exponent sign */ |
| 393 |
393: if (expsign) |
| 394 |
394: eexp = -eexp; /* make it negative */ |
| 395 |
395: } |
| 396 |
396: |
| 397 |
397: /* compute absolute value of final float */ |
| 398 |
398: exp0 += eexp; |
| 399 |
399: while (exp0 < 0) /* for negative exponents */ |
| 400 |
400: { |
| 401 |
401: m = m / 10.0; |
| 402 |
402: exp0++; |
| 403 |
403: } |
| 404 |
404: while (exp0 > 0) /* for positive exponents */ |
| 405 |
405: { |
| 406 |
406: m = m * 10.0; |
| 407 |
407: exp0--; |
| 408 |
408: } |
| 409 |
409: |
| 410 |
410: /* adjust final float sign from mantissa */ |
| 411 |
411: if (sign) |
| 412 |
412: return (-m); /* negative */ |
| 413 |
413: else |
| 414 |
414: return (m); /* positive */ |
| 415 |
415:} |
| 416 |
416: |
| 417 |
417:void disable_pcode_serial() |
| 418 |
418:/* necessary to receive characters using serial_getchar */ |
| 419 |
419:{ |
| 420 |
420: poke(0x3c, 1); |
| 421 |
421:} |
| 422 |
422: |
| 423 |
423:void reenable_pcode_serial() |
| 424 |
424:/* necessary for IC to interact with board again */ |
| 425 |
425:{ |
| 426 |
426: poke(0x3c, 0); |
| 427 |
427:} |
| 428 |
428: |
| 429 |
429:/* |
| 430 |
430:====================================================================== |
| 431 |
431:For sending and receiving single bytes, you can use Randy's IC code: |
| 432 |
432:*/ |
| 433 |
433: |
| 434 |
434:void serial_putchar(int c) |
| 435 |
435:{ |
| 436 |
436: while (!(peek(0x102e) & 0x80)); /* wait until serial transmit empty |
| 437 |
437:*/ |
| 438 |
438: poke(0x102f, c); /* send character */ |
| 439 |
439:} |
| 440 |
440: |
| 441 |
441:int serial_getchar() |
| 442 |
442:{ |
| 443 |
443: while (!(peek(0x102e) & 0x20)); /* wait for received character */ |
| 444 |
444: return peek(0x102f); |
| 445 |
445:} |
| 446 |
446: |
| 447 |
447:void main(void) { |
| 448 |
448: int pos, c = ' ', var1, var2; |
| 449 |
449: float f1, f2; |
| 450 |
450: char buffer[80]; |
| 451 |
451: disable_pcode_serial(); |
| 452 |
452: beep(); |
| 453 |
453: printf("\nSerial IO Mode!"); |
| 454 |
454: printf("Listening..."); |
| 455 |
455: msleep(500L); |
| 456 |
456: while (c != 'q') { |
| 457 |
457: c = serial_getchar(); |
| 458 |
458:/* printf("[%d] ", c); */ |
| 459 |
459: if (c == MOTOR) { |
| 460 |
460: var1 = serial_getchar(); |
| 461 |
461: var2 = serial_getchar() - 100; |
| 462 |
462: motor(var1, var2); |
| 463 |
463: } else if (c == AO) { |
| 464 |
464: ao(); |
| 465 |
465: } else if (c == ANALOG) { |
| 466 |
466: var1 = serial_getchar(); |
| 467 |
467: serial_putchar(analog(var1)); |
| 468 |
468: } else if (c == DIGITAL) { |
| 469 |
469: var1 = serial_getchar(); |
| 470 |
470: serial_putchar(digital(var1)); |
| 471 |
471: } else if (c == PRINTF) { |
| 472 |
472: pos = 0; |
| 473 |
473: while (c != 0) { |
| 474 |
474: buffer[pos++] = c; |
| 475 |
475: c = serial_getchar(); |
| 476 |
476: } |
| 477 |
477: buffer[pos] = '\0'; |
| 478 |
478: printf(buffer); |
| 479 |
479: } else if (c == TONE) { |
| 480 |
480: pos = 0; |
| 481 |
481: c = serial_getchar(); |
| 482 |
482: while (c != 0) { |
| 483 |
483: buffer[pos++] = c; |
| 484 |
484: c = serial_getchar(); |
| 485 |
485: } |
| 486 |
486: buffer[pos] = '\0'; |
| 487 |
487: f1 = atof(buffer); |
| 488 |
488: pos = 0; |
| 489 |
489: c = serial_getchar(); |
| 490 |
490: while (c != 0) { |
| 491 |
491: buffer[pos++] = c; |
| 492 |
492: c = serial_getchar(); |
| 493 |
493: } |
| 494 |
494: buffer[pos] = '\0'; |
| 495 |
495: f2 = atof(buffer); |
| 496 |
496: tone(f1, f2); |
| 497 |
497: } else if (c == START_BUTTON) { |
| 498 |
498: serial_putchar(start_button()); |
| 499 |
499: } else if (c == STOP_BUTTON) { |
| 500 |
500: serial_putchar(stop_button()); |
| 501 |
501: } else if (c == BEEP) { |
| 502 |
502: beep(); |
| 503 |
503: } else if (c == KNOB) { |
| 504 |
504: serial_putchar(knob()); |
| 505 |
505: } |
| 506 |
506: } |
| 507 |
507: reenable_pcode_serial(); |
| 508 |
508: printf("\nHB Mode!"); |
| 509 |
509:} |
| 510 |
510: |
| 511 |
511://************** END: serial_HB.c |
| 512 |
512: |
| 513 |
791:From [email protected] Wed Jul 1 02:44:06 1998 |
| 514 |
792:Received: from aleve.media.mit.edu by hub.media.mit.edu; (5.65v3.2/1.1/06Jun95-8.2MPM) |
| 515 |
793: id AA22669; Wed, 1 Jul 1998 02:44:06 -0400 |
| 516 |
794:Received: from mail3.sirius.com (mail3.sirius.com [205.134.253.133]) |
| 517 |
795: by aleve.media.mit.edu (8.8.7/ML970927) with ESMTP id CAA13214 |
| 518 |
796: for <[email protected]>; Wed, 1 Jul 1998 02:01:55 -0400 (EDT) |
| 519 |
797:Received: from edsinger (ppp-asfm03--126.sirius.net [205.134.240.126]) |
| 520 |
798: by mail3.sirius.com (8.8.7/Sirius-8.8.7-97.08.12) with ESMTP id XAA26862 |
| 521 |
799: for <[email protected]>; Tue, 30 Jun 1998 23:01:54 -0700 (PDT) |
| 522 |
800:Message-Id: <[email protected]> |
| 523 |
801:From: "Aaron Edsinger" <[email protected]> |
| 524 |
802:To: "handy" <[email protected]> |
| 525 |
803:Subject: Serial Interface |
| 526 |
804:Date: Wed, 1 Jul 1998 02:06:39 +0100 |
| 527 |
805:X-Msmail-Priority: Normal |
| 528 |
806:X-Priority: 3 |
| 529 |
807:X-Mailer: Microsoft Internet Mail 4.70.1162 |
| 530 |
808:Mime-Version: 1.0 |
| 531 |
809:Content-Type: text/plain; charset=ISO-8859-1 |
| 532 |
810:Content-Transfer-Encoding: 7bit |
| 533 |
811: |
| 534 |
812:Hello, |
| 535 |
813: I've been having some problems using my HandyBoard to talk directly to my |
| 536 |
814:PC via the serial interface. I disable Interactive C and then Poke() and |
| 537 |
815:Peek() as has been described on this list. I send short character strings |
| 538 |
816:from my PC to the HandyBoard under Windows 95. If I send strings longer |
| 539 |
817:than 2 characters, it seems that some of the characters get lost. This |
| 540 |
818:behavior seems to be affected by repositioning or slightly modifying the |
| 541 |
819:code, suggesting perhaps a timing issue. |
| 542 |
820: |
| 543 |
821:Why might this be? Is there any way to check for an error situation? |
| 544 |
822: |
| 545 |
823:Thanks for any help, |
| 546 |
824: Aaron |
| 547 |
825:From [email protected] Thu Jul 16 03:13:49 1998 |
| 548 |
826:Received: from aleve.media.mit.edu by hub.media.mit.edu; (5.65v3.2/1.1/06Jun95-8.2MPM) |
| 549 |
827: id AA23518; Thu, 16 Jul 1998 03:13:49 -0400 |
| 550 |
828:Received: from hq.freegate.com ([208.226.86.1]) |
| 551 |
829: by aleve.media.mit.edu (8.8.7/ML970927) with SMTP id CAA18991 |
| 552 |
830: for <[email protected]>; Thu, 16 Jul 1998 02:17:47 -0400 (EDT) |
| 553 |
831:Received: (qmail+freegate 6968 invoked by alias); 16 Jul 1998 06:17:38 -0000 |
| 554 |
832:Received: from dialip-04.hq.freegate.com (HELO freegate.com) (208.226.86.222) |
| 555 |
833: by hq.freegate.com with SMTP; 16 Jul 1998 06:17:38 -0000 |
| 556 |
834:Message-Id: <[email protected]> |
| 557 |
835:Date: Wed, 15 Jul 1998 23:21:14 -0700 |
| 558 |
836:From: Chuck McManis <[email protected]> |
| 559 |
837:Reply-To: [email protected] |
| 560 |
838:Organization: Freegate Corporation |
| 561 |
839:X-Mailer: Mozilla 4.04 [en] (Win95; I) |
| 562 |
840:Mime-Version: 1.0 |
| 563 |
841:To: David Rye <[email protected]> |
| 564 |
842:Cc: [email protected] |
| 565 |
843:Subject: Re: Handyboard/RWP without p-code |
| 566 |
844:References: <[email protected]> |
| 567 |
845:Content-Type: text/plain; charset=us-ascii |
| 568 |
846:Content-Transfer-Encoding: 7bit |
| 569 |
847: |
| 570 |
848:Get a copy of icc11 v5.0 or later (from www.imagecraft.com) and use the |
| 571 |
849:handyboard library from their site. |
| 572 |
850: |
| 573 |
851:--Chuck |
| 574 |
852: |
| 575 |
853:From [email protected] Thu Jul 16 03:42:38 1998 |
| 576 |
854:Received: from aleve.media.mit.edu by hub.media.mit.edu; (5.65v3.2/1.1/06Jun95-8.2MPM) |
| 577 |
855: id AA24945; Thu, 16 Jul 1998 03:42:38 -0400 |
| 578 |
856:Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) |
| 579 |
857: by aleve.media.mit.edu (8.8.7/ML970927) with SMTP id CAA07415 |
| 580 |
858: for <[email protected]>; Thu, 16 Jul 1998 02:44:58 -0400 (EDT) |
| 581 |
859:Received: from Aus.Sun.COM ([129.158.80.6]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id XAA29734; Wed, 15 Jul 1998 23:44:52 -0700 |
| 582 |
860:Received: from war.Aus.Sun.COM by Aus.Sun.COM id QAA03011 |
| 583 |
861: (SMI-8.6/SMI-4.1 for <>); Thu, 16 Jul 1998 16:44:50 +1000 |
| 584 |
862:Received: from drone by war.Aus.Sun.COM (SMI-8.6/SMI-SVR4) |
| 585 |
863: id QAA10921; Thu, 16 Jul 1998 16:44:20 +1000 |
| 586 |
864:Message-Id: <[email protected]> |
| 587 |
865:Date: Thu, 16 Jul 1998 16:41:56 +1000 (EST) |
| 588 |
866:From: Scott Seaton - Systems Consultant - ESG <[email protected]> |
| 589 |
867:Reply-To: Scott Seaton - Systems Consultant - ESG <[email protected]> |
| 590 |
868:Subject: Re: Handyboard/RWP without p-code |
| 591 |
869:To: [email protected], [email protected] |
| 592 |
870:Mime-Version: 1.0 |
| 593 |
871:Content-Type: MULTIPART/mixed; BOUNDARY=Troop_of_Baboons_752_000 |
| 594 |
872:X-Mailer: dtmail 1.2.0 CDE Version 1.2 SunOS 5.6 sun4u sparc |
| 595 |
873: |
| 596 |
874:--Troop_of_Baboons_752_000 |
| 597 |
875:Content-Type: TEXT/plain; charset=us-ascii |
| 598 |
876:Content-MD5: i/HKSIa/Vk0mZT5ml+q21A== |
| 599 |
877: |
| 600 |
878:Hi |
| 601 |
879: |
| 602 |
880:I suggest that you contact ImageCraft. |
| 603 |
881:http://www.imagecraft.com/software/index.html or [email protected] |
| 604 |
882: |
| 605 |
883:They have a C compiler for 68HC11 CPU's that will do what you want, including a |
| 606 |
884:library for the HandyBoard (see attached e-mail) ! |
| 607 |
885: |
| 608 |
886:I have no affiliation with ImageCraft (other than as a satisfied customer). |
| 609 |
887: |
| 610 |
888:Hope this helps |
| 611 |
889:Scott |
| 612 |
890:============================================================================== |
| 613 |
891: ,-_|\ Scott Seaton - Sun Enterprise Services - Systems Consultant |
| 614 |
892:/ \ Sun Microsystems Australia Pty Ltd E-mail : [email protected] |
| 615 |
893:\_,-\_+ 828 Pacific Highway Phone : +61 2 9844 5381 |
| 616 |
894: v Gordon, N.S.W., 2072, AUSTRALIA Fax : +61 2 9844 5161 |
| 617 |
895:============================================================================== |
| 618 |
896: |
| 619 |
897:--Troop_of_Baboons_752_000 |
| 620 |
898:Content-Type: MESSAGE/rfc822; name=Mailbox |
| 621 |
899:Content-Description: Mailbox |
| 622 |
900: |
| 623 |
901:From [email protected] Fri Jul 10 18:59:26 1998 |
| 624 |
902:Return-Path: <[email protected]> |
| 625 |
903:Received: from Aus.Sun.COM by war.Aus.Sun.COM (SMI-8.6/SMI-SVR4) |
| 626 |
904: id SAA14426; Fri, 10 Jul 1998 18:59:26 +1000 |
| 627 |
905:Received: from earth.sun.com by Aus.Sun.COM id SAA24238 |
| 628 |
906: (SMI-8.6/SMI-4.1 for <<[email protected]>>); Fri, 10 Jul 1998 18:59:48 +1000 |
| 629 |
907:Received: from iisesun.iise.CSIRO.AU (iisesun.iise.csiro.au [130.155.5.44]) |
| 630 |
908: by earth.sun.com (8.8.8/8.8.8) with SMTP id BAA18609 |
| 631 |
909: for <[email protected]>; Fri, 10 Jul 1998 01:59:44 -0700 (PDT) |
| 632 |
910:Received: from lists1.best.com (lists1.best.com [206.86.8.15]) by iisesun.iise.CSIRO.AU (SMI-8.6/8.6.12-IISE-SWA) with ESMTP id SAA25847 for <[email protected]>; Fri, 10 Jul 1998 18:49:31 +1000 |
| 633 |
911:Received: (from daemon@localhost) by lists1.best.com (8.9.0/8.8.BEST) id BAA15320 for [email protected]; Fri, 10 Jul 1998 01:04:34 -0700 (PDT) |
| 634 |
912:Message-Id: <[email protected]> |
| 635 |
913:From: Christina Willrich & Richard Man <[email protected]> |
| 636 |
914:Subject: icc11 Handyboard library available |
| 637 |
915:Date: Fri, 10 Jul 1998 00:58:49 -0700 |
| 638 |
916:BestServHost: lists.best.com |
| 639 |
917:MIME-Version: 1.0 |
| 640 |
918:Content-Type: text/plain; charset="us-ascii" |
| 641 |
919:Sender: [email protected] |
| 642 |
920:Errors-To: [email protected] |
| 643 |
921:Reply-To: [email protected] |
| 644 |
922:To: [email protected] |
| 645 |
923:content-length: 399 |
| 646 |
924:Status: RO |
| 647 |
925:X-Status: $$$$ |
| 648 |
926:X-UID: 0000000001 |
| 649 |
927: |
| 650 |
928:At long last, I dusted off Chuck McManis Handyboard library and ported it |
| 651 |
929:to V5. No reason why it can't work with V4.5 either ;-) Anyway, to try it |
| 652 |
930:out, point your browser to |
| 653 |
931: |
| 654 |
932:ftp://ftp.imagecraft.com/pub/libhb.zip |
| 655 |
933: |
| 656 |
934:Chuck really did a great job with the LCD. There are commands to scroll, |
| 657 |
935:move etc. Make sure you try the lcdtest2.c test. |
| 658 |
936: |
| 659 |
937:// richard |
| 660 |
938:[email protected] http://www.imagecraft.com |
| 661 |
939: |
| 662 |
940: |
| 663 |
941:--Troop_of_Baboons_752_000-- |
| 664 |
942: |
| 665 |
1142:From [email protected] Mon Jul 27 18:34:05 1998 |
| 666 |
1143:Received: from aleve.media.mit.edu by hub.media.mit.edu; (5.65v3.2/1.1/06Jun95-8.2MPM) |
| 667 |
1144: id AA00723; Mon, 27 Jul 1998 18:34:05 -0400 |
| 668 |
1145:Received: from theory.phys.vt.edu (theory.phys.vt.edu [128.173.176.33]) |
| 669 |
1146: by aleve.media.mit.edu (8.8.7/ML970927) with ESMTP id RAA19984 |
| 670 |
1147: for <[email protected]>; Mon, 27 Jul 1998 17:22:26 -0400 (EDT) |
| 671 |
1148:Received: from localhost (wallace@localhost) |
| 672 |
1149: by theory.phys.vt.edu (8.8.5/8.8.5) with SMTP id RAA00312 |
| 673 |
1150: for <[email protected]>; Mon, 27 Jul 1998 17:22:24 -0400 (EDT) |
| 674 |
1151:Date: Mon, 27 Jul 1998 17:22:24 -0400 (EDT) |
| 675 |
1152:From: Mark Wallace <[email protected]> |
| 676 |
1153:To: [email protected] |
| 677 |
1154:Subject: sonar.c for the handyboard |
| 678 |
1155:Message-Id: <[email protected]> |
| 679 |
1156:Mime-Version: 1.0 |
| 680 |
1157:Content-Type: TEXT/PLAIN; charset=US-ASCII |
| 681 |
1158: |
| 682 |
1159:Hello, |
| 683 |
1160: I have a handyboard and 6500 series poloroid ultrasonic ranging |
| 684 |
1161:system. I have downloaded the sonar.c programs used to drive the |
| 685 |
1162:transducer for distance measurements. There appears to be a problem, or |
| 686 |
1163:atleast I think there is, with it. The sonar device is supposed to give |
| 687 |
1164:distances of up to 35ft but the TCNC time register is 16 bit and in the |
| 688 |
1165:program it says "if ((peekwork(0x100e)-start_time) < 0)" too much time has |
| 689 |
1166:elapsed and it returns -1. Therefore as soon as about 32700 counts goes |
| 690 |
1167:by, that value will go negative. I believe hex goes from 0 to 32768 then |
| 691 |
1168:-32768 to -1. In this case the difference will be < 0 if the object |
| 692 |
1169:is greater then about 9 ft. I have taken this out of the program and can |
| 693 |
1170:get accurate measurements up to atleast 30 ft but I have to look at the |
| 694 |
1171:value given and add multiples of 2^16 to it to figure out where it is. |
| 695 |
1172:Taking this out of the program also can get you stuck if you really are |
| 696 |
1173:out of range. |
| 697 |
1174: I have looked on the motorola web pages to see about this clock |
| 698 |
1175:and it says that the clock goes till it reachs $ffff and then flags |
| 699 |
1176:somewhere that there is an overflow and then starts over. I don't know |
| 700 |
1177:how to find out were in the chip this information might be stored. I know |
| 701 |
1178:the TCNT time register is at 0x100e from the notes on Simplified Sonar for |
| 702 |
1179:the Handy Board but I don't know where that overflow flag is stored. I |
| 703 |
1180:thought that maybe by setting this flag and using it in the loop you might |
| 704 |
1181:be about to get a greater distance out of you measurement. |
| 705 |
1182: Another question I have is about IC. I would like to display |
| 706 |
1183:numbers greater then 32000 and right now there are several int type |
| 707 |
1184:variables and normal C comands don't seem to work to make a "long" or any |
| 708 |
1185:other type that are larger then 32000. How does IC handle larger numbers? |
| 709 |
1186: I am only a student and don't have much experience with this stuff |
| 710 |
1187:so I would appreciate any feedback I can get on either of these problems. |
| 711 |
1188:Thanks. |
| 712 |
1189: |
| 713 |
1190:Mark Wallace |
| 714 |
1191: |
| 715 |
1192: e-mail [email protected] |
| 716 |
1193: [email protected] |
| 717 |
1194:Web page http://sps1.phys.vt.edu/~mwallace/index.html |
| 718 |
1195: |
| 719 |
1196:"What a waste it would be after 4 billion tortuous years of evolution if |
| 720 |
1197:the dominant organism contrived its own self-destruction" |
| 721 |
1198: Carl Sagan |
| 722 |
1199: |
| 723 |
1200: |
| 724 |
1274:From [email protected] Wed Aug 12 13:10:06 1998 |
| 725 |
1275:Received: from aleve.media.mit.edu by hub.media.mit.edu; (5.65v3.2/1.1/06Jun95-8.2MPM) |
| 726 |
1276: id AA07529; Wed, 12 Aug 1998 13:10:06 -0400 |
| 727 |
1277:Received: from quackerjack.cc.vt.edu ([email protected] [198.82.160.250]) |
| 728 |
1278: by aleve.media.mit.edu (8.8.7/ML970927) with ESMTP id MAA05729 |
| 729 |
1279: for <[email protected]>; Wed, 12 Aug 1998 12:13:53 -0400 (EDT) |
| 730 |
1280:Received: from sable.cc.vt.edu (sable.cc.vt.edu [128.173.16.30]) |
| 731 |
1281: by quackerjack.cc.vt.edu (8.8.8/8.8.8) with ESMTP id MAA20678 |
| 732 |
1282: for <[email protected]>; Wed, 12 Aug 1998 12:20:09 -0400 (EDT) |
| 733 |
1283:Received: from research10.phys.vt.edu (dhcp9.phys.vt.edu [128.173.176.166]) |
| 734 |
1284: by sable.cc.vt.edu (8.8.8/8.8.8) with SMTP id MAA05159 |
| 735 |
1285: for <[email protected]>; Wed, 12 Aug 1998 12:13:51 -0400 (EDT) |
| 736 |
1286:Message-Id: <[email protected]> |
| 737 |
1287:X-Sender: [email protected] (Unverified) |
| 738 |
1288:X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) |
| 739 |
1289:Date: Wed, 12 Aug 1998 12:13:45 -0400 |
| 740 |
1290:To: [email protected] |
| 741 |
1291:From: Mark Wallace <[email protected]> |
| 742 |
1292:Subject: serial library for C++ |
| 743 |
1293:Mime-Version: 1.0 |
| 744 |
1294:Content-Type: text/plain; charset="us-ascii" |
| 745 |
1295: |
| 746 |
1296:Hello, |
| 747 |
1297: I have a handy board with poloroid transducers and I am trying use the |
| 748 |
1298:results of my distance measurments in a C++ program on the computer. I |
| 749 |
1299:have found programs on the handyboard web page that should alow the |
| 750 |
1300:handyboard to transmit information over the serial line. What I am looking |
| 751 |
1301:for is if anyone knows were I could find a serial for Microsofts |
| 752 |
1302:Visual C++ 5.0. I would like to find one that is free or sharware but any |
| 753 |
1303:information on any serial that will work would be appreciated. |
| 754 |
1304:Thanks. |
| 755 |
1305:Mark Wallace |
| 756 |
1306: |
| 757 |
1307: e-mail [email protected] |
| 758 |
1308: [email protected] |
| 759 |
1309:web page http://sps1.phys.vt.ede/~mwallace |
| 760 |
1310: |
| 761 |
1311:"What a waist it would be after 4 billion tortuous years of evolution if |
| 762 |
1312:the dominant organism contrived its own self-distruction" |
| 763 |
1313: Carl Sagan |
| 764 |
1314: |
| 765 |
1315: |
| 766 |
1361:From [email protected] Wed Aug 12 13:42:19 1998 |
| 767 |
1362:Received: from aleve.media.mit.edu by hub.media.mit.edu; (5.65v3.2/1.1/06Jun95-8.2MPM) |
| 768 |
1363: id AA13439; Wed, 12 Aug 1998 13:42:19 -0400 |
| 769 |
1364:Received: from mail3.sirius.com (mail3.sirius.com [205.134.253.133]) |
| 770 |
1365: by aleve.media.mit.edu (8.8.7/ML970927) with ESMTP id MAA10630 |
| 771 |
1366: for <[email protected]>; Wed, 12 Aug 1998 12:48:27 -0400 (EDT) |
| 772 |
1367:Received: from aarone (ppp-asfm05--041.sirius.net [205.134.241.41]) |
| 773 |
1368: by mail3.sirius.com (8.8.7/Sirius-8.8.7-97.08.12) with SMTP id JAA20821; |
| 774 |
1369: Wed, 12 Aug 1998 09:48:24 -0700 (PDT) |
| 775 |
1370:Message-Id: <[email protected]> |
| 776 |
1371:From: "Aaron Edsinger" <[email protected]> |
| 777 |
1372:To: "Mark Wallace" <[email protected]> |
| 778 |
1373:Cc: "handy" <[email protected]> |
| 779 |
1374:Subject: Re: serial library for C++ |
| 780 |
1375:Date: Wed, 12 Aug 1998 12:53:41 -0700 |
| 781 |
1376:Mime-Version: 1.0 |
| 782 |
1377:Content-Type: text/plain; |
| 783 |
1378: charset="iso-8859-1" |
| 784 |
1379:Content-Transfer-Encoding: 7bit |
| 785 |
1380:X-Priority: 3 |
| 786 |
1381:X-Msmail-Priority: Normal |
| 787 |
1382:X-Mailer: Microsoft Outlook Express 4.72.2106.4 |
| 788 |
1383:X-Mimeole: Produced By Microsoft MimeOLE V4.72.2106.4 |
| 789 |
1384: |
| 790 |
1385: |
| 791 |
1386: Check out this site. It works well. The only problem I had was timing |
| 792 |
1387:issues when trying to read and write to the port too quickly. |
| 793 |
1388: |
| 794 |
1389:http://www.codeguru.com/show.cgi?general=/misc/misc_toc.shtml |
| 795 |
1390: |
| 796 |
1391: |
| 797 |
1392:-----Original Message----- |
| 798 |
1393:From: Mark Wallace <[email protected]> |
| 799 |
1394:To: [email protected] <[email protected]> |
| 800 |
1395:Date: Wednesday, August 12, 1998 9:25 AM |
| 801 |
1396:Subject: serial library for C++ |
| 802 |
1397: |
| 803 |
1398: |
| 804 |
1399:>Hello, |
| 805 |
1400:> I have a handy board with poloroid transducers and I am trying use the |
| 806 |
1401:>results of my distance measurments in a C++ program on the computer. I |
| 807 |
1402:>have found programs on the handyboard web page that should alow the |
| 808 |
1403:>handyboard to transmit information over the serial line. What I am looking |
| 809 |
1404:>for is if anyone knows were I could find a serial library for Microsofts |
| 810 |
1405:>Visual C++ 5.0. I would like to find one that is free or sharware but any |
| 811 |
1406:>information on any serial librarys that will work would be appreciated. |
| 812 |
1407:>Thanks. |
| 813 |
1408:>Mark Wallace |
| 814 |
1409:> |
| 815 |
1410:> e-mail [email protected] |
| 816 |
1411:> [email protected] |
| 817 |
1412:>web page http://sps1.phys.vt.ede/~mwallace |
| 818 |
1413:> |
| 819 |
1414:>"What a waist it would be after 4 billion tortuous years of evolution if |
| 820 |
1415:>the dominant organism contrived its own self-distruction" |
| 821 |
1416:> Carl Sagan |
| 822 |
1417:> |
| 823 |
1418: |
| 824 |
1419:From [email protected] Thu Jul 16 03:42:38 1998 |
| 825 |
1420:Received: from aleve.media.mit.edu by hub.media.mit.edu; (5.65v3.2/1.1/06Jun95-8.2MPM) |
| 826 |
1421: id AA24945; Thu, 16 Jul 1998 03:42:38 -0400 |
| 827 |
1422:Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) |
| 828 |
1423: by aleve.media.mit.edu (8.8.7/ML970927) with SMTP id CAA07415 |
| 829 |
1424: for <[email protected]>; Thu, 16 Jul 1998 02:44:58 -0400 (EDT) |
| 830 |
1425:Received: from Aus.Sun.COM ([129.158.80.6]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id XAA29734; Wed, 15 Jul 1998 23:44:52 -0700 |
| 831 |
1426:Received: from war.Aus.Sun.COM by Aus.Sun.COM id QAA03011 |
| 832 |
1427: (SMI-8.6/SMI-4.1 for <>); Thu, 16 Jul 1998 16:44:50 +1000 |
| 833 |
1428:Received: from drone by war.Aus.Sun.COM (SMI-8.6/SMI-SVR4) |
| 834 |
1429: id QAA10921; Thu, 16 Jul 1998 16:44:20 +1000 |
| 835 |
1430:Message-Id: <[email protected]> |
| 836 |
1431:Date: Thu, 16 Jul 1998 16:41:56 +1000 (EST) |
| 837 |
1432:From: Scott Seaton - Systems Consultant - ESG <[email protected]> |
| 838 |
1433:Reply-To: Scott Seaton - Systems Consultant - ESG <[email protected]> |
| 839 |
1434:Subject: Re: Handyboard/RWP without p-code |
| 840 |
1435:To: [email protected], [email protected] |
| 841 |
1436:Mime-Version: 1.0 |
| 842 |
1437:Content-Type: MULTIPART/mixed; BOUNDARY=Troop_of_Baboons_752_000 |
| 843 |
1438:X-Mailer: dtmail 1.2.0 CDE Version 1.2 SunOS 5.6 sun4u sparc |
| 844 |
1439: |
| 845 |
1440:--Troop_of_Baboons_752_000 |
| 846 |
1441:Content-Type: TEXT/plain; charset=us-ascii |
| 847 |
1442:Content-MD5: i/HKSIa/Vk0mZT5ml+q21A== |
| 848 |
1443: |
| 849 |
1444:Hi |
| 850 |
1445: |
| 851 |
1446:I suggest that you contact ImageCraft. |
| 852 |
1447:http://www.imagecraft.com/software/index.html or [email protected] |
| 853 |
1448: |
| 854 |
1449:They have a C compiler for 68HC11 CPU's that will do what you want, including a |
| 855 |
1450:library for the HandyBoard (see attached e-mail) ! |
| 856 |
1451: |
| 857 |
1452:I have no affiliation with ImageCraft (other than as a satisfied customer). |
| 858 |
1453: |
| 859 |
1454:Hope this helps |
| 860 |
1455:Scott |
| 861 |
1456:============================================================================== |
| 862 |
1457: ,-_|\ Scott Seaton - Sun Enterprise Services - Systems Consultant |
| 863 |
1458:/ \ Sun Microsystems Australia Pty Ltd E-mail : [email protected] |
| 864 |
1459:\_,-\_+ 828 Pacific Highway Phone : +61 2 9844 5381 |
| 865 |
1460: v Gordon, N.S.W., 2072, AUSTRALIA Fax : +61 2 9844 5161 |
| 866 |
1461:============================================================================== |
| 867 |
1462: |
| 868 |
1463:--Troop_of_Baboons_752_000 |
| 869 |
1464:Content-Type: MESSAGE/rfc822; name=Mailbox |
| 870 |
1465:Content-Description: Mailbox |
| 871 |
1466: |
| 872 |
1467:From [email protected] Fri Jul 10 18:59:26 1998 |
| 873 |
1468:Return-Path: <[email protected]> |
| 874 |
1469:Received: from Aus.Sun.COM by war.Aus.Sun.COM (SMI-8.6/SMI-SVR4) |
| 875 |
1470: id SAA14426; Fri, 10 Jul 1998 18:59:26 +1000 |
| 876 |
1471:Received: from earth.sun.com by Aus.Sun.COM id SAA24238 |
| 877 |
1472: (SMI-8.6/SMI-4.1 for <<[email protected]>>); Fri, 10 Jul 1998 18:59:48 +1000 |
| 878 |
1473:Received: from iisesun.iise.CSIRO.AU (iisesun.iise.csiro.au [130.155.5.44]) |
| 879 |
1474: by earth.sun.com (8.8.8/8.8.8) with SMTP id BAA18609 |
| 880 |
1475: for <[email protected]>; Fri, 10 Jul 1998 01:59:44 -0700 (PDT) |
| 881 |
1476:Received: from lists1.best.com (lists1.best.com [206.86.8.15]) by iisesun.iise.CSIRO.AU (SMI-8.6/8.6.12-IISE-SWA) with ESMTP id SAA25847 for <[email protected]>; Fri, 10 Jul 1998 18:49:31 +1000 |
| 882 |
1477:Received: (from daemon@localhost) by lists1.best.com (8.9.0/8.8.BEST) id BAA15320 for [email protected]; Fri, 10 Jul 1998 01:04:34 -0700 (PDT) |
| 883 |
1478:Message-Id: <[email protected]> |
| 884 |
1479:From: Christina Willrich & Richard Man <[email protected]> |
| 885 |
1480:Subject: icc11 Handyboard library available |
| 886 |
1481:Date: Fri, 10 Jul 1998 00:58:49 -0700 |
| 887 |
1482:BestServHost: lists.best.com |
| 888 |
1483:MIME-Version: 1.0 |
| 889 |
1484:Content-Type: text/plain; charset="us-ascii" |
| 890 |
1485:Sender: [email protected] |
| 891 |
1486:Errors-To: [email protected] |
| 892 |
1487:Reply-To: [email protected] |
| 893 |
1488:To: [email protected] |
| 894 |
1489:content-length: 399 |
| 895 |
1490:Status: RO |
| 896 |
1491:X-Status: $$$$ |
| 897 |
1492:X-UID: 0000000001 |
| 898 |
1493: |
| 899 |
1494:At long last, I dusted off Chuck McManis Handyboard library and ported it |
| 900 |
1495:to V5. No reason why it can't work with V4.5 either ;-) Anyway, to try it |
| 901 |
1496:out, point your browser to |
| 902 |
1497: |
| 903 |
1498:ftp://ftp.imagecraft.com/pub/libhb.zip |
| 904 |
1499: |
| 905 |
1500:Chuck really did a great job with the LCD. There are commands to scroll, |
| 906 |
1501:move etc. Make sure you try the lcdtest2.c test. |
| 907 |
1502: |
| 908 |
1503:// richard |
| 909 |
1504:[email protected] http://www.imagecraft.com |
| 910 |
1505: |
| 911 |
1506: |
| 912 |
1507:--Troop_of_Baboons_752_000-- |
| 913 |
1508: |