KR100302586B1 - Method for switching powerdown and sleep mode of pc card ata card - Google Patents

Method for switching powerdown and sleep mode of pc card ata card Download PDF

Info

Publication number
KR100302586B1
KR100302586B1 KR1019980010757A KR19980010757A KR100302586B1 KR 100302586 B1 KR100302586 B1 KR 100302586B1 KR 1019980010757 A KR1019980010757 A KR 1019980010757A KR 19980010757 A KR19980010757 A KR 19980010757A KR 100302586 B1 KR100302586 B1 KR 100302586B1
Authority
KR
South Korea
Prior art keywords
card
input
power down
command
interrupt
Prior art date
Application number
KR1019980010757A
Other languages
Korean (ko)
Other versions
KR19990076094A (en
Inventor
임정기
Original Assignee
김영환
현대반도체 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 김영환, 현대반도체 주식회사 filed Critical 김영환
Priority to KR1019980010757A priority Critical patent/KR100302586B1/en
Publication of KR19990076094A publication Critical patent/KR19990076094A/en
Application granted granted Critical
Publication of KR100302586B1 publication Critical patent/KR100302586B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30076Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP
    • G06F9/30083Power or thermal control instructions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3281Power saving in PCMCIA card

Abstract

PURPOSE: A power down and sleep mode conversion method is provided to directly monitor if an ATA(AT Attachment) command is input from a host computer and to be converted into a power down mode by a program routine embedded in a PC card ATA cars in the case that the ATA command is not input for a set time so that it can regulate a mode conversion time which can be different in each host computer. CONSTITUTION: The method comprises steps of a controller maintaining an operation until an interrupt demanded by a program is input, and determining if an interrupt demanded by the program is input(ST1), the controller starting to count by using a timer embedded in a microprocessor of a card at the time when the final ATA command occurs in the case that an interrupt or an ATA command is not input(ST2), the controller determining if a set time has passed, and then changing a memory control register within the microprocessor in the case that a set time has passed(ST3), and the controller entering into a power down mode by setting the 22th bit, a power down mode set bit, of a memory control register(ST4).

Description

피씨 카드 에이티에이 카드의 파워다운 및 슬립모드 전환 방법{METHOD FOR SWITCHING POWERDOWN AND SLEEP MODE OF PC CARD ATA CARD}METHOD FOR SWITCHING POWERDOWN AND SLEEP MODE OF PC CARD ATA CARD}

본 발명은 피씨 카드(PC CARD) 에이티에이(ATA : AT Attachment) 카드의 파워 다운 및 슬립 모드 구현에 관한 것으로, 특히 호스트 컴퓨터로 부터 아무런 동작이 취해지지 않고 있을 경우, 카드 자체내의 타이머를 카운팅하여 일정시간이 지나면 파워 다운 및 슬립모드가 되게 함으로써, 모드 전환에 걸리는 시간을 줄일 수 있도록 하는 피씨 카드 에이티에이 카드의 파워다운 및 슬립모드 전환 방법에 관한 것이다.The present invention relates to power down and sleep mode implementation of a PC CARD AT Attachment (ATA) card. In particular, when no action is taken from the host computer, a timer in the card itself is counted. The present invention relates to a power-down and sleep mode switching method of a PC-Card AT card that allows a power-down and sleep mode to be reduced after a predetermined time, thereby reducing the time required for mode switching.

