Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Wireless Transmission using Cyclone II FPGA (Verilog HDL)

The data that is to sent out from the FPGA is in 8-bit form.

Whereas the encoder on the transmitter circuitry can only receive 4 bits.

Different coding have been tried but it just does not seem to work.

Anyone has done something similar before? Or is there any sample codings for this? Thanks! :)

13 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    First some things that I do not understand from your design:

    1) I do not understand why you are using this fifo for this project.

    2) When all 4 bits of from_expansion are "0" you are emptying the fifo with reads.

    3) On every "clk" clock cycle, when "from_expansion" is different from zero you will read in a new "from_expansion" in your fifo. In my opinion this can give rise to two problems:
    1. When the data from your RF receiver last longer than the amount of words in your fifo, the fifo will be full. This gets unnoticed in your design.

    2. What happens when you have transitions in your "from_expansion" signal between one state and the other? For example a change from: "1011" to "1100" could for example go over a number of clock cycles from "1011" to "1001" to "1101" to "1100". If such transitions from your 433 MHz receiver take longer than the clock period of your design, then they are all registered as separate values.

    --- Quote Start ---

    Once a key is pressed, sometimes the MSB will be received first.

    Sometimes, the LSB will be received first.

    --- Quote End ---

    Do you take into account the "full" and "empty" signals in your design. Whenever your fifo gets full, it will not read new data. So this could explain the strange behavior.

    --- Quote Start ---

    And, only second time of the key press will trigger the LEDs to change.

    Why is it so?

    --- Quote End ---

    This is probably caused by the length of your fifo.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If I don't use FIFO at the receiver side

    then what should I add in to make it works?

    what about another coding I have posted up?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    sickmuse...

    can you sent me a link for example design of wireless transmission using rf