Hi Alex

I have done this many ways using different digital I/O including NIDAQ
cards. With the PIC chips exact clock timing is not important what is
more important is you do not toggle bits too fast you can do it as slow
as you want.
To Set a data bit:
 - Set the appropriate DIO line
 - Toggle the clock line High
 - Toggle the clock line Low

To Read a data bit:
 - Toggle the clock line high
 - Read the appropriate line
 - toggle the clock line low

This may sound slow but it isn't really, I have programmed pics using
with a micro interpreting serial data and toggling the lines but it was
slowwer that this method at 19k2 baud.

Tim

-----Original Message-----
From: Alex Le Dain [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 19 February 2004 1:40 p.m.
To: InfoLabVIEW
Subject: Chip Programming Using DIO Card


Hi List,

Not exactly LabVIEW based, but ...

We want to program a PIC chip using a DIO card. The PIC requires that a
clock signal and data (bit) stream be supplied on two of it's pins. The
data must be "clocked" in, in that the data bit must be set before the
clock transitions. I understand that we could toggle the lines under
software control, but I am really after a fast solution and would like
to have the serial data stream blasted down onto the chip as fast as
possible. I am unsure exactly how you setup a DIO card to do this
transfer given that the data must be 100ns offset from the clock pulse
and held for a minimum period of 100ns.

Has anyone done this sort of thing before? Does anyone have any ideas on
how to set up a card like the NI-6533 to do this?

Furthermore, does anyone have any code that converts serial (ASCII) data
to a bit stream for output on a single data line?

cheers, Alex.


Reply via email to