도1은 일반적인 피씨 카드 에이티에이 카드의 블록 구성도로서, 이에 도시된 바와 같이 카드의 동작 특성에 따라 그에 관련된 데이터 또는 프로그램을 저장하는 메모리부(20)와; 상기 메모리부(20) 및 카드의 전반적인 동작을 제어하는 제어부(10)로 구성되며, 또한 상기 제어부(10)는 호스트 컴퓨터와 카드간의 주소 및 데이터 등 제어신호를 수수하는 인터페이스부(10a)와; 상기 인터페이스부(10a)를 통하여 입력되는 호스트 컴퓨터의 에이티에이 명령코드를 저장하는 테스크파일 레지스터부(10b)와; 상기 에이티에이 명령중 주소 등에 관한 데이터를 저장하는 버퍼부(10e)와; 상기 인터페이스부(10a)를 통하여 입력되는 카드의 환경설정 및 기능 데이터를 받아 세팅되는 펑션 레지스터부(10c)와; 상기 메모리부(20)와 각종 데이터 및 제어신호를 수수하고 에러를 정정하는 메모리 제어부(10d)와; 상기 모든 레지스터부(10a∼10e)와 제어신호를 수수하여 상태를 판단하고, 그에 따라 제어부내의 동작을 제어하는 마이크로 프로세서(10f)로 구성된다.FIG. 1 is a block diagram of a general PC Card AT card. The memory unit 20 stores data or programs related thereto according to operating characteristics of the card, as shown therein; And a control unit 10 for controlling the overall operation of the memory unit 20 and the card. The control unit 10 further includes an interface unit 10a for receiving control signals such as addresses and data between the host computer and the card; A task file register unit (10b) for storing the AT command code of the host computer inputted through the interface unit (10a); A buffer unit 10e for storing data relating to an address, etc. of the AT command; A function register unit (10c) configured to receive and set environment setting and function data of a card input through the interface unit (10a); A memory controller (10d) which receives the memory unit (20) and various data and control signals and corrects errors; It consists of the microprocessor 10f which receives all the said register parts 10a-10e and a control signal, determines a state, and controls the operation | movement in a control part accordingly.

이와 같이 구성된 피씨 카드 에이티에이 카드에 있어서, 파워 다운 명령이 발생하여 카드의 모드를 전환하는 종래의 동작을 도2의 흐름도를 참조하여 설명하면 다음과 같다.In the PC card A card configured as described above, a conventional operation of switching the mode of the card by generating a power down command will be described with reference to the flowchart of FIG.

호스트 컴퓨터로 부터 인터페이스부(10a)를 통하여 테스크파일 레지스터부(10b)에 어떠한 명령도 출력하지 않고 일정 시간(여기서, 일정 시간은 운용 시스템에 따라 달라진다.)이 지나면, 파워 다운 명령이 발생하고 테스크파일 레지스터부(10b)의 상태 레지스터에서 비지 비트를 셋트시키면, 이에 따라 마이크로 프로세서(10f)가 인터럽트에 걸리게 되고, 상기 마이크로 프로세서(10f)는 인터럽트 동작 루틴에 의해 피씨 카드 에이티에이 카드를 파워 다운 모드로 전환시킨다.After a certain period of time (here, the predetermined time varies depending on the operating system) without outputting any command from the host computer to the task file register section 10b via the interface section 10a, a power-down command occurs and the task When the busy bit is set in the status register of the file register section 10b, the microprocessor 10f is interrupted accordingly, and the microprocessor 10f uses the interrupt operation routine to turn the PC card AID card into a power down mode. Switch to

여기서, 슬립모드란 전력소모를 파워 다운 모드보다 더 줄이기 위해 클럭을 오프시키는 것으로, 역시 파워 다운 모드와 마찬가지로 타이머에 의해 일정시간을 점검하여 항상 파워 다운 모드를 거쳐 들어가게 되고, 외부의 리셋 또는 인터럽트에 의해서만 액티브 모드로 깨어나게 된다.Here, the sleep mode is to turn off the clock in order to reduce the power consumption more than the power down mode, and like the power down mode, it checks for a certain time by a timer and always goes through the power down mode. Only wake up to active mode.

그러나, 상기 종래의 방법에 있어서는 모든 파워 다운 관련 명령이 호스트 컴퓨터로 부터 출력되기 때문에 피씨 카드 에이티에이 카드는 호스트 컴퓨터의 운용 시스템에 따라 액티브 모드로 부터 파워 다운 모드 까지의 타이밍이 매번 달라지고, 또한 파워 다운 명령을 입력받는 피씨 카드 에이티에이 카드는 테스크파일 레지스터에 명령 코드를 셋팅한 후 다시 카드 내부의 마이크로 프로세서가 인식해야 하는 과정을 거치게 되어 모드 전환시 많은 딜레이 타임이 발생 되는 문제점이 있었다.However, in the conventional method, since all the power-down related commands are output from the host computer, the timing of the PC card AT card varies from the active mode to the power-down mode every time according to the operating system of the host computer. The PC Card AT card that receives the power down command has a process that must be recognized by the microprocessor inside the card after setting the command code in the task file register, causing a large delay time when switching modes.

