2011-05-18 07:16:20     Blackfin Landscape LCD Ez-Extender Centre button configuration

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-05-18 07:16:20     Blackfin Landscape LCD Ez-Extender Centre button configuration

Chandrashekhar Lavania (INDIA)

Message: 100721   

 

Hi,

 

I am using a Blackfin Landscabe LCD Ez-Extender based UI module and it uses AD7147. I wanted to configure the centre wheel button for touch uses thereby making a total of 13 buttons ( 4 push buttons + 8 wheel buttons + 1 wheel centre button ).

 

Earlier I used to configure the AD7147 through my platform file by mapping each of the buttons to the positive of one of the stages.

 

My stage_cfg_reg[] array, which is part of the structure ad714x_platform_data was initialized in accordance with this in the form:

 

.stage_cfg_reg = {

{0xEFFF, 0x1FFF, 0x0000, 0x2626, 2920, 2920, 3650, 3650},

{0xFFFF, 0x1FFE, 0x0000, 0x2626, 2920, 2920, 3650, 3650},

{0xFFFF, 0x1FFB, 0x0000, 0x2626, 2920, 2920, 3650, 3650},

{0xFFFF, 0x1FEF, 0x0000, 0x2626, 2920, 2920, 3650, 3650},

{0xFFFF, 0x1FBF, 0x0000, 0x2626, 2920, 2920, 3650, 3650},

{0xFFFF, 0x1EFF, 0x0000, 0x2626, 2920, 2920, 3650, 3650},

{0xFEFF, 0x1FFF, 0x0000, 0x2626, 2920, 2920, 3650, 3650},

{0xFBFF, 0x1FFF, 0x0000, 0x2626, 2920, 2920, 3650, 3650},

 

{0xFFFE, 0x1FFF, 0x0000, 0x2626, 5664, 5664, 7080, 7080},

{0xFFFB, 0x1FFF, 0x0000, 0x2626, 5664, 5664, 7080, 7080},

{0xFFEF, 0x1FFF, 0x0000, 0x2626, 5664, 5664, 7080, 7080},

{0xFFBF, 0x1FFF, 0x0000, 0x2626, 5664, 5664, 7080, 7080},

},

 

As we can see 12 buttons were mapped to 12 stages.

 

But , now I want to use 13 buttons, but there are only 12 stages. How can we go about doing this?

 

I think we may need to map the 13th button to the negetive of one of the stages. Any suggestions what might be good way to do this?

 

Regards,

Shekhar

 

PS: I am using 2010R1-RC5

Attachments

    Outcomes