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