Microcomputer Endian Mode Switching via Flash Memory
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Microcomputers require external terminals for endian selection, limiting the availability of pins for other uses and preventing users from dynamically changing between big-endian and little-endian modes internally.
Innovation Solution
Incorporating a data transfer circuit that reads and supplies endian information from flash memory areas specific to user boot and user modes to the CPU before reset release, eliminating the need for external terminals and allowing seamless mode switching.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If external terminals are used for endian selection, then endian mode can be selected, but the number of available pins is reduced
Solution Approach 1:
The patent extracts the endian selection function from external terminals and relocates it to internal memory storage. The endian information is stored in flash memory areas (user boot area or user area) and automatically read by the data transfer circuit, eliminating the need for external terminal pins while preserving the endian selection capability.
Solution Approach 2:
The system performs self-configuration by automatically reading endian information from flash memory during startup. The data transfer circuit autonomously retrieves the endian setting based on operation mode and supplies it to the CPU without requiring external terminal input, enabling the system to configure itself.
2Adaptability or versatility
If external terminals are used for endian selection, then endian mode can be changed, but users cannot dynamically switch modes during operation
Solution Approach 1:
The patent implements dynamic endian mode switching by storing different endian information in different flash memory areas corresponding to different operation modes. The data transfer circuit dynamically selects which endian information to read based on the current operation mode, allowing the system to adaptively change endian settings during operation without external terminal intervention.
Solution Approach 2:
The endian information is pre-stored in flash memory areas before operation. The data transfer circuit reads the appropriate endian information in advance based on the operation mode and supplies it to the CPU before reset release, enabling seamless mode switching without requiring external terminal configuration at the time of mode change.
3Adaptability or versatility
If endian information is stored in external terminals, then endian selection is possible, but the information is vulnerable to deletion or restriction
Solution Approach 1:
The patent embeds the endian information storage within the flash memory structure, nesting it within specific address spaces (user boot area or user area). This nested storage approach integrates the endian information protection into the existing memory architecture, making it resistant to external deletion or restriction while maintaining accessibility for legitimate operations.
Solution Approach 2:
The endian information is pre-stored in protected flash memory areas during manufacturing or initial setup. This preliminary action ensures the information is securely stored before any operation occurs, and the data transfer circuit is configured to read from these protected areas, preventing accidental deletion or unauthorized modification during normal operation.
Data Source
AI summary
There is a need to provide a microcomputer capable of eliminating an external terminal for endian selection. Flash memory includes a user boot area for storing a program executed in user boot mode and corresponding endian information and a user area for storing a program executed in user mode and corresponding endian information. A data transfer circuit reads endian information stored in the user boot area or the user area in accordance with operation mode and supplies the endian information to a CPU before reset release of the CPU. Accordingly, an external terminal for endian selection can be eliminated.