따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 창출한 것으로, 피씨 카드 에이티에이 카드에 입력되는 에이티에이 명령이 없으면 마이크로 프로세서의 자체내에 내장된 타이머에 의해 일정시간이 경과하면 인터럽트가 걸리고, 그에 따라 파워 다운 모드로 빠르게 전환시킴으로써 딜레이 타임을 줄일 수 있도록 하는 피씨 카드 에이티에이 카드의 파워다운 및 슬립모드 전환 방법을 제공 하는데 그 목적이 있다.Therefore, the present invention has been created to solve the above-mentioned conventional problems. If there is no AT command input to the PC Card AT card, an interrupt is generated when a predetermined time has elapsed by a timer built in the microprocessor itself. The purpose of the present invention is to provide a power-down and sleep-mode switching method of the PC Card AT card, which reduces the delay time by quickly switching to the power-down mode.

도1은 일반적인 피씨 카드 에이티에이 카드의 블록 구성도.1 is a block diagram of a general PC Card AT card.

도2는 종래의 피씨 카드 에이티에이 카드의 파워다운 및 슬립모드 전환 방법의 동작 흐름도.Fig. 2 is an operation flowchart of a power down and sleep mode switching method of a conventional PC card AT card.

도3은 본 발명 피씨 카드 에이티에이 카드의 파워다운 및 슬립모드 전환 방법의 동작 흐름도.Figure 3 is a flow chart of the operation of the power down and sleep mode switching method of the present invention.

이와 같은 목적을 달성하기 위한 본 발명 피씨 카드 에이티에이 카드의 파워다운 및 슬립모드 전환 방법은, 프로그램이 요구하는 인터럽트가 입력될 때 까지 제어부의 동작을 그대로 유지시키고 있다가 프로그램이 요구하는 인터럽트가 입력되는지를 판단하는 제1 단계와; 상기 제1 단계에서 인터럽트 또는 에이티에이 명령이 없을시 마지막 에이티에이 명령이 발생된 시점에서 카운팅을 시작하는 제2 단계와; 상기 제2 단계에서 카운팅을 시작하여 일정시간이 지났는지를 판단하여 일정시간이 지났으면 마이크로 프로세서 내부의 메모리 제어 레지스터를 변경하는 제3 단계와; 상기 제3 단계에서 메모리 제어 레지스터가 변경되었으면 파워 다운 모드로 전환되는 제4 단계로 이루어짐으로써 달성되는 것으로, 본 발명에 따른 실시예를 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다.In order to achieve the above object, in the power down and sleep mode switching methods of the present invention, the PC Card AT card maintains the operation of the control unit until the interrupt required by the program is input, and the interrupt required by the program is input. Determining a first step; A second step of starting counting when a last AT command is generated when there is no interrupt or AT command in the first step; A third step of starting counting in the second step to determine whether a predetermined time has elapsed and changing a memory control register inside the microprocessor if the predetermined time has elapsed; When the memory control register is changed in the third step, it is achieved by the fourth step of switching to the power down mode. An embodiment according to the present invention will be described in detail with reference to the accompanying drawings.

도3은 본 발명 피씨 카드 에이티에이 카드의 파워다운 및 슬립모드 전환 방법의 동작 흐름도로서, 이에 도시한 바와 같이 프로그램이 요구하는 인터럽트가 입력될 때 까지 제어부는 그 동작을 그대로 유지시키고 있다가 프로그램이 요구하는 인터럽트가 입력되는지를 판단한다(ST1).FIG. 3 is a flowchart illustrating a method for switching a power down and sleep mode of the present invention, a PC card AAA card. As shown in FIG. 3, the control unit maintains the operation until the interrupt required by the program is input. It is determined whether a request interrupt is input (ST1).

