MPR121 SET / CLEAR register bytes problems

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPR121 SET / CLEAR register bytes problems

1,283 Views
joseluiscaresan
Contributor I

Hi, I bought a MPR121 breakout sensor. I have set the 4 touch sensors an 8 LEDs Outs on GPIO 4 to 11. GPIO 4 is bit b0 and GPIO 11 is b7, All works fine, I sent 0x0F to SET register (0x78) and 0xF0 to Clear Register (0x79) and I can see the proper leds ON and OFF (ELE4/LED0 to ELE7/LED3 high). But when I sent a 0x20 (0010000b) to SET register and 0xBF (11011111b) to the Clear register, I saw ELE/10LED6 HIGH (like 01000000b). By Other hand when I sent the values for 01000000b, I saw 00100000b. I have checked the wires a lot of times. It looks like LED 6 and LED 5 are changed from the DATA register to the real pin...Do you have any errata data sheet? Best regards.

Labels (1)
0 Kudos
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-497384%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMPR121%20SET%20%2F%20CLEAR%20register%20bytes%20problems%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-497384%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20I%20bought%20a%20MPR121%20breakout%20sensor.%20I%20have%20set%20the%204%20touch%20sensors%20an%208%20LEDs%20Outs%20on%20GPIO%204%20to%2011.%20GPIO%204%20is%20bit%20b0%20and%20GPIO%2011%20is%20b7%2C%20All%20works%20fine%2C%20I%20sent%200x0F%20to%20SET%20register%20(0x78)%20and%200xF0%20to%20Clear%20Register%20(0x79)%20and%20I%20can%20see%20the%20proper%20leds%20ON%20and%20OFF%20(ELE4%2FLED0%20to%20ELE7%2FLED3%20high).%20But%20when%20I%20sent%20a%200x20%20(0010000b)%20to%20SET%20register%20and%200xBF%20(11011111b)%20to%20the%20Clear%20register%2C%20I%20saw%20ELE%2F10LED6%20HIGH%20(like%2001000000b).%20By%20Other%20hand%20when%20I%20sent%20the%20values%20for%2001000000b%2C%20I%20saw%2000100000b.%20I%20have%20checked%20the%20wires%20a%20lot%20of%20times.%20It%20looks%20like%20LED%206%20and%20LED%205%20are%20changed%20from%20the%20DATA%20register%20to%20the%20real%20pin...Do%20you%20have%20any%20errata%20data%20sheet%3F%20Best%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-497384%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ETouch%20Sensors%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E