CAN bus communication module design method based on dual-port RAM communication in Windows system
A CAN bus and communication module technology, applied in the Windows system field, can solve the problems of not providing a data buffer mechanism, unable to solve the speed mismatch between the host end and the CAN bus board, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0130] The present embodiment provides a CAN bus communication module design method based on dual-port RAM communication under a Windows system, including:
[0131] (1) Divide the dual-port RAM address space, and divide the dual-port RAM into six address areas for the basic information area of the board, the sending and receiving buffer start address storage area of the CAN channel, the command update flag area of the CAN channel, The command area of the CAN channel, the feedback status area of the CAN channel, the error flag area of the CAN channel, and the allocation of signal light resources;
[0132] (2) Initialize the CAN bus board, initialize hardware resources, and set interrupts;
[0133] (3) The main process of the communication module is to query and send CAN bus data and interrupt receiving processing. At the same time, set the working mode of the communication module according to the upper layer application command.
[0134] The steps (1), (2) realize...
Embodiment 2
[0137] like figure 1 As shown, in order to solve the CAN bus driver problem under the Windows system, this embodiment adopts an implementation method based on dual-port RAM communication. The content of this embodiment will be further described below.
[0138] 1. Divide the dual-port RAM address space
[0139] 1) The principle of using even addresses to store data, the smallest unit of memory address division is double bytes.
[0140] 2) Divide the memory address space into 6 intervals:
[0141] ① Board basic information area: used to store the board name, board number, memory size, dual-port RAM size and length, software version number, self-test result information of the board, board running status, self-test result, and working mode;
[0142] ②CAN channel sending and receiving buffer starting address storage area: used to store the starting address of the sending buffer area and the starting address of the sending buffer area of each CAN channel;
[0143] ③The command...
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