I have CAT4101 constant current LED driver and I need to control LED current. My idea is to use microcontroller and digital potentiometer (MCP41010) to control the current. While the potentiometer I have is linear (resistance is proportional to the digital code), LED current is not linear due to CAT4101 characteristics:
LED Current RSET
[mA] [Ohm]
100 4990
200 2490
300 1690
400 1270
500 1050
600 866
700 768
800 680
900 604
1000 549
Its datasheet says that it maintains constant voltage on the Rset pin and LED current is approximately 400 times the Rset pin current.
Is is possible to "invent" some circuit based on linear digital potentiometer that will change its resistance in non-linear way and allow linear LED current control?