Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 8 months ago.
Why when BusOut.read() gives 1 int ahead of what i write using BusOut.write()?
With my BusOut Salidas(D0,D1,D2,D3,D4,D5,D6,D7) I want a 17 in my BusOut
Salidas.write(0x11); int salidas=Salidas.read(); pc.printf("Your output is: %i \n", salidas);
but I get a 19 in my printing, Does anyone knows why?
How do you define the pin "D1"? Could you show the circuits which is connected to pin D1? If you use low registance, 2k ohm or less, register for pulling up pint "D1", D1 pin cannot sink enough current and the voltage on D1 pin may be detected as High(1).
posted by Yoichi Hamazaki 16 Mar 2015