AnsweredAssumed Answered

Use the same pin as input and output alternatively

Question asked by Petr Zhuvasin on May 23, 2018
Latest reply on May 24, 2018 by Mark Butcher

Hello. Currently I try to implement a driver for a One Wire device to use it on KW41Z board and struggle to make a basic pin setup.

I see only two options of resolving the question inclined in the topic title: either there should be two configuration of a pin with input and output directions set respectively and the pin init function should be called each time I need to change the direction, or the port registers should be changed manually.

Can you say which way is better, and if the second one (with port registers) is more appropriate, can you help me with the port registers setup?

 

Best regards.

Outcomes