PIC 16F877A output a text file?

Thread Starter

QMD

Joined Jun 30, 2010
30
My friend and I are working on a project and wish to use a PICF877A microcontroller to output a text file to a computer. We plan to treat our microcontroller as an object (like a floppy disk or flash drive) and then open the text file as one would open a file on a disk. Any tips on how to go about this?

Thanks!
 

ELECTRONERD

Joined May 26, 2009
1,147
You can communicate serially with the computer and PIC using RS232, then retrieve the input line from hyperterminal. I would recommend using the PHP language to do the text retrieving operation.
 
Last edited:

spinnaker

Joined Oct 29, 2009
7,830
Probably the easiest way would be to write to an SD memory chip and transfer the information that way.

Or use RS232 as Electronerd suggests.

Or get a USB enabled PIC and write to a thumb drive.


Your flash drive idea would require usb and would be a bit tricky.
 

t06afre

Joined May 11, 2009
5,934
My friend and I are working on a project and wish to use a PICF877A microcontroller to output a text file to a computer. We plan to treat our microcontroller as an object (like a floppy disk or flash drive) and then open the text file as one would open a file on a disk. Any tips on how to go about this?
Thanks!
Is this some sort of school assignment? And if so what is the design requirements. I am asking because USB is not the most easy thing to write apps for. So some deeper USB knowledge and programming skills will be needed for such a project. It may be to much in a beginner project
 

Thread Starter

QMD

Joined Jun 30, 2010
30
Is this some sort of school assignment? And if so what is the design requirements. I am asking because USB is not the most easy thing to write apps for. So some deeper USB knowledge and programming skills will be needed for such a project. It may be to much in a beginner project
It is part of a design project. We may actually need to use a different PIC model (suggestions?) One that can take two serial inputs and one serial output? The output will go to a bluetooth module, which will send data to a laptop.
 

John P

Joined Oct 14, 2008
2,068
With some limitations, you can use any processor which has a single serial port, and write the code for a second serial port yourself. The limitations principally are that the software serial port can't be full duplex (can only receive or transmit at any given time) but if you only want to receive, that's not a problem.
 
Top