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.

One_wire library using TM4C123GH6PM

Hi,

I am trying to emulate onewire protocol using tm4c123h6pm, but i have one doubt,how can i use  same GPIO pin as input as well as output at same time?

is it possible?

if anyone have any idea about onewire using tm4c123?

(i know that tm4c129 has the onewire support, but my product was already designed with tm4c123 )

regards

shibil

  • Hello Muhammad,

    1-wire emulation would require the pin to be in Open Drain with an external Pull Up on the bus. After that all of the access requires timing to be performed either using Timer or Delay loops. There were some posts on 1-wire but users found it easier with TM4C129x and some posts were never responded by posters.

    Regards
    Amit
  • Thanks amit for quick response,
    can i use GPIO as internal pullup instead of using external pullup?

    my code snippet is here for gpio configure

    "

    //
    // Configure the GPIO Pin Mux for PA7
    // for GPIO_PA7
    //
    MAP_GPIOPinTypeGPIOOutputOD(GPIO_PORTA_BASE, GPIO_PIN_7);
    MAP_GPIOPadConfigSet(GPIO_PORTA_BASE, GPIO_PIN_7, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU);

    "

    is there any modification needed?


    Regards
    shibil

  • Hello Shibil,

    Normally it is an external pull (please check the one wire datasheet for Rpu recommendations)

    Regards
    Amit