Usb controller and execution method thereof
AssigneePixart Imaging Inc.
InventorsBi Hue Lin, Hsiang Sheng Liu
Life of this patent
Estimating the term…
Abstract
A universal serial bus (USB) controller and an execution method thereof are presented. The USB controller stores settings of different sensors in an external memory, or stores modified program codes when an originally stored program has bugs. With the execution of the set configurations, the program section to be execute is dynamically loaded into the random access memory (RAM) of the USB controller, so as to reduce the size of the RAM, thereby providing a large program modification space and avoiding the entire chip (the USB controller) from being stretched by an excessive large RAM.
Claims19
An execution method of universal serial bus (USB) controller, applied in the USB controller, wherein the USB controller has a read-only memory (ROM) and a random access memory (RAM), the execution method of the USB controller comprising:
- executing a first program in the ROM;
- detecting an external memory electrically connected to the USB controller according to program flow of the first program, wherein the external memory stores a second program, and the second program is composed of a plurality of sections;
- jumping to execute the second program from executing the first program when it is detected that the USB controller is electrically connected to the external memory, comprising:
- loading one of the sections of the second program from the external memory into the RAM;
- executing the section of the second program loaded into the RAM;
- and
- repeating the step of loading one of the sections of the second program from the external memory into the RAM and the step of executing the section of the second program, till completing the execution of the second program;
- and
- jumping to execute the first program after completing the execution of the second program.
A universal serial bus (USB) controller, selectively electrically connected to a external memory storing a second program, the USB controller comprising:
- a read-only memory (ROM), for storing a first program;
- a random access memory (RAM);
- and
- a processing unit, for executing the first program and detecting the external memory according to a program flow of the first program during the execution of the first program;
- wherein the second program is divided into a plurality of sections, and when the processing unit detects the external memory, the processing unit loads one of the sections of the second program to the RAM from the external memory, and jumps to execute the section of the second program in the RAM from executing the first program.
Dependencies are inferred from the claim text.