Screen touch interrupts
Posted: Thu Jul 13, 2023 1:51 am
Hello!
I'm trying to configure the screen (EVE70 with BT815) in order to get interrupts when the screen is
touched, instead of polling.
There are 8 flags for interrupts, so I have chosen bit 2 which seems to correspond to screen touch.
So the configuration I use is setting the mask to 0x00000002 and setting the bit of REG_INT_N to 1.
In short, the setup code is like this:
wr32(REG_INT_MASK, 0x00000002);
wr32(REG_INT_EN, 0x00000001);
Does it seem to be right?
Beside this the documentation says that there should be a pullup, so I have used the MCU internal
pullup for this purpose. But I don't get any interrupt.
Could anybody tell me what's wrong?
NB: all the other features work, and the above functions are also used many times to access the
chip, so they are correctly implemented and I suspect some config is missing.
I also read in the documentation that the GPIO has to be tuned for interrupts. But the sample code
showing backlight enable leaves no room for configuration. I'ts set to FFFF, so I guess I can't change
anything.
Any comment welcome.
I'm trying to configure the screen (EVE70 with BT815) in order to get interrupts when the screen is
touched, instead of polling.
There are 8 flags for interrupts, so I have chosen bit 2 which seems to correspond to screen touch.
So the configuration I use is setting the mask to 0x00000002 and setting the bit of REG_INT_N to 1.
In short, the setup code is like this:
wr32(REG_INT_MASK, 0x00000002);
wr32(REG_INT_EN, 0x00000001);
Does it seem to be right?
Beside this the documentation says that there should be a pullup, so I have used the MCU internal
pullup for this purpose. But I don't get any interrupt.
Could anybody tell me what's wrong?
NB: all the other features work, and the above functions are also used many times to access the
chip, so they are correctly implemented and I suspect some config is missing.
I also read in the documentation that the GPIO has to be tuned for interrupts. But the sample code
showing backlight enable leaves no room for configuration. I'ts set to FFFF, so I guess I can't change
anything.
Any comment welcome.