So, today I decided for the first time to try to communicate with my Arduino Uno via a program in C# using the USB port.
I guess the drivers that come with Arduino make COM3 a serial port. over USB So I created a new form in Visual Studio Express and popped in a SerialPort from the toolbox. Also a timer.
Then I whipped up this program that does a heartbeat and sends out an ‘A’ once per second:
Then looked to see if my C# program would show a stream of A.
But first, this was the first time I ever uploaded something to my Arduino. It told me there was a problem when I tried, but I just had select COM3 as the port.
Here is the important part of the C# code:
And the result? A stream of A. So I can use the SerialPort from .NET to talk to COM3 at whatever baudrate is supportable.
I am now in the process of creating an Arduino driver for the CPLD that will connect to the flash to program it.