Method for controlled locking/unlocking of a system using a locking mode flag during an interrupt routine
First Claim
Patent Images
1. A method of controlling a locking/unlocking operation of a system comprising the steps of:
- checking in an interrupt routine if a locking mode clear execution flag is set;
if said locking mode clear execution flag is set, clearing said locking mode clear execution flag, checking whether a main routine of the system is ready to be unlocked again, and clearing said locking mode execution flag if said main routine of the system is ready to be unlocked again;
if said locking mode clear execution flag is not set, determining if a register value of a locking timer is greater than a predetermined value;
if said register value of said locking timer is not greater than said predetermined value, exiting said interrupt routine;
if said register value of said locking timer is greater than said predetermined value, clearing said locking timer register, checking whether the main routine of the system is ready to be unlocked again, and clearing said locking mode execution flag if said main routine of the system is ready to be unlocked again.
0 Assignments
0 Petitions
Accused Products
Abstract
A power controlling apparatus turns off a power to an apparatus whose connection to a central apparatus has been cut by a connection change, thus selectively turning off a power to an apparatus not required by the central apparatus. A locking/unlocking apparatus determines a value of the locking timer in the interrupt timer routine and, when the value has exceeded a predetermined level, takes a slave apparatus out of the locked state, thereby simplifying programming.
15 Citations
3 Claims
-
1. A method of controlling a locking/unlocking operation of a system comprising the steps of:
-
checking in an interrupt routine if a locking mode clear execution flag is set; if said locking mode clear execution flag is set, clearing said locking mode clear execution flag, checking whether a main routine of the system is ready to be unlocked again, and clearing said locking mode execution flag if said main routine of the system is ready to be unlocked again; if said locking mode clear execution flag is not set, determining if a register value of a locking timer is greater than a predetermined value; if said register value of said locking timer is not greater than said predetermined value, exiting said interrupt routine; if said register value of said locking timer is greater than said predetermined value, clearing said locking timer register, checking whether the main routine of the system is ready to be unlocked again, and clearing said locking mode execution flag if said main routine of the system is ready to be unlocked again. - View Dependent Claims (2, 3)
-
Specification