Dear Sirs
About AIC3254 register setting issue.
I use Interrupt and Headset detection function.
The register map setting is shown as follow:
P0R48 = 0x80=>INT1 Interrupt for Headset Insertion Event:1: Headset Insertion even will generate an INT1 interrupt
P0R55 = 0x08=>0100: MISO is INT1 output
P0R56 = 0x02=>01: SCLK pin is enabled for SPI clock in SPI Interface mode or when in I2C Interface enabled for Secondary Data Input or Secondary Bit Clock Input or Secondary Word Clock or Secondary ADC Word Clock or Digital Microphone Input
P0R67 = 0x80=>1: Headset Detection Enabled
1.When I read the P0R44, then read P0R67=> Headset detection will be disable. And Headset Type Flag state is wrong.
Why the Headset detection will be disable?
If I do not read P0R44,only read P0R67=>Headset detection will still be Enable. And Headset Type Flag state is right.
2.AI3254 pin11 work ok (INT1 output),plug in&out =>Interrupt output still work. Plug in and I read P0R44=>D5 = 1(1: Button Press detected),That should be D4= 1?
D5: Headset Button Press 0: Button Press not detected 1: Button Press detected (will be cleared when the register is read)
D4: Headset Insertion/Removal Detect Flag 0: Insertion/Removal event not detected 1: Insertion/Removal event detected (will be cleared when the register is read)
Please help me, thanks~
BRs
Nat