Most of my experiance with PIC's for HW controle is wiht using them as IO trunks to bitwise IO devices. With a Device that is allready Serial The PIC may not help much. Although thay do have on bord DAC's .

The model we use is that tasks not requireing EPICs and VME can use a
PC-linux -> RS232 -> PIC -> ( HWIO, steping motors , penumatics , ADC/DAC Etc... )

We genraly write a simple set of functions in Asm or C for the PIC, and then use the serial line to down-load and runtime specal functions in the PIC memory from PERL or C.

We can then call all the functions in the PIC as though thay are sub's in the controle program. this included all the passing of var's and such. Taken to its extream ( which wee have done for a Z80 MCU) , the controle system downloads all the softwhere to the MCU each time it's initalized.
If your current C program is just using the bits in the parallel port as bit's and not trying to time a serial clock, the PIC or Z80 can offer many more lines of IO, and make the controleing computer less important ( Ie. I use a HP caculator to do debuging work on my controlers once there installed. )

Bill N. to spell, perchance convay my self; Or stay mute, a lurker on the side

In reply to Re: Perl to control hardware by kb2yht
in thread Perl to control hardware by toma

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.