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.

1-Wire usage on TM4C129XNCZAD

Other Parts Discussed in Thread: TM4C129XNCZAD

Hello TI!

I'm using a TM4C129XNCZAD and I need 1-wire interface. The example in the latest TivaWare 2.1.1 documentation isn't working. I think there is some hardware initialization missing since nothing happens on the 1-Wire interface. Here my code I'm using for test:

    // Enable the 1-Wire peripheral
    MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE);
    MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_ONEWIRE0);
    MAP_GPIOPinConfigure(GPIO_PE3_OWIRE);
    MAP_GPIOPadConfigSet(GPIO_PORTE_BASE, GPIO_PIN_3, GPIO_STRENGTH_4MA, GPIO_PIN_TYPE_OD);

    // Initialize the module to use standard speed and read distance.
    MAP_OneWireInit(ONEWIRE0_BASE, (ONEWIRE_INIT_READ_STD | ONEWIRE_INIT_SPD_STD));

    // Clear any pending interrupts.
    MAP_OneWireIntClear(ONEWIRE0_BASE, (ONEWIRE_INT_STUCK | ONEWIRE_INT_NO_SLAVE |
                                    ONEWIRE_INT_RESET_DONE | ONEWIRE_INT_OP_DONE));

    // Enable the interrupts for operation done and the stuck bus error condition.
    MAP_OneWireIntEnable(ONEWIRE0_BASE, (ONEWIRE_INT_OP_DONE | ONEWIRE_INT_STUCK));
    MAP_IntEnable(INT_ONEWIRE0);

    // Setup a four byte sequence and a bit count.
    uint32_t ulData = (0x01 << 24) | (0x12 << 16) | (0x10 << 8) | 0xcc;
    uint32_t ulBitCount = sizeof(ulData) * 8;

    // Initiate a Reset and Write operation on the 1-Wire bus.
    MAP_OneWireTransaction(ONEWIRE0_BASE, (ONEWIRE_OP_RESET | ONEWIRE_OP_WRITE), ulData, ulBitCount);

Any idea why I can't see any action on PE3?

Best regards,
Juergen