The ADT7470 Table 50. show "When GPIO is configured as an output, these bits are read/write. Setting these bits asserts the GPIO output. (Asserted can be high or low depending on the setting of GPIO4 polarity.)". We run below setting:
But GPIO 3 ( PWM3 pin 8 ) level don't have any change (always high level) and Register 0x81 always read equal to "0x0C" at each step. Please help to check this issue. Thanks!
I see by writing alternatively 0x4C and 0x0C you expect to see the PWM3, toggling because you are writing to bit 6, however why setting bits 2&3? Default values appear to be 00 and this bits should be reserved. Have you tried reading the registers after every write just to make sure you are actually writting what you were expecting? I mean for instance:
Also, would it be possible to share your schematic so I could check how are you connecting your hardware to that output?
I use ADI's EVB to test. Please refer attached file is follow your suggest result. The Register 0x81 value still keep "0x0C". Please help to check. Thanks!
If you are using the eval board, you will need to connect first the 12V power supply. In any case, I replicated what you are doing and it seems that this register cannot be read/written. We might need some time to review the software code or further evaluate the part itself. Thanks for pointing it out.
However, we could workaround it at the moment: you can control the GPIO outputs by modifying its polarity. I monitored the 4 GPIO (with the 12V supply connected) and did the following sequence:
-Enable the desired GPIOs on register 0x7F
-Set the desired GPIOs as outputs on register 0x80
-Toggle the GPIO desired by changing its polarity on register 0x80(as I was monitoring the outputs I could easily see the outputs level changing, for GPIO1 and GPIO2 you can also observe whether the fan is ON or OFF)
This can be done more easily by using the GPIO configuration window, clicking on the third icon from the right hand side. Please note you will need to allow a short delay since the button is pressed until the output voltage level changes.
I hope this works, and apologies for the inconveniences.
I had connect the 12V power supply. So, the register 0x81 just read only. Right?