I am working on TMS320F28335 Digital Signal Controller. I want to use 8 bits of Port B for my application, in which I am going to change the direction of these 8 pins from input to output and vice versa at runtime. I will be achieving by updating the Direction register at runtime. I want to know the time required for the switching and also it would help if you can provide a sequence of doing it, so that I can take care of all the possible problems that might arise.