Other Parts Discussed in Thread: TM4C1294NCPDT, TM4C129XKCZAD, TM4C129XNCZAD
Tool/software: Code Composer Studio
Hi,
I am using TM4C1294XL launchpad and I am tried to integrate temperature sensor DS18B20 using one wire protocol.
But in this launchpad I didn't see any "One wire GPIO pin " . Is any specific GPIO needed or not.
if any GPIO pin available, please let me know. I write sample code for 1 wire protocol but program get stuck when "OneWireInit" initialization. Below I added the code.
MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_ONEWIRE0);
GPIOPinTypeOneWire(GPIO_PORTN_BASE, GPIO_PIN_5);
OneWireInit(ONEWIRE0_BASE, (ONEWIRE_INIT_READ_STD | ONEWIRE_INIT_SPD_STD));