EmbDev.net

Forum: FPGA, VHDL & Verilog vhdl c# compiling


Author: kobi (Guest)
Posted on:

Rate this post
0 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!

Author: kobi (Guest)
Posted on:

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

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 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.

Author: -gb- (Guest)
Posted on:

Rate this post
0 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*.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig