Hello,
This is my first *real* message on this forum.
I've built an analog->digital circuit using a PIC16F876.
It looks like this :
http://82.246.130.67/numer_circuit.jpg
It is 5V-powered and uses a 4MHz quartz.
Here is the PIC C code :
http://82.246.130.67/prog.txt
Now, I'd like to connect it to my laptop (Lenovo 3000 c200 ; ubuntu gusty gibbon). As I've not any serial port on this computer, (I've only got USB ports), I've bought a USB->RS232 adapter. It seems to be recognized, and a device, /dev/ttyUSB0 is created. Finally, I give me all rights on it.
I've also created a C program that will show the curves of the analog PIC inputs in realtime.
Here it is :
http://82.246.130.67/graphe.tar.gz
It is coded using code::blocks ide and uses SDL to display the curves and standard IO functions on my usb serial port (open, read, write).
Now, there is a small problem in all that :
IT DOES NOT WORK
Nothing is received by the program while the PIC is constantly sending data on the serial port.
Please help me.
I've been searching for the problem for 12 days...
Thank you.