This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GPIO as RS422

Hi,

I want to use GPIO pins as RS422 but could not able to get idea to read Rs422 from GPIO pin.

Can u suggest me how can i read GPIO pin as Rs422 using C code.

I am using 8148 processor.

Regards,

Vimal

  • Vimal,

    Please refer to the below wiki page:

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_GPIO_Driver_User_Guide

    Regards,
    Pavel

  • Hi Pavel,

    Thanks for the provided link, which has given me the useful information on gpio but still my question remain same.

    let me explain you in details about my query.

    I have connected an RS422 line on a gpio to receive the data transferred from other side say "ABCDEFGH" and also want to transfer the data to other side say "IJKLMNOPQ".

    How can i achieve it.

    I know that the toggling can be done by setting the value to 0 or 1 and same can be read from gpio, but how to read and write the data from/to gpio.

    a little bit of code snippet will be useful if provided.

    thanks.

  • Vimal,

    I would recommend you to check:

    DM814x TRM, chapter 10 GPIO, sections
    10.2.4.2 Set and Clear Instructions
    10.2.4.3 Data Input (Capture)/Output (Drive)

    Wiki page:
    http://processors.wiki.ti.com/index.php/General_Purpose_IO_%28GPIO%29_FAQ_for_C2000

    GPIO C test code from Mistral:

    http://www.mistralsolutions.com/pes-support/support-downloads/tmdxevm8148.html#

    Software -> Diagnostic Software -> Expansion I/O board

    IO_EXPANSION_BOARD_Rev_D.zip -> IO EXPANSION BOARD Rev D/src/CCS_Test_Code/IOExpansion_Application/

    lcd_interposer_touch/ocular_touch.c
    Bluetooth/bluetooth.c
    wlan/sdmmc.c
    UART0/uart_loopback_test.c

    ti-ezsdk_dm814x-evm_5_05_02_00/board-support/u-boot-2010.06-psp04.04.00.01/board/ti/ti8168/evm.c -> voltage_scale_init(void)

    Best Regards,
    Pavel