Guest
#2097414
Hi everyone! I'm a starter in VHDL and I'm using Xilinx's Spartan 3E for some data conversion (A/D) and transmission to computer by RS232 protocol. The A/D converter has a 12 bit output but the UART controller can only transmit 8 bits. So I was thinking that I could write a VHDL module that would "split" the 12 bits in two 8 bit long segments (the last 8 LSB and the first 4 MSB padded with zeros). Because I have to implement some digital filters too in a later moment, I'd like to transmit 6 packs of 8 bits to the UART controller, each pack after the current pack is shifted out of the shift register from the UART controller. So far, I have made an entity using state machines, but it doesn't seem to work. I have attached the source code. Can anybody help me to resolve this issue? Thanks in advance!