A Method of Extending the Hardware Timer of Single Chip Microcomputer
A hardware timer and single-chip technology, applied in instruments, simulators, computer control, etc., can solve the problems of cluttered software structure and difficult software maintenance, and achieve the goal of writing software code with simple structure, flexible use, and meeting the needs of time control. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0022] The technical solution of the present invention will be further described in detail below in conjunction with the accompanying drawings, but the protection scope of the present invention is not limited to the following description.
[0023] A method for extending a single-chip hardware timer, comprising the following steps:
[0024] S1: Define the timing information structure type. The timing information type is a structure type including time value variables and message value variables. It is agreed that when the message value variable is 0, it means that the timing information is invalid;
[0025] S2: Define a timing information array for storing timing information. When initializing the timing information array, set the message value variable of each component to 0;
[0026] S3: Define the reference time variable, which is used to add 1 in the hardware timer interrupt service routine as the reference time for the entire timer extension;
[0027] S4: Set the interru...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com