發表文章

目前顯示的是 12月, 2025的文章

EC - ADC

圖片
  ADC An analog-to-digital converter converts an input linear voltage (from 0V to the highest input voltage) into a corresponding digital value (0-2). T (T = number of bits), allowing the program to perform corresponding work based on the digital voltage value. The input conversion voltage of an EC ADC is typically from 0V to VREF (AVCC), unlike a MCU where the input conversion voltage range can be adjusted, for example, from 0V to 1/2 AVCC. EC ADCs are used to detect battery voltage and temperature, as well as system voltage and current, to calculate the system's power consumption. The block diagram of the ADC is as follows: ADC has three operating modes: Software-Triggered, Timer-Triggered, and Scan. Software-triggered means that the ADC is triggered by software to perform linear voltage-to-digital conversion; Timer - Triggered means that the ADC is triggered by a timer to perform a linear voltage-to-digital conversion; Scan - The ADC performs a linear voltage-to-digital conversi...

ACPI EC SCI Event

ACPI EC SCI-Event Description In a job system, a trigger event initiates the system, and different trigger events execute different tasks. If no event is triggered, the job system will remain in a static waiting state, and then enter a power-saving or sleep state. Therefore, when the EC device receives a trigger event (such as AC power plugging in), the EC will use SCI (System Control Interrupt) to generate an interrupt, start the operating system, and the ACPI EC Driver will be started by the operating system. It will use command 84H to obtain the SCI Event number, and then execute the corresponding event using the event number. In EC (Embedded Controller) firmware, there are two important system events: power management events and timing events. They serve as power status notifications and timing event notifications, respectively. Power Management Event: System Power Status Change Notification This is an event that EC Firmware uses to notify the operating system when the system power...