Level Setting Method and Electronic Device
개요
발명자
Zhongkai Hu
IPC 분류
CPC 분류
Embodiments of this disclosure are applied to the field of circuit control, and provide a level setting method and an electronic device. When determining that a keyboard is in an off state, an electronic device configures level statuses of all output pins in the keyboard to a first level, to avoid existence of a potential difference between an input pin and an output pin. When the keyboard is in an on state, the electronic device configures levels of all the output pins corresponding to keys on the keyboard to a second level or a third level. When the levels of the output pins are the second level or the third level, the keyboard can generate an interrupt properly when receiving a user's operation of pressing a key, so that the electronic device can determine, based on the interrupt, the key pressed by the user.
원문 (중국어)
Embodiments of this disclosure are applied to the field of circuit control, and provide a level setting method and an electronic device. When determining that a keyboard is in an off state, an electronic device configures level statuses of all output pins in the keyboard to a first level, to avoid existence of a potential difference between an input pin and an output pin. When the keyboard is in an on state, the electronic device configures levels of all the output pins corresponding to keys on the keyboard to a second level or a third level. When the levels of the output pins are the second level or the third level, the keyboard can generate an interrupt properly when receiving a user's operation of pressing a key, so that the electronic device can determine, based on the interrupt, the key pressed by the user.