User Profile

Collapse

Profile Sidebar

Collapse
marwanharb
marwanharb
Last Activity: May 1 '15, 10:48 AM
Joined: Mar 24 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • marwanharb
    started a topic How to send and receive 1024 Bits?

    How to send and receive 1024 Bits?

    hello, I'm designing an interface using windows Forums and I want to send and receive 1024 bits using serial port, the number is in the hex-form, so what I did is the next:

    Code:
      private void button2_Click(object sender, EventArgs e)
                {
                    int i;
                    int a=0;
                    byte[] mychar;
                    mychar = new byte[128];
                    string M = textBox1.Text;
    ...
    See more | Go to post

  • marwanharb
    started a topic convert char to its decimal value in textbox

    convert char to its decimal value in textbox

    hello, I've designed a simple interface in C# to communicate with my FPGA (send data and receive a value), the problem is my FPGA algorithm output (ex: 3) is shown in some strange symbol (which crossbones to 0x03 in ASCII ), so it there any way to show it as 3 in textbox? thx

    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using
    ...
    See more | Go to post

  • marwanharb
    started a topic find number of 1's in an array for error detection
    in C

    find number of 1's in an array for error detection

    hello, I'm receiving a char array consist of 8 characters, what I want to do is find the number of set bits in that array and then send it(total number) as a character to the transmitter so he can check, data is transmitted using serial port(RS232), where processing of data is done by DE0 FPGA.I've tried to use TestBit but the compiler doesn't know this function(I added #include "bit-manipulation.h" but it doesn't recognize this either)...
    See more | Go to post
No activity results to display
Show More
Working...