SPI (Serial Peripheral Interface) controller and communication method for SPI controller
A technology of controller and receiving control, which is applied in the direction of instrumentation, electrical digital data processing, etc., can solve problems such as loss, inflexibility, and data transmission misalignment, so as to ensure accuracy and reliability, meet the requirements of operation sequence, and adapt to the scope wide range of effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0061] #define HWREG(x)
[0062] (*((volatile unsigned long*)(x)))
[0063] / / Definition of a function that writes data at an address
[0064] #define SPI_Delay 0x40000000
[0065] / / Define the register address of the delay sending register 25
[0066] HWREG(SPI_Delay) = 0x108;
[0067] / / Write 0x108 (binary number 9'b100001000) on SPI_Delay (delayed sending register address), the 25 bit field [8] control position of the delayed sending register is 1, and the delayed sending is enabled, and the bit field [7:0] is 8'b00001000, representing a delay of 8 clocks.
no. 2 example
[0069] #define HWREG(x)
[0070] (*((volatile unsigned long*)(x)))
[0071] / / Definition of a function that writes data at an address
[0072] #define SPI_Delay 0x40000000
[0073] / / Define the register address of the delay sending register 25
[0074] #define ASSERT(expr)
[0075] / / ASSERT function to define
[0076] #define DELAYE 0x00000100
[0077] / / Delayed sending register 25 delayed sending enable to define
[0078] void
[0079] Delay(unsigned long n)
[0080] {
[0081] ASSERT((n>=0)&&(n<=255));
[0082] / / Check whether the variable is greater than or equal to 0, or less than or equal to 255, and whether it is within the range of the delayed sending count
[0083] HWREG(SPI_Delay) = n;
[0084] / / Delay n clocks
[0085] HWREG(SPI_Delay)|=DELAYE;
[0086] / / delay send enable
[0087] }
[0088] After the...
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