Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I was thinking simply! I mean, if I have a file on my desktop I only want to open it and read its data, as simple as that! couldn't be implemented that way?
The issue is the PIC32 does not have direct access to your desktop or PC's file system for that matter.
You could stream the information within a file on your PC to the PIC32 by some communication channel, RS-232, USB, etc.
You would need to write a PC app which would open the file, read its contents and stream this data over a communications channel.
Or you could implement an SD flash card interface along with a FAT16 file system within the PIC32. Implementing this approach would allow a copy of the file to be transferred to the SD flash card and be access both read/write by the PIC32.
Implementing an RS-232 connection between the PIC32 and a PC is not particularly complicated.
You'll need to pickup a RS-232 transceiver IC, MAXIM manufactures several devices, and learn how to configure the PIC32's UART for asynchronous serial TX/RX.
Or you could utilize a USB to UART bridge device like the FTDI FT232R which would allow you to utilize the PC's USB port as a virtual serial port.
**broken link removed**
There are FTDI FT232R breakout boards available to simplify the process:
The PIC32MX795F512L does offer both a USB OTG and Ethernet MAC hardware module/interface, although I suspect you may find implementing either more challenging than the UART module/interface.
You are referring to the PIC32 Ethernet Starter Kit, I assume. It can e.g communicate as a USB device or USB host and an ethernet server or client with the software examples provided by Microchip. RS232 can connect through the expansion header.
In case of the USB Starter Kit, you have the same interfaces, except for Ethernet.
I prefer using PICs own HW USB-port. It can be configured to be seen as a COM port on PC. It can also be used to power up the system and it's a common connector. At least PIC18F-series had this option, I bet they haven't removed it in PIC32. This way you don't even need external components. Except for the connector.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.