Hi guys I have some truble reading two bit from port B of a ST uPSD3254A. Exactly I have to read two bit at PB2 and PB3, that seems to be connected to the two switch on 32xx ST development board. I inizialize the port with this two istruction: PSD8xx_reg.DIRECTION_B = 0x03; (0x03 = 00000011b) PSD8xx_reg.OUTENABLE_B = 0xF3; (0xF3 = 11110011b) In this way PB3 and PB2 should be an Input without output enable. The I read this two bits in this way: value = PSD8xx_reg.DATAIN_B & 0x0C But seems doesn't work. I have to initialize something else? Bye!