Hello @ZhangJennie, thanks for the response,
Still getting 0 value, following steps are followed:
1. Pin Mux:
Pin name - PB_0 with GPIO5[20]
Mode - (0x2 << 3) //Enable Pull-up resistor
2. Set direction (DIR register) = Output
3. Set value (SET register)
4. Set direction (DIR register) = Input
5. Read Pin state (PIN register) = getting 0 value
6. Set direction (DIR register) = Output
Thanks,
Ketul