> -----Original Message----- > From: Chris Rocco [SMTP:crocco@CORP.EARTHLINK.NET] > Sent: Tuesday, July 08, 2003 8:52 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: PC <--RS-232--> PIC18F452 <--SPI--> MAX504 > > I want to control a DAC from my PC (using Visual Basic for now) and it > looks like using the PC's serial port to communicate with a PIC18F452 > that is connected to a DAC via SPI could work. Has anyone done this? > Is there a better/easier way? Anyone got any code samples? It would be > great to find a DAC that could speak RS-232 directly. :) > > PC <--RS-232--> PIC18F452 <--SPI--> MAX504 > > I chose to use the 18F452 and the MAX504 because I have them on hand. > I'm not tied to any particular language because I'm just starting out > with PICs. > > Thanks, > Chris > You could do away with the PIC altogether and bit bash SPI on your parallel port for minimum cost/time. It will still be relatively fast even through VB, although the CPU overhead will be higher (not usualy an issue however). Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu