We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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!
Well, there aren't any examples or manual, but.... it worked, the signal were ok, was bad the connecting to the DAC. With a logical state analyzer i found what was wrong. Thank you, bye!