blueice2
Newbie level 1
I am trying to send a command followed by a set of data through the serial comm.
E.g. The application from the PC writes char "S1000E" to the serial. The FPGA UART receives this as "S" "1" "0" "0" "0" "E" (I have it write back to HyperTerminal). In ASCII, "1" = 31(hex) or 49(dec) or 11001(bin).
The question is... how do I store the value 1000(dec) to a register in bits? I understand I will somehow need to convert the ascii 1 to bin 1 and have a shift register to store the values... I just don't know how...
Cheers,
Will
E.g. The application from the PC writes char "S1000E" to the serial. The FPGA UART receives this as "S" "1" "0" "0" "0" "E" (I have it write back to HyperTerminal). In ASCII, "1" = 31(hex) or 49(dec) or 11001(bin).
The question is... how do I store the value 1000(dec) to a register in bits? I understand I will somehow need to convert the ascii 1 to bin 1 and have a shift register to store the values... I just don't know how...
Cheers,
Will