Hi Rajender,
1. How the LED can be controlled with GPIO expander? VCC is 3.3V and LED will be supplied with 5V and we want to understand how the LED can be turned on or off? it the Port output going to drive it or how?
[A] The GPIO pins can be set as inputs or outputs in the registers and also internal pull-up and pull-down resistors can be enabled and disabled for individual GPIO pins, thus bringing voltage to the GPIO pin or if pull-down is activated, connecting the pin to GND through the pull-down resistor.
2. Can all the 24 GPIOs be set or reset at a time? if not how may GPIOs can be set or reset at one time?
[A] If the PCAL6524 is reseted, all the registers will be set to default values. Please check the Table 6. in the PCAL6524 datasheet for the registers default values.
Although the PCAL6524 can be used to drive LEDs, we have a range of LED drivers specifically designed to drive the LED diodes. I would rather recommend you one of our LED drivers for your application. Please see this link for a list of our LED drivers portfolio.
It would be much easier to use a LED driver to drive LED diodes, there are some code examples created and the LED drivers have functions specifically designed for LED driving. (Dimming, blinking, gradation control, etc.).
With Best Regards,
Jozef