Hello,
this my 1st project involve vhdl.this project,my supervisor wants me to use up3 board,receive 8 bit data from ADC, process it and display through visual basic(PC)..
this what i got so far..if the problems is too obvious,im still amateur bro..
1. i got error 10500 a lot
2. how to communicate up3 board using serial,did it still need vhdl code?
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity up3_board is
port( datain_adc: IN STD_LOGIC_VECTOR(7 downto 0);
clock: IN STD_LOGIC; -- Clock Input from Altera Board
dataout_serial: OUT STD_LOGIC_VECTOR(7 downto 0));
end up3_board;
architecture BEHAVIOR of up3_board is
IF RISING_EDGE(clock) THEN
PROCESS(clock,datain_adc)
BEGIN
if datain_adc='00000000'--data from ADC,not correct yet..
then
dataout_serial<="00000000";--serial output in binary..not correct yet
elsif datain_adc='00000001'
then
dataout_serial<="00010000";
elsif datain_adc='00000010'
then
dataout_serial<="00010101";
elsif datain_adc='00000011'
then
dataout_serial<="00010110";
elsif datain_adc='00000100'
then
dataout_serial<="00010111";
elsif datain_adc='00000101'
then
dataout_serial<="00011000";
elsif datain_adc='00000110'
then
dataout_serial<="00011001";
elsif datain_adc='00000111'
then
dataout_serial<="00011010";
elsif datain_adc='00001000'
then
dataout_serial<="00011010";
elsif datain_adc='00001001'
then
dataout_serial<="00011010";
elsif datain_adc='00001010'
then
dataout_serial<="00011010";
elsif datain_adc='00001011'
then
dataout_serial<="00011010";
end process;
end BEHAVIOR;