Newsgroups: comp.robotics
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!agate!darkstar.UCSC.EDU!nic.scruz.net!earth.armory.com!rstevew
From: rstevew@armory.com (Richard Steven Walz)
Subject: Re: Serial Controller thats really easy to use
Organization: The Armory
Date: Sat, 28 Jan 1995 12:12:04 GMT
Message-ID: <D34785.2rG@armory.com>
Keywords: Serial
References: <ewtigger.8.000FA269@mcd.on.ca>
Sender: news@armory.com (Usenet News)
Nntp-Posting-Host: deepthought.armory.com
Lines: 51

In article <ewtigger.8.000FA269@mcd.on.ca>,
Edward T. Wisniewski <ewtigger@mcd.on.ca> wrote:
>I recently completed the prototype for a serial controller i call MIC ADC232  
>It has 8 digital i/o lines which can be read as bytes or bits and written to 
>as bytes or bits.  It has 5 didgital i/o lines which are open collector i/o 
>where if needed one of these i/o line can become a pulse width modulation 
>signal 0 to 5, 100Hz to 32Khz from 0% duty cycle to 100% duty cycle.  It also 
>has another 5 digital i/o lines which can also be used as 5 ADC when turned on.
>
>The controller works with any computer system which has a rs232 output.  It 
>uses simple commands such as
>
>SETPA1           -Sets a bit high for port A
>RESPA1          -Sets a bit low for port A
>ADCON            -Turns on the ADC's
>ADC1               -Reads the ADC #1 value
>PWMON          -Turn pulse width modulation on
>PWMOFF        -Turn Pulse width modulation off
>PWMD50        -Sets the dutty cycle to 50%
>PWMF100      -sets the frequecny to 100hZ
>
>There are many more commands.
-------------------------------
Oh please tell us!
-Steve

>A sample program for this controller in basic is:
>
>10 open "COM1:9600,n,8,1"  AS #1
>15 t=t +1
>20 print #1,"setpa" ; t
>30 print #1,"respa" ; t 
>40 print#1, "rda"
>50 input #1, porta
>60 print "the value of port a is" ; porta
>70 if t = 8 then t = 0
>80 goto 15
>
>If anybody is interested in more information about this controller you can 
>leave mail to ewtigger@mcd.on.ca
-----------------------------------
Excellent idea, but why so limited, as many more port bits and more A2D and
such would be desirable!?? This is what people are looking for, I feel, but
your capabilities simply need expansion. Why not just add one register for
control and more space for duplicate ports of both types? Then use the
control word to select which port you're currently polling/writing to. And,
perhaps with fast enough serial, you may need to bring the interrupt in as
well from your board. Good effort, though. Right direction for the needs of
many people!
-Steve Walz   rstevew@armory.com

