EmbDev.net

Forum: FPGA, VHDL & Verilog vhdl c# compiling


von kobi (Guest)


Rate this post
useful
not useful
hi there,
i writing a vhdl code for the altera de-115
once i finish loading the board with the sets of commands, i want to 
control it using a c# software that i want to build

example:
 i am connecting an Infrared emiiter that will detect movment in a room
 i want this to be operational only on monday 5pm to 6pm
 how can i use visual studio to build a SW that control this board and 
opereats the code by clicking a button on my computer?


any comments\references will be highly appriciate!

von kobi (Guest)


Rate this post
useful
not useful
BTW
i will connect the PC which runs the SW to the board on rs-232 port

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
kobi wrote:
> how can i use visual studio to build a SW that control this board
Look for some code snippets how to send and receive data via RS232 with 
C#. The SerialPort class seems like a good first step to me.

Then you must implement a serial interface in your FPGA that recongizes 
the commands from the PC and reacts by sending data to the PC.

But the VERY FIRST STEP must be: sketch down the structure of that 
system and define a protocol that can do the job.

von -gb- (Guest)


Rate this post
useful
not useful
You could start testing by sending commands via serial terminal. 
http://realterm.sourceforge.net/ is a good Windows serial terminal. For 
Linux i would use cutecom.

It is also very easy to send/receive data via UART with Python and 
pyserial. Probably much easier than with any c*.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.