What is the procedure to open a parallel port and set individual bits re controlling an external device via the port?