다음, 상기 단계(ST1)에서 인터럽트 또는 에이티에이 명령이 없을시 마지막 에이티에이 명령이 발생된 시점에서 카드 내부의 마이크로프로세서에 내장된 타이머에 의해 카운팅을 시작한다(ST2).Next, when there is no interrupt or AI command in step ST1, counting is started by a timer embedded in a microprocessor inside the card at the time when the last AI command is generated (ST2).

즉, 인터럽트 또는 에이티에이 명령이 발생되면 그 시점부터 언제나 카운팅을 시작하여 일정 시간을 카운팅하기 때문에, 그 시간이 경과되기 전에 에이티에이 명령이 입력되어야만 하는 것이다.In other words, if an interrupt or an AT command occurs, counting starts from the time at which point, and the AT command must be input before the time elapses.

따라서, 상기와 같이 매 명령 입력과 동시에 카운팅을 시작하여 일정시간이 지났는지를 판단하여 일정시간이 지났으면 마이크로 프로세서 내부의 메모리 제어 레지스터를 변경한다(ST3).Accordingly, as described above, counting starts at the same time as every instruction input and determines whether a predetermined time has elapsed, and when a predetermined time has elapsed, the memory control register inside the microprocessor is changed (ST3).

다음, 상기 단계(ST3)에서 메모리 제어 레지스터가 변경되었으면 파워 다운 모드로 전환되는 것이다(ST4).Next, when the memory control register is changed in the step ST3, the power control mode is switched (ST4).

다시 말해, 피씨 카드 에이티에이 카드가 어떤 동작도 취해지지 않을 때 마이크로 프로세서(10f) 내부의 타이머가 카운팅을 하여 일정 시간이 지나면 하드웨어적으로 엠씨알(MCR : memory control register)의 22번째 비트(파워 다운모드 설정 비트)를 셋트 시키게 되고, 마이크로 프로세서는 상기 비트가 셋트되면 파워 다운 모드로 들어간다.In other words, the timer inside the microprocessor 10f counts when the PC Card A / C card does not take any action, and if a certain time passes, the 22nd bit of the memory control register (MCR) (power Down mode setting bit), and the microprocessor enters the power down mode when the bit is set.

그리고, 파워 다운 모드에서 다시 액티브 상태로 전환하기 위해서는 데이터 요구(DATA Request) 등에 의한 인터럽트에 의해 깨어난다.Then, in order to switch back to the active state from the power-down mode, it wakes up by an interrupt by a data request or the like.

이상에서 설명한 바와 같이 본 발명 피씨 카드 에이티에이 카드의 파워다운 및 슬립모드 전환 방법은 호스트 컴퓨터로 부터 파워 다운 신호를 입력받지 않고, 직접 에이티에이 명령 입력여부를 감시하여 일정시간 동안 명령이 입력되지 않을 경우, 피씨 카드 에이티에이 카드의 자체 프로그램 루틴에 의해 파워 다운 모드로 전환됨으로써, 호스트 컴퓨터마다 다를 수 있는 모드 전환시간이 일정하게 되어 딜레이 타임이 없어지고, 카드의 안정성 향상 및 에너지를 절약할 수 있는 효과가 있다.As described above, in the method of switching the power down and sleep modes of the present invention, the PC card AT card does not receive a power down signal from the host computer, and monitors whether the command is directly inputted so that the command is not input for a predetermined time. In this case, by switching to the power-down mode by the PC Card AT card's own program routine, the mode switching time, which may be different for each host computer, becomes constant, eliminating delay time, improving the stability of the card, and saving energy. It works.

Claims (1)

