A A A

Electronicfr.com

Home arrow Microcontrollers and USB 20.08.2008

Main Menu

Home
Robotic
Microcontrollers and Ethernet
Microcontrollers and USB
Embedded computing
Submit a circuit

Search

Google
Web
electronicfr


Part 1 : How to build a USB device with a PIC 18F4550 or 18F

Go back to the article

Comment in question
Posted by stefan, on 26-02-2008 15:02, IP 194.138.39.56
1. access to transmitted data
Hi, 
I would like to use the PIC18F4550 USB Demo Board to read out an SPI-Interface and send these data via USB to the PC. The compiler I use is the C18 compiler. I belief, that I am able to implement the SPI interface at the PIC. But I don't know which .h and .c files from the firmware are required. Do you have some examples? 
The second question I have is how can I visualize the transmitted data on the PC? The software I am going to use is Visual Basic 2008 (Freeware). Have you some basic instructions?
 
» Report this comment to administrator
» Reply to this comment...
» See all 1 replie(s)

1 replies
Posted by Sylvain, on 28-02-2008 19:10, IP 82.241.45.83
1. USB and SPI
Hello Stephan, 
 
Read from SPI with these PIC is very easy. You can use functions from the C18 library. 
Check this document, http://ww1.microchip.com/ downloads/en/devicedoc/ 51297c.pdf 
and look at 'SPI functions' page 46 and 'software SPI functions' page 100.  
Some examples with this library are here: http://electronicfr.com/ index.php/Microcontrolers- programing/Memo-and-code- exemples-for-C18- programing.html 
but not yet about SPI (your help is welcome if you write some working examples) 
Sylvain
 
» Report this comment to administrator
» Reply to this comment...



mXcomment 1.0.5 © 2007-2008 - visualclinic.fr
License Creative Commons - Some rights reserved
 
TOP