A boundary scan cell for bi-directional input/output terminals as set forth in claim 5, wherein the boundary scan cell further comprises:a first selector gate having two input terminals and an output terminal, one of the input terminals of the first selector gate being connected to the first terminal, the other input terminal of the fist selector gate being connected to a test data input terminal