프로그램이 요구하는 인터럽트가 입력될 때 까지 제어부의 동작을 그대로 유지시키고 있다가 프로그램이 요구하는 인터럽트가 입력되는지를 판단하는 제1 단계와; 상기 제1 단계에서 인터럽트 또는 에이티에이 명령이 입력된 후 다음 명령이 입력될 때 까지 내부 타이머에 의해 카운팅을 수행하는 제2 단계와; 상기 제2 단계에서 카운팅을 시작하여 일정시간이 지났는지를 판단하여 일정시간이 지났으면 마이크로 프로세서 내부의 메모리 제어 레지스터를 변경하는 제3 단계와; 상기 제3 단계에서 메모리 제어 레지스터가 변경되었으면 파워 다운 모드로 전환되는 제4 단계로 이루어진 것을 특징으로 하는 피씨 카드 에이티에이 카드의 파워다운 및 슬립모드 전환 방법.Maintaining the operation of the control unit until an interrupt requested by the program is input and determining whether an interrupt requested by the program is input; A second step of performing counting by an internal timer until the next command is input after the interrupt or the A command is input in the first step; A third step of starting counting in the second step to determine whether a predetermined time has elapsed and changing a memory control register inside the microprocessor if the predetermined time has elapsed; And a fourth step of switching to a power down mode when the memory control register is changed in the third step.
KR1019980010757A 1998-03-27 1998-03-27 Method for switching powerdown and sleep mode of pc card ata card KR100302586B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980010757A KR100302586B1 (en) 1998-03-27 1998-03-27 Method for switching powerdown and sleep mode of pc card ata card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980010757A KR100302586B1 (en) 1998-03-27 1998-03-27 Method for switching powerdown and sleep mode of pc card ata card

Publications (2)

Publication Number Publication Date
KR19990076094A KR19990076094A (en) 1999-10-15
KR100302586B1 true KR100302586B1 (en) 2001-10-19

Family

ID=37529569

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980010757A KR100302586B1 (en) 1998-03-27 1998-03-27 Method for switching powerdown and sleep mode of pc card ata card

Country Status (1)

Country Link
KR (1) KR100302586B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970062323A (en) * 1996-02-09 1997-09-12 아이. 칼리나 알렉산더 How to convert heat into useful energy

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970062323A (en) * 1996-02-09 1997-09-12 아이. 칼리나 알렉산더 How to convert heat into useful energy

Also Published As

Publication number Publication date
KR19990076094A (en) 1999-10-15

Similar Documents

Publication Publication Date Title
US6266776B1 (en) ACPI sleep control
US8117475B2 (en) Direct memory access controller
US6308279B1 (en) Method and apparatus for power mode transition in a multi-thread processor
EP1742143B1 (en) Method and system for power consumption management, and corresponding computer program product
US7681057B2 (en) Power management of non-volatile memory systems
EP0666525B1 (en) Method and apparatus for control of power consumption in a computer system
US6092209A (en) Method and apparatus for managing power consumption of peripheral devices of personal computers
EP1508081B1 (en) Method and apparatus for providing a decoupled power management state
US5551044A (en) Method and apparatus for interrupt/SMI# ordering
US5625807A (en) System and method for enabling and disabling a clock run function to control a peripheral bus clock signal
CN1710548A (en) Semiconductor integrated circuit and power-saving control method thereof
KR20110038036A (en) Sleep processor
WO2011118487A1 (en) Information processing device and power supply control circuit
US20030005340A1 (en) Power management for a pipelined circuit
KR100302586B1 (en) Method for switching powerdown and sleep mode of pc card ata card
CN114020138B (en) Micro control unit chip and method for reducing electric quantity consumption
US20030088724A1 (en) Asynchronous bus interface apparatus
EP0783148A2 (en) Power conserving clocking system
US20040044916A1 (en) Microcontroller
JPH0883133A (en) Computer system and clock control method for the same
CN111176409B (en) Universal power consumption control circuit, system and method capable of being programmed online
CN114296800A (en) Circuit and method for flexibly setting delay time between instructions in CPU
JP2000347772A (en) Power consumption reduction control method for processor to be used for portable information equipment
CN112988228A (en) Control method and architecture for processor interrupt
JPH0588775A (en) System for switching clock

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20050621

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee