Please post your code so we can check it.
Hello n greetings.
please find the attached archive for code.
Also tell me, as stated in datasheet (Device - CY8C4245AXI-483)can I configure all 36 GPIO as CapSense at once?
Not all GPIO pins in your chip are routable (connected to the DSI) Pins of ports >= 4 can not be used for CapSense.
By the way: Using a 36 pads wide slider will need a skateboard to handle ;-))
Hello Bob, Greetings.
I have an radial slider of 12 elements & remaining are switches. Out of those some are used for fan on-off. For those switches I want to use the same slider as a regulator.
So please guide me on how I can do that with 1 single slider & what could be the max. count of CapSense sensors I can have with CY8C4245AXI-483 device.
What makes you think that you need many slider elements? The component interpolates the finger position, so you can easily get a resolution of 250 points with just 8 sensor pads.
To operate your device you will need an indicator which of the two fans will be operated at. Two LEDs will be enough. When a fan is selected the LED will show. When the slider is not operated for a given time (Timer component) the access to the fan gets cut and the LED goes off.
Thanks for the guidelines, I will see to that. The actual query was- how many PWM components should I be using to have 2 AC rated dimmers controlled via Triac? How should I use 1 slider to vary the duty cycle of 2 PWMs according to slider position change for both w/o altering the others present state?
Another thing, as given in the datasheet, all GPIOs can be CapSense. I want to use 12 for slider & 16 as switches, will that be fine? Can I set total of 28 sensors on the PSoC 4 device?