Write down the mode 0 control words of 8255 for the following two cases: (a) Port A = Input port, …

Write down the mode 0 control words of 8255 for the following two cases: (a) Port A = Input port, Port B = not used, Port CU = Input port and Port CL = Output port. (b) Port A = Output port, Port B = Input port, Port C = Output port