Abstract:
In a custom code setting system of a remote control chip, M keyboard input/output pins are connected to an external keyboard to receive the input of the external keyboard. A first pin is connected to one terminal of an external resistor, while the other terminal of the external resistor is connected to ground, wherein there are N resistance values selectable for the external resistor. A resistance detecting unit is connected to the first resistor to detect the resistance of the first resistor. A second pin is connected to one of the M keyboard input/output pins for setting a custom code. When power on reset occurs, a control logic receives the resistance from the resistance detecting unit, and one of the N×M custom codes is determined according to connection between the second pin and one of the M keyboard input/output pins.
Abstract:
The invention relates to a power saving method in a sleep mode and a keyboard controller using the same. The method is adapted for a triangular-type scan keyboard controller including a plurality of input/output (I/O) pins. The method includes the steps of: providing a first clock source and a second clock source, wherein the frequency of the second clock source is much lower than the frequency of the first clock source. In a normal mode, a scan pulse is sequentially outputted from the I/O pins according to the frequency of the first clock source. In a sleep mode, the scan pulse is sequentially outputted from the I/O pins according to the frequency of the second clock source. When a specific one of the I/O pins outputs the scan pulse, the other I/O pins are used for detecting.