LRADC_CTRL Низкоскоростной АЦП: список регистров 31 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 16 15 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 00 FIRST_CONVERT_DLY Bits 31 : 24R/W 0x1 ADC First Convert Delay Setting Unused Bits 23 : 20CONTINUE_TIME_SELECT Bits 19 : 16R/W 0x0 Continue Mode Time Select Unused Bits 15 : 14KEY_MODE_SELECT Bits 13 : 12R/W 0x0 Key Mode Select LEVELA_B_CNT Bits 11 : 8R/W 0x1 Level A to Level B time threshold select, judge ADC convert value in level A to level B in n+1 samples. LRADC_HOLD_KEY_EN Bit 7R/W 0x0 LRADC Hold KEY Enable LRADC_CHANNEL_EN Bit 6R/W 0x1 LRADC Channel Enable LEVELB_VOL. Bits 5 : 4R/W 0x2 Level B Corresponding Data Value Setting (the real voltage value) LRADC_SAMPLE_RATE Bits 3 : 2R/W 0x2 LRADC Sample Rate Unused Bit 1LRADC_EN Bit 0R/W 0x0 LRADC Enable Команда U-Boot для чтения регистра md 5070800 1Bit fields structuretypedef union lradc_ctrl { struct { unsigned lradc_en : 1; unsigned unused0 : 1; unsigned lradc_sample_rate : 2; unsigned levelb_vol. : 2; unsigned lradc_channel_en : 1; unsigned lradc_hold_key_en : 1; unsigned levela_b_cnt : 4; unsigned key_mode_select : 2; unsigned unused1 : 2; unsigned continue_time_select : 4; unsigned unused2 : 4; unsigned first_convert_dly : 8; } b; unsigned long w; } LRADC_CTRL |
![]() |