Flash memory access control circuit, method and device
By using two switch circuits and control signals in the head-up display device, it is ensured that only one of the control chip, image correction chip and SOC sensor correction chip is connected to the flash memory, which solves the problem of data confusion caused by simultaneous access of multiple chips and realizes the function Normal operation and low cost effect.
Patent Information
- Application Number
- CN202410221138.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-02-28
AI Technical Summary
In the head-up display device, when the control chip, image correction chip and SOC sensor correction chip access the flash memory at the same time, the data in the flash memory is confused and the corresponding functions cannot be completed.
Design an access control circuit for flash memory. Through two switch circuits and control signals, only one of the control chip, image correction chip and SOC sensor correction chip is connected to the flash memory at the same time to avoid data confusion caused by simultaneous access by multiple chips.
It effectively avoids the problem of data confusion in the flash memory and ensures that the control chip, image correction chip and SOC sensor correction chip can normally complete their functions. The circuit design is simple and the cost is low.
Smart Images

Figure CN118092798B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer hardware technology, and in particular, to a flash memory access control circuit, method, and device. Background Art
[0002] The Head Up Display (HUD) device projects the light of the display image output by the image source onto an imaging window (e.g., an imaging board, a windshield, etc.) through, for example, a reflective optical design, so as to display vehicle status information such as vehicle speed and fuel level, as well as indication information such as navigation and hazard warnings, at an appropriate position in front of the driver. This allows the driver to obtain relevant information such as vehicle speed and fuel level without shifting his line of sight away from the road ahead, thereby improving the driving safety factor and driving experience.
[0003] In the design of head-up display, there may be a situation where the control chip, image correction chip and SOC sensor correction chip all need to access the flash memory. However, if the control chip, image correction chip and SOC sensor correction chip all need to access the flash memory, two or three of the three chips may access the flash memory at the same time, resulting in data confusion in the flash memory, making the control chip, image correction chip and SOC sensor correction chip unable to complete their corresponding functions. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure hope to provide a flash memory access control circuit, method, and device; which can solve the problem of data confusion in the flash memory caused by multiple chips among the control chip, image correction chip, and SOC sensor correction chip accessing the flash memory at the same time.
[0005] The technical solution of the embodiment of the present disclosure is implemented as follows:
[0006] In a first aspect, an embodiment of the present disclosure provides an access control circuit for a flash memory, characterized in that it includes a control chip, an image correction chip, a SOC sensor correction chip, a flash memory, and two switch circuits, wherein:
[0007] The control chip is used to provide a control signal;
[0008] The control chip, the image correction chip, and the SOC sensor correction chip are all connected to the flash memory through the two switch circuits;
[0009] The control signal is used to control the switch circuit so that only one of the control chip, the image correction chip, and the SOC sensor correction chip is connected to the flash memory at the same time.
[0010] In some examples, the two switch circuits include a first switch circuit and a second switch circuit;
[0011] The control chip is connected to the flash memory via a first switch circuit;
[0012] The image correction chip is connected to the flash memory through the first switch circuit and the second switch circuit;
[0013] The SOC sensor calibration chip is connected to the flash memory through the first switch circuit and the second switch circuit.
[0014] In some examples, the first input terminal of the first switch circuit is connected to the output terminal of the second switch circuit, the second input terminal of the first switch circuit is connected to the control chip, the output terminal of the first switch circuit is connected to the flash memory, and the control terminal of the first switch circuit is connected to the control chip;
[0015] The first input end of the second switch circuit is connected to the image correction chip, the second input end of the second switch circuit is connected to the SOC sensor correction chip, and the control end of the second switch circuit is connected to the control chip.
[0016] In some examples, the control signal includes a control signal of a first switch circuit and a control signal of a second switch circuit, wherein the control signal of the first switch circuit is used to control the conduction state of the first switch circuit, and the control signal of the second switch circuit is used to control the conduction state of the second switch circuit.
[0017] In some examples, the control signal of the first switch circuit and the control signal of the second switch circuit both include a first control signal and a second control signal;
[0018] In response to the first control signal and the second control signal of the first switch circuit, and the first control signal and the second control signal of the second switch circuit being low level signals, the first input terminal and the output terminal of the first switch circuit are turned on, and the first input terminal and the output terminal of the second switch circuit are turned on, so as to connect the flash memory and the image correction chip; or
[0019] In response to the first control signal of the first switch circuit being at a high level, the second control signal of the first switch circuit being at a low level, and the second control signal of the second switch circuit being at a high level, the second input terminal and the output terminal of the first switch circuit are connected, and the second switch circuit is disconnected, so as to connect the flash memory and the control chip; or
[0020] In response to the first control signal and the second control signal of the first switch circuit, and the second control signal of the second switch circuit being low-level signals, and the first control signal of the second switch circuit being a high-level signal, the first input terminal and the output terminal of the first switch circuit are turned on, and the second input terminal and the output terminal of the second switch circuit are turned on, so as to connect the flash memory and the SOC sensor correction chip.
[0021] In some examples, the switch circuit includes at least the same switch subcircuit, and the switch subcircuit includes:
[0022] A first switch element, having a first end connected to the output end of the switch circuit, a second end connected to the first input end of the switch circuit, and a control end connected to the control chip;
[0023] The second switch element has a first end connected to the output end of the switch circuit, a second end connected to the second input end of the switch circuit, and a control end connected to the control chip.
[0024] In some examples, the switch subcircuit further includes:
[0025] a control signal changing circuit connected between the control end of the first switch element and the control chip, and connected between the control end of the second switch element and the control chip;
[0026] The control signal changing circuit is used to change the control signal so that only one of the first switch element and the second switch element is turned on at the same time.
[0027] In some examples, the control signal includes a first control signal and a second control signal; and the control signal changing circuit includes:
[0028] A first NOT gate, an input terminal of which is connected to the first control signal;
[0029] A first signal transmission switch, wherein the input end is connected to the output end of the first NOT gate, the output end of the first signal transmission switch is connected to the control end of the first switch element, and the enable end is connected to the second control signal;
[0030] a second NOT gate, an input end of which is connected to the second control signal;
[0031] The second signal transmission switch has an input terminal connected to the first control signal, an enable terminal connected to the output terminal of the second NOT gate, and an output terminal of the second signal transmission switch connected to the control terminal of the second switch element.
[0032] In some examples, the control chip uses single-line SPI to connect to the flash memory through the first switch circuit; the image correction chip uses QSPI to connect to the flash memory through the first switch circuit and the second switch circuit; and the SOC sensor correction chip uses QSPI to connect to the flash memory through the first switch circuit and the second switch circuit.
[0033] In a second aspect, an embodiment of the present disclosure provides a method for access control of a flash memory, which is applied to the access control circuit of the flash memory described in the first aspect of the claim, and the method includes: the switching circuit receives a control signal sent by the control chip, and based on the control signal, makes only one of the control chip, image correction chip, and SOC sensor correction chip connected to the flash memory at the same time.
[0034] In some examples, the control signal includes a control signal of a first switch circuit and a control signal of a second switch circuit, and the method includes:
[0035] receiving a control signal of the first switch circuit and a control signal of a second switch circuit;
[0036] determining a conduction state of the first switch circuit according to a control signal of the first switch circuit;
[0037] The conduction state of the second switch circuit is determined according to a control signal of the second switch circuit.
[0038] In some examples, the control signal of the first switch circuit and the control signal of the second switch circuit both include a first control signal and a second control signal, and the method includes:
[0039] In response to the first control signal and the second control signal of the first switch circuit, and the first control signal and the second control signal of the second switch circuit being low level signals, the first input terminal and the output terminal of the first switch circuit are turned on, and the first input terminal and the output terminal of the second switch circuit are turned on, so as to connect the flash memory and the image correction chip; or
[0040] In response to the first control signal of the first switch circuit being at a high level, the second control signal of the first switch circuit being at a low level, and the second control signal of the second switch circuit being at a high level, the second input terminal and the output terminal of the first switch circuit are connected, and the second switch circuit is disconnected, so as to connect the flash memory and the control chip; or
[0041] In response to the first control signal and the second control signal of the first switch circuit, and the second control signal of the second switch circuit being low-level signals, and the first control signal of the second switch circuit being a high-level signal, the first input terminal and the output terminal of the first switch circuit are turned on, and the second input terminal and the output terminal of the second switch circuit are turned on, so as to connect the flash memory and the SOC sensor correction chip.
[0042] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: an access control circuit for the flash memory as described in the first aspect.
[0043] The disclosed embodiments provide a flash memory access control circuit, method, and device; the circuit includes a control chip, an image correction chip, a SOC sensor correction chip, a flash memory, and two switch circuits, wherein the control chip is used to provide a control signal; the control chip, the image correction chip, and the SOC sensor correction chip are all connected to the flash memory through two switch circuits; wherein the control signal is used to control the switch circuit so that only one of the control chip, the image correction chip, and the SOC sensor correction chip is connected to the flash memory at the same time. Compared with the prior art, two switch circuits and control signals can make only one of the control chip, the image correction chip, and the SOC sensor correction chip connected to the flash memory at the same time, which can avoid the technical problem of data confusion in the flash memory caused by multiple chips among the control chip, the image correction chip, and the SOC sensor correction chip needing to access the flash memory at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of the composition of a vehicle-mounted system provided in an embodiment of the present disclosure.
[0045] Figure 2 A schematic diagram of an access control circuit of a first flash memory provided in an embodiment of the present disclosure.
[0046] Figure 3 A schematic diagram of an access control circuit of a second flash memory provided in an embodiment of the present disclosure.
[0047] Figure 4 A schematic diagram of an access control circuit of a third flash memory provided in an embodiment of the present disclosure.
[0048] Figure 5 A circuit structure diagram of a first switching circuit provided in an embodiment of the present disclosure.
[0049] Figure 6 A circuit structure diagram of a second switching circuit provided in an embodiment of the present disclosure.
[0050] Figure 7 A circuit structure diagram of a third switching circuit provided in an embodiment of the present disclosure.
[0051] Figure 8 A flowchart of a flash memory access control method provided by an embodiment of the present disclosure.
[0052] Fig. 9 An exemplary top view of a vehicle provided for the present disclosure.
[0053] Fig.10 An exemplary perspective view from the driver's seat of a vehicle is provided for the present disclosure.
[0054] Fig.11 A schematic diagram of the architecture of a head-up display device provided in the present disclosure.
[0055] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0056] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0057] like Figure 1 As shown, the vehicle-mounted system 100 includes: a navigation subsystem 110, an environment detection device group 120 for obtaining the vehicle's environment during the vehicle's driving, a vehicle driving state detection device group 130, a data processing unit 140, a display control unit 150, and a display unit 160. The above components or device groups are coupled together through a communication bus 12. In some examples, the communication bus 12 is used for connection and communication between the above components or device groups. It should be noted that Figure 1 Only a portion of the in-vehicle system 100 is shown, not all of the components of the in-vehicle system 100 .
[0058] exist Figure 1In the navigation subsystem 110, a positioning device 111 and a map information storage device 112 are included. The positioning device 111 can locate the position of the vehicle based on the global positioning system (GPS), China's Beidou system, Russia's GLONASS system, Europe's Galileo system, Japan's Quasi-Zenith Satellite System (QZSS), India's Indian Regional Navigation Satellite System (IRNSS) and other positioning systems to obtain the position information of the vehicle. The map information storage device 112 stores map information, and can obtain a navigation path leading to the destination according to the position information obtained from the positioning device 111, and display the position information and the navigation path in the map application.
[0059] exist Figure 1 In the embodiment, the environment detection device group 120 may include an on-vehicle communication device 121, a radar 122, a laser rangefinder 123, and a camera 124. These devices can acquire environmental information representing the surrounding environment of the vehicle.
[0060] The vehicle-mounted communication device 121 can communicate wirelessly with one or more devices directly or via a communication network. These devices that can communicate with the vehicle-mounted communication device 121 can be other vehicles, roadside machines or roadside stations, or mobile terminal devices used by the occupants of the vehicle. In some examples, the vehicle-mounted communication device 121 can use 3G cellular communication, such as code division multiple access (CDMA), EVDO, global system for mobile communications (GSM) / general packet radio service (GPRS), or 4G cellular communication, such as long term evolution (LTE), or 5G cellular communication. In some examples, the vehicle-mounted communication device 121 can also communicate with a wireless local area network (WLAN) using WiFi. In some embodiments, the vehicle-mounted communication device 121 can also communicate directly with the device using an infrared link, Bluetooth or ZigBee. In some examples, the vehicle-mounted communication device 121 can also communicate with the device using other wireless protocols.
[0061] The radar 122 is used to sense objects in the surrounding environment of the vehicle, and can also be used to sense the speed and / or direction of these objects. In some examples, the radar 122 can use electromagnetic waves or lasers as a medium to detect objects based on a time of flight (TOF) method or a phase-shift method, and detect the position of the detected object, the distance to the detected object, and the relative speed. In some examples, in order to be able to detect objects located in front of, behind, or to the side of the vehicle, the radar 122 can be configured at an appropriate position outside the vehicle.
[0062] The laser rangefinder 123 may utilize laser light to sense objects in the environment in which the host vehicle is located. In some embodiments, the laser rangefinder 123 may include one or more laser sources, a laser scanner, and one or more detectors, among other system components.
[0063] Camera 124 can be used to capture multiple images of the surrounding environment of the vehicle. Camera 122 can be a static camera or a video camera. In some examples, in order to obtain the external image of the vehicle, camera 122 can be located at an appropriate position outside the vehicle. For example, in order to obtain the image in front of the vehicle, camera 122 can be configured in the interior of the vehicle close to the front windshield. Alternatively, camera 122 can be configured around the front bumper or radiator grille. In some examples, in order to obtain the image behind the vehicle, camera 122 can be configured in the interior of the vehicle close to the rear window glass. Alternatively, camera 122 can be configured around the rear bumper, trunk or tailgate. In some examples, in order to obtain the image of the side of the vehicle, camera 122 can be configured in the interior of the vehicle close to at least one of the side windows. Alternatively, camera 122 can be configured around the side mirrors, fenders or doors.
[0064] exist Figure 1 In the embodiment, the vehicle driving state detection device group 130 may include: a steering angle sensor 131 for detecting the steering angle of the vehicle, a vehicle speed sensor 132 for detecting the driving speed of the vehicle, and an acceleration sensor 133 for detecting the acceleration applied to the vehicle. In some examples, as shown in the dotted box, an inertial sensor 134 for detecting the position and orientation change of the vehicle based on inertial acceleration may also be included. The inertial sensor 134 may be a combination of the acceleration sensor 133 and a gyroscope in a specific implementation process.
[0065] exist Figure 1In the embodiment, the data processing unit 140 can be implemented as a computing system having a memory, a processor, an input / output interface, and a bus connecting these. In some examples, the data processing unit 140 causes the processor to execute multiple commands through program instructions stored in the memory to process the data obtained by the navigation subsystem 110, the environment detection device group 120, and the vehicle driving state detection device group 130. In some examples, the data processing unit 140 can also partially or completely control the driving of the vehicle based on the processed data.
[0066] exist Figure 1 In the figure, as shown in the dotted box, the data processing unit 14, the display control unit 150 and the display unit 160 can serve as the main body of the head-up display (HUD) device 170. The display control unit 150 can process the received data processed by the data processing unit 140, or after receiving the data obtained by the navigation subsystem 110, the environment detection device group 120 and the vehicle driving state detection device group 130, to obtain display information to be displayed, and project the display information onto the windshield of the vehicle through the display unit 160 for display.
[0067] When designing HUD, SPI bus will be used for communication, and multiple hosts will operate the same slave flash memory (FLASH). For example, the host may include a control chip (Microcontroller Unit, MCU) and an image correction chip, a SOC sensor correction chip, etc. The vehicle computer sends image data to the CAN bus of the HUD through the Controller Area Network (CAN) bus, and forwards it to the control chip of the HUD. The MCU writes to the flash memory through the single-wire serial peripheral interface (Serial Peripheral interface, SPI) mode to update the image data stored in the FLASH. The system-level chip (System on Chip, SOC) sensor correction chip obtains external vibration information and processes it, and then writes the information to the slave flash memory through the queued serial peripheral interface (Queued Serial Peripheral Interface, QSPI) bus. The image correction chip reads the image from the flash memory through the QSPI bus and outputs it for display.
[0068] However, when the above-mentioned multiple hosts operate the flash memory, there may be a situation where multiple hosts operate the above-mentioned flash memory at the same time, which will cause data in the flash memory to be confused and cause the multiple hosts to be unable to normally realize their own functions.
[0069] Based on this, the present disclosure first provides an access control circuit for a flash memory, referring to Figure 2 The access control circuit of the flash memory may include a control chip 200, an image correction chip 300, an SOC sensor correction chip 400, a flash memory 500, and two switch circuits 600. The control chip 200 is used to provide a control signal; the control chip 200 and the image correction chip 300 are connected to the flash memory 500 through two switch circuits 600; the control signal is used to control the switch circuit so that only one of the control chip 200, the image correction chip 300, and the SOC sensor correction chip 400 is connected to the flash memory 500 at the same time.
[0070] In some example embodiments, the control chip 200 may be connected to the flash memory 500 through the two switch circuits 600. The control chip 200 may be used to receive image data sent by the vehicle computer through a controller area network (CAN) bus, and write the obtained image data into the flash memory 500. Secondly, the control chip 200 is also used to generate a control signal, which is used to control the conduction state of the two switch circuits 600.
[0071] In some examples, the image correction chip 300 can be connected to the flash memory 500 through the two switch circuits 600. The image correction chip 300 can be used to read images from the flash memory 500 through the QSPI bus and output them for display. That is, the image correction chip 300 can read image data in the flash memory 500, transmit it to the display system, and display it.
[0072] In some examples, the SOC sensor calibration chip 400 can be connected to the flash memory 500 through the two switch circuits 600. The SOC sensor calibration chip 400 can be used to obtain external vibration information and write the information into the slave flash memory 500 through a queued serial peripheral interface (QSPI) bus after processing.
[0073] In some examples, the two switch circuits 600 can respond to the control signal, so that only one of the control chip 200, the image correction chip 300, and the SOC sensor correction chip 400 is connected to the flash memory 500 at the same time, that is, only one can operate the flash memory 500 at the same time. This can avoid the technical problem of data confusion in the flash memory 500 caused by multiple chips operating the flash memory 500 at the same time. In addition, the access control circuit of the flash memory disclosed in the present invention is simple in design and low in cost.
[0074] In some examples, reference Figure 3The above-mentioned two switching circuits 600 may include a first switching circuit 610 and a second switching circuit 620. The control chip 200 is connected to the flash memory 500 through the first switching circuit 610; the image correction chip 300 is connected to the flash memory 500 through the first switching circuit 610 and the second switching circuit 620; the SOC sensor correction chip 400 is connected to the flash memory 500 through the first switching circuit 610 and the second switching circuit 620.
[0075] That is to say, the conduction state of the circuit between the control chip 200 and the above-mentioned flash memory 500 is controlled by the first switch circuit 610, and the conduction state of the circuit between the image correction chip 300 and the flash memory 500 is controlled by the first switch circuit 610 and the second switch circuit 620 at the same time; the conduction state of the circuit between the SOC sensor correction chip 400 and the flash memory 500 is also controlled by the first switch circuit 610 and the second switch circuit 620 at the same time.
[0076] In this example embodiment, the control chip 200 can output two control signals, namely, a control signal of the first switch circuit 610 and a control signal of the second switch circuit 620, wherein the control signal of the first switch circuit 610 is used to control the conduction state of the first switch circuit 610, and the control signal of the second switch circuit 620 is used to control the conduction state of the second switch circuit 620.
[0077] Specifically, refer to Figure 4 The above-mentioned first switch circuit 610 may include a first input terminal, a second input terminal, an output terminal and a control terminal, wherein the first input terminal of the first switch circuit 610 is connected to the output terminal of the second switch circuit 620, the second input terminal of the first switch circuit 610 is connected to the control chip 200, the output terminal of the first switch circuit 610 is connected to the flash memory 500, and the control terminal of the first switch circuit 610 is connected to the control chip 200.
[0078] The above-mentioned second switch circuit 620 may include a first input terminal, a second input terminal, an output terminal and a control terminal, wherein the first input terminal of the second switch circuit 620 is connected to the image correction chip 300, the second input terminal of the second switch circuit 620 is connected to the SOC sensor correction chip 400, and the control terminal of the first switch circuit 610 is connected to the control chip 200.
[0079] In some examples, reference Figure 4As shown, the control chip 200 uses a single-line SPI to connect to the flash memory 500 through the first switch circuit 610; the image correction chip 300 uses QSPI to connect to the flash memory 500 through the first switch circuit 610 and the second switch circuit 620; the SOC sensor correction chip 400 uses a single-line SPI to connect to the flash memory 500 through the first switch circuit 610 and the second switch circuit 620.
[0080] Among them, the single-line SPI may include an SPI-CS signal, an SPI-CLK signal, an SPI-SO signal, and an SPI-CI signal, and the QSPI may include a QSPI-CS signal, a QSPI-CLK signal, a QSPI-IO0 signal, an SPI-IO1 signal, an SPI-IO2 signal, and an SPI-IO3 signal, wherein the SPI-IO2 signal and the SPI-IO3 signal are directly connected between the above-mentioned image correction chip 300 and the flash memory 500.
[0081] In some examples, reference Figure 5 The above-mentioned switching circuit may include at least one switching sub-circuit, and the switching sub-circuit may include a first switching element T1 and a second switching element T2, wherein the first switching element T1 and the second switching element T2 are both switching transistors, and may include a first end, a second end and a control end, wherein the first end may be a source, the second end may be a drain, and the control end is a gate, and optionally, the first end may be a drain, and the second end may be a source.
[0082] In some examples, the first end of the first switch element T1 is connected to the output end of the switch circuit, the second end is connected to the first input end of the switch circuit, and the control end is connected to the control chip. The first end of the second switch element T2 is connected to the output end of the switch circuit, the second end is connected to the second input end of the switch circuit, and the control end is connected to the control chip.
[0083] In some examples, the switch circuit may include a plurality of switch subcircuits. For example, Figure 5 , may include four switch sub-circuits, the specific number of which may be determined based on the number of signal lines in the connecting lines, which will not be described in detail in this example.
[0084] It should be noted that the switching transistor disclosed in the present invention may be an N-channel transistor, which is turned on at a high level. Compared with a P-channel transistor, an N-channel transistor has a faster switching speed and a lower on-resistance, which can improve efficiency and reduce power consumption.
[0085] In some examples, the switching transistor may also be a P-channel transistor, in which case the transistor is turned on at a low level.
[0086] Reference Figure 6The above-mentioned switching circuit also includes a control signal changing circuit 630, wherein the above-mentioned control signal changing circuit 630 is connected between the control end of the first switching element T1 and the control chip 200, and between the control end of the second switching element T2 and the control chip 200, and is used to change the control signal so that only one of the first switching element T1 and the second switching element T2 is turned on at the same time.
[0087] In some examples, the control signal of the first switch circuit 610 and the control signal of the second switch circuit 620 may include a first control signal and a second control signal. The switch circuit may be controlled by the first control signal and the second control signal. In other words, each switch circuit is controlled by the first control signal and the second control signal.
[0088] Specifically, refer to Figure 7 , the control signal changing circuit 630 may include a first NOT gate A1, a first signal transmission switch B1, a second NOT gate A2 and a second signal transmission switch B2, wherein the input end of the first NOT gate A1 is connected to the first control signal; the first input end of the first signal transmission switch B1 is connected to the output end of the first NOT gate A1, and the output end of the first signal transmission switch B1 is connected to the control end of the first switch element T1; the input end of the second NOT gate A2 is connected to the second control signal; the first input end of the second signal transmission switch B2 is connected to the first control signal, the second input end is connected to the output end of the second NOT gate A2, and the output end of the second signal transmission switch B2 is connected to the control end of the second switch element. The above-mentioned second control signal is an enable signal of the above-mentioned first signal transmission switch B1 and the above-mentioned second signal transmission switch B2.
[0089] That is to say, when the second control signal is a high-level signal, the signal transmission switch is in the disconnected state. For example, if the second control signal of the first switch circuit is a high-level signal, the first switch circuit 610 is in the disconnected state. If the second control signal of the second switch circuit 620 is a high-level signal, the second switch circuit 620 is in the disconnected state, that is, the second control signal can determine the enabling state of the first switch circuit 610 and the second switch circuit 620. The first control signal is used to control which of the two paths of the first switch circuit 610 and the second switch circuit 620 is specifically turned on.
[0090] In some examples, the control signal changing circuit 630 may further include a common-phase buffer A3 connected between the input terminal of the first NOT gate A1 and the first control signal, and the common-phase buffer A3 can amplify the first control signal and enhance the signal quality, thereby improving the control accuracy of the switch circuit 600.
[0091] The following description is made by taking the above-mentioned switch transistor as an N-channel transistor as an example. At this time, the switch element is turned on at a high level.
[0092] In some examples, reference Figure 4 and Figure 6 If the image correction chip 300 is required to read the cache, the first control signal and the second control signal of the first switch circuit 610 and the first control signal and the second control signal of the second switch circuit 620 can be set to low level signals, the first signal transmission switch B1 in the first switch circuit 610 outputs a high level, and the second signal transmission switch B2 in the first switch circuit 610 outputs a low level. That is, the first switch element T1 in the first switch circuit 610 is turned on, and the second switch element T2 is turned off, so that the first input end and the output end of the first switch circuit 610 are turned on. The first signal transmission switch B1 of the second switch circuit 620 outputs a high level, and the second signal transmission switch B2 of the second switch circuit 620 outputs a low level, that is, the first switch element T1 of the second switch circuit 620 is turned on, and the second switch element T2 is turned off, so that the first input end and the output end of the second switch circuit 620 are turned on, so as to connect the flash memory 500 and the image correction chip 300; at this time, the control chip 200 and the flash memory 500 are disconnected, and the SOC sensor correction chip 400 and the flash memory 500 are also disconnected.
[0093] In some examples, reference Figure 4 and Figure 6 If the control chip 200 is required to write data into the flash memory 500, the first control signal of the first switch circuit 610 can be set to a high level, the second control signal of the first switch circuit 610 is a low level, and the second control signal of the second switch circuit 620 is set to a high level signal. That is, the first signal transmission switch B1 of the first switch circuit 610 outputs a low level, and the second signal transmission switch B2 of the first switch circuit 610 outputs a high level, that is, the first switch element T1 in the first switch element T1 is disconnected, and the second switch element T2 is turned on, so that the second input end and the output end of the first switch circuit 610 are connected. The enable signal of the second switch circuit 620 is a low level, that is, the first switch element T1 and the second switch element T2 in the second switch circuit 620 are both in the disconnected state, that is, the second switch circuit 620 is disconnected, and the flash memory 500 and the control chip 200 are connected at this time; at this time, the image correction chip 300 and the flash memory 500 are disconnected, and the SOC sensor correction chip 400 and the flash memory 500 are also disconnected.
[0094] In some examples, reference Figure 4 and Figure 6If the SOC sensor correction chip 400 needs to transmit data to the above-mentioned flash memory 500, the first control signal and the second control signal of the first switch circuit 610 and the second control signal of the second switch circuit 620 can be set to low level signals, and the first control signal of the second switch circuit 620 is set to a high level signal. At this time, the first signal transmission switch B1 of the first switch circuit 610 outputs a high level, and the second signal transmission switch B2 of the first switch circuit 610 outputs a low level. That is to say, the first switch element T1 in the first switch circuit 610 is turned on and the second switch element is turned off, so that the first input end and the output end of the first switch circuit 610 can be turned on, the first signal transmission switch B1 of the second switch circuit 620 outputs a low level, and the second signal transmission switch B2 of the second switch circuit 620 outputs a high level. That is to say, the first switch element T1 in the second switch circuit 620 is turned off and the second switch element T2 is turned on, so that the second input end and the output end of the second switch circuit 620 can be turned on to connect the flash memory 500 and the SOC sensor correction chip 400. There is an open circuit between the control chip 200 and the flash memory 500 , and there is also an open circuit between the image correction chip 300 and the flash memory 500 .
[0095] The following description is made by taking the above-mentioned switch transistor as a P-channel transistor as an example. At this time, the switch element is turned on at a low level.
[0096] In some examples, reference Figure 4 and Figure 6 If the image correction chip 300 is required to read the cache, the first control signal of the first switch circuit 610 can be set to a high level signal, the second control signal of the first switch circuit 610 can be set to a low level signal, the first control signal of the second switch circuit 620 can be set to a high level signal, the second control signal can be set to a low level signal, the first signal transmission switch B1 in the first switch circuit 610 outputs a low level, and the second signal transmission switch B2 in the first switch circuit 610 outputs a high level. That is, the first switch element T1 in the first switch circuit 610 is turned on, and the second switch element T2 is turned off, so that the first input end and the output end of the first switch circuit 610 are turned on. The first signal transmission switch B1 of the second switch circuit 620 outputs a low level, and the second signal transmission switch B2 of the second switch circuit 620 outputs a high level, that is, the first switch element T1 of the second switch circuit 620 is turned on, and the second switch element T2 is turned off, so that the first input end and the output end of the second switch circuit 620 are turned on to connect the flash memory 500 and the image correction chip 300; at this time, there is an open circuit between the control chip 200 and the flash memory 500, and there is also an open circuit between the SOC sensor correction chip 400 and the flash memory 500.
[0097] In some examples, reference Figure 4 and Figure 6If the control chip 200 is required to write data into the flash memory 500, the first control signal of the first switch circuit 610 can be set to a low level, the second control signal of the first switch circuit 610 is a low level, and the second control signal of the second switch circuit 620 is set to a high level signal. That is, the first signal transmission switch B1 of the first switch circuit 610 outputs a high level, and the second signal transmission switch B2 of the first switch circuit 610 outputs a low level, that is, the first switch element T1 in the first switch element T1 is disconnected, and the second switch element T2 is turned on, so that the second input end and the output end of the first switch circuit 610 are connected. The enable signal of the second switch circuit 620 is a low level, that is, the first switch element T1 and the second switch element T2 in the second switch circuit 620 are both in the disconnected state, that is, the second switch circuit 620 is disconnected, and the flash memory 500 and the control chip 200 are connected at this time; at this time, the image correction chip 300 and the flash memory 500 are disconnected, and the SOC sensor correction chip 400 and the flash memory 500 are also disconnected.
[0098] In some examples, reference Figure 4 and Figure 6 If the SOC sensor correction chip 400 needs to transmit data to the above-mentioned flash memory 500, the first control signal of the first switch circuit 610 can be set to a high level, the second control signal can be set to a low level, the second control signal of the second switch circuit 620 can be set to a low level signal, and the first control signal of the second switch circuit 620 can be set to a low level signal. At this time, the first signal transmission switch B1 of the first switch circuit 610 outputs a low level, and the second signal transmission switch B2 of the first switch circuit 610 outputs a high level. That is, the first switch element T1 in the first switch circuit 610 is turned on, and the second switch element is turned off, so that the first input end and the output end of the first switch circuit 610 can be turned on, the first signal transmission switch B1 of the second switch circuit 620 outputs a high level, and the second signal transmission switch B2 of the second switch circuit 620 outputs a low level. That is, the first switch element T1 in the second switch circuit 620 is turned off, and the second switch element T2 is turned on, so that the second input end and the output end of the second switch circuit 620 can be turned on to connect the flash memory 500 and the SOC sensor correction chip 400. There is an open circuit between the control chip 200 and the flash memory 500 , and there is also an open circuit between the image correction chip 300 and the flash memory 500 .
[0099] It should be noted that the specific form of the control signal changing circuit 630 can also be customized according to user needs, as long as it can achieve the above-mentioned control method of the above-mentioned switching element, and will not be described in detail in this example implementation.
[0100] The access control circuit of the flash memory in the present example implementation can realize through a control signal that only one of the three chips can access the above-mentioned flash memory at the same time, and the signal output by the control chip only needs to be a high level or a low level to achieve this. There is no need to set a three-mode state, which can avoid the problem of internal data confusion of the flash memory 500 caused by three chips accessing the flash memory 500 at the same time. The circuit structure is simple and can reduce the design cost.
[0101] Furthermore, the present disclosure also provides a flash memory access control method, which is used for the flash memory access control circuit, referring to Figure 8 The flash memory access control method may include steps S810 to S820.
[0102] In step S810, the switch circuit receives a control signal sent by the control chip.
[0103] In step S820, based on the control signal, only one of the control chip, the image correction chip, and the SOC sensor correction chip is connected to the flash memory at the same time.
[0104] It should be noted that the specific details of the access control circuit of the above-mentioned flash memory have been described in detail above and will not be repeated here.
[0105] In some examples, the switching circuit can be used to receive a control signal of a first switching circuit and a control signal of a second switching circuit, and determine the conduction state of the first switching circuit according to the control signal of the first switching circuit; and determine the conduction state of the second switching circuit according to the control signal of the second switching circuit.
[0106] Specifically, in response to the first control signal and the second control signal of the first switch circuit, and the first control signal and the second control signal of the second switch circuit being both low-level signals, the first input terminal and the output terminal of the first switch circuit are turned on, and the first input terminal and the output terminal of the second switch circuit are turned on, so as to connect the flash memory and the image correction chip; or in response to the first control signal of the first switch circuit being high-level, the second control signal of the first switch circuit being low-level, and the second control signal of the second switch circuit being high-level signal, the second input terminal and the output terminal of the first switch circuit are turned on, and the second switch circuit is turned off, so as to connect the flash memory and the control chip; or in response to the first control signal and the second control signal of the first switch circuit, and the second control signal of the second switch circuit being both low-level signals, and the first control signal of the second switch circuit being high-level signal, the first input terminal and the output terminal of the first switch circuit are turned on, and the second input terminal and the output terminal of the second switch circuit are turned on, so as to connect the flash memory and the SOC sensor correction chip.
[0107] Further, the present disclosure also provides a head-up display device, including the access control store of the above-mentioned flash memory, and also provides a vehicle, including the above-mentioned head-up display device, specifically, referring to Fig. 9 and Fig.10 The head-up display device can be arranged on a vehicle, and the vehicle includes a windshield 904 located at the front of the vehicle. The driver and passengers in the vehicle cabin 908 can see the front of the vehicle through the windshield 904.
[0108] exist Fig. 9 In the embodiment, the windshield 904 is visually located above the vehicle dashboard 906. The driver can turn the steering wheel 910 in the passenger compartment 908 to steer the vehicle, such as changing lanes, merging, and parking the vehicle. In some embodiments, the steering wheel 210 can be retracted or omitted.
[0109] Head-up display device 170 (see Fig.11 ) displays information 912 (e.g., a virtual image) onto a portion of windshield 904 through one or more holes (e.g., hole 916) in instrument panel 906. Fig.10 An example size of display information 912 is shown, but display information 912 may be presented over a larger or smaller area. Examples of display information 912 include various vehicle information, such as current vehicle speed, current gear of the vehicle's transmission, engine speed, vehicle's direction, current infotainment system settings, and / or other vehicle information. Heads-up display device 170 provides information to the vehicle driver without the driver having to look away from objects in front of the vehicle.
[0110] See also Fig.11 In the exemplary implementation architecture of the head-up display device 170 shown in FIG. 1 , the display control unit 150 generates a signal 412 based on the data processed by the data processing unit 140 or the data 420 transmitted by the navigation subsystem 110, the environment detection device group 120, and the vehicle driving state detection device group 130. The access and control circuit of the flash memory is set to process the data and transmit it to the display control unit 150.
[0111] The display unit 160 may include a light source 161 and an optical path component 162. The light source 161 outputs light (e.g., a virtual image) based on a signal 412 from the display control unit 150 to display on the windshield 904. For example, the light source 161 may include one or more lasers and output red light, green light, and blue light.
[0112] The optical path component 162 can reflect the output of the light source 161 onto the windshield 904 through the hole 916. The viewer (e.g., the driver) can view the display information 912 in the display area where the display information 912 is projected onto the windshield 904. In some examples, the optical path component 162 may include one or more reflectors (plane mirrors) and concave mirrors (magnifying glasses). The output of the light source 161 is reflected back through the reflector and magnified by the concave mirror and then reflected to the windshield 904 to form a virtual image 40 that can be visually observed by the driver. The visual effect presented by the virtual image 40 is that the virtual image 40 is projected onto the projection surface 41 at a set distance in front of the vehicle, but the real environment remains visible through the projection surface 41. In some examples, the optical path component 162 can also be omitted, and the light source 161 can directly project the display information 912 onto the windshield 904 to form a virtual image 40 on the projection surface 41.
[0113] The present disclosure also provides a computer-readable storage medium, which may include: a U disk, a mobile hard disk, a read-only memory, a random access memory, a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used in the access control method of the flash memory in the above-mentioned embodiment.
[0114] The embodiments of the present disclosure also provide a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes to implement the access control method of the flash memory of each of the above embodiments.
[0115] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present disclosure can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.
[0116] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0117] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the inventions claimed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not claimed in the present disclosure.
[0118] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A flash memory access control circuit, It is characterized in that It includes a control chip, an image correction chip, a SOC sensor correction chip, a flash memory and two switch circuits, wherein: The control chip is used to provide a control signal; The control chip, the image correction chip, and the SOC sensor correction chip are all connected to the flash memory through the two switch circuits; The control signal is used to control the switch circuit so that only one of the control chip, the image correction chip, and the SOC sensor correction chip is connected to the flash memory at the same time; The switch circuit includes at least one same switch subcircuit, and the switch subcircuit includes: A first switch element, having a first end connected to the output end of the switch circuit, a second end connected to the first input end of the switch circuit, and a control end connected to the control chip; The second switch element has a first end connected to the output end of the switch circuit, a second end connected to the second input end of the switch circuit, and a control end connected to the control chip.
2. The circuit according to claim 1, It is characterized in that The two switch circuits include a first switch circuit and a second switch circuit; The control chip is connected to the flash memory via a first switch circuit; The image correction chip is connected to the flash memory through the first switch circuit and the second switch circuit; The SOC sensor calibration chip is connected to the flash memory through the first switch circuit and the second switch circuit.
3. The circuit according to claim 2, It is characterized in that The first input end of the first switch circuit is connected to the output end of the second switch circuit, the second input end of the first switch circuit is connected to the control chip, the output end of the first switch circuit is connected to the flash memory, and the control end of the first switch circuit is connected to the control chip; The first input end of the second switch circuit is connected to the image correction chip, the second input end of the second switch circuit is connected to the SOC sensor correction chip, and the control end of the second switch circuit is connected to the control chip.
4. The circuit according to claim 3, It is characterized in that The control signal includes a control signal of a first switch circuit and a control signal of a second switch circuit, wherein the control signal of the first switch circuit is used to control the conduction state of the first switch circuit, and the control signal of the second switch circuit is used to control the conduction state of the second switch circuit.
5. The circuit according to claim 4, It is characterized in that The control signal of the first switch circuit and the control signal of the second switch circuit both include a first control signal and a second control signal; In response to the first control signal and the second control signal of the first switch circuit, and the first control signal and the second control signal of the second switch circuit being low level signals, the first input terminal and the output terminal of the first switch circuit are turned on, and the first input terminal and the output terminal of the second switch circuit are turned on, so as to connect the flash memory and the image correction chip; or In response to the first control signal of the first switch circuit being at a high level, the second control signal of the first switch circuit being at a low level, and the second control signal of the second switch circuit being at a high level, the second input terminal and the output terminal of the first switch circuit are connected, and the second switch circuit is disconnected, so as to connect the flash memory and the control chip; or In response to the first control signal and the second control signal of the first switch circuit, and the second control signal of the second switch circuit being low-level signals, and the first control signal of the second switch circuit being a high-level signal, the first input terminal and the output terminal of the first switch circuit are turned on, and the second input terminal and the output terminal of the second switch circuit are turned on, so as to connect the flash memory and the SOC sensor correction chip.
6. The circuit according to claim 1, It is characterized in that The switch circuit further comprises: a control signal changing circuit connected between the control end of the first switch element and the control chip, and connected between the control end of the second switch element and the control chip; The control signal changing circuit is used to change the control signal so that only one of the first switch element and the second switch element is turned on at the same time.
7. The circuit according to claim 6, It is characterized in that The control signal includes a first control signal and a second control signal; the control signal changing circuit includes: A first NOT gate, an input terminal of which is connected to the first control signal; A first signal transmission switch, wherein the input end is connected to the output end of the first NOT gate, the output end of the first signal transmission switch is connected to the control end of the first switch element, and the enable end is connected to the second control signal; a second NOT gate, an input end of which is connected to the second control signal; The second signal transmission switch has an input terminal connected to the first control signal, an enable terminal connected to the output terminal of the second NOT gate, and an output terminal of the second signal transmission switch connected to the control terminal of the second switch element.
8. The circuit according to claim 2, It is characterized in that The control chip adopts single-line SPI to connect to the flash memory through the first switch circuit; the image correction chip adopts QSPI to connect to the flash memory through the first switch circuit and the second switch circuit; the SOC sensor correction chip adopts QSPI to connect to the flash memory through the first switch circuit and the second switch circuit.
9. A flash memory access control method, It is characterized in that The access control circuit for the flash memory according to any one of claims 1 to 8, the method comprising: The switch circuit receives a control signal sent by the control chip; Based on the control signal, only one of the control chip, the image correction chip, and the SOC sensor correction chip is connected to the flash memory at the same time; Wherein, the switch circuit includes at least the same switch sub-circuit, and the switch sub-circuit includes: A first switch element, having a first end connected to the output end of the switch circuit, a second end connected to the first input end of the switch circuit, and a control end connected to the control chip; The second switch element has a first end connected to the output end of the switch circuit, a second end connected to the second input end of the switch circuit, and a control end connected to the control chip.
10. The method according to claim 9, It is characterized in that The control signal includes a control signal of a first switch circuit and a control signal of a second switch circuit, and the method includes: receiving a control signal of the first switch circuit and a control signal of a second switch circuit; determining a conduction state of the first switch circuit according to a control signal of the first switch circuit; The conduction state of the second switch circuit is determined according to a control signal of the second switch circuit.
11. The method according to claim 10, It is characterized in that The control signal of the first switch circuit and the control signal of the second switch circuit both include a first control signal and a second control signal, and the method includes: In response to the first control signal and the second control signal of the first switch circuit, and the first control signal and the second control signal of the second switch circuit being low level signals, the first input terminal and the output terminal of the first switch circuit are turned on, and the first input terminal and the output terminal of the second switch circuit are turned on, so as to connect the flash memory and the image correction chip; or In response to the first control signal of the first switch circuit being at a high level, the second control signal of the first switch circuit being at a low level, and the second control signal of the second switch circuit being at a high level, the second input terminal and the output terminal of the first switch circuit are connected, and the second switch circuit is disconnected, so as to connect the flash memory and the control chip; or In response to the first control signal and the second control signal of the first switch circuit, and the second control signal of the second switch circuit being low-level signals, and the first control signal of the second switch circuit being a high-level signal, the first input terminal and the output terminal of the first switch circuit are turned on, and the second input terminal and the output terminal of the second switch circuit are turned on, so as to connect the flash memory and the SOC sensor correction chip.
12. A head-up display device, It is characterized in that The head-up display device comprises: The access control circuit of the flash memory as claimed in any one of claims 1 to 8.
