Micro-control circuit, control method and operating system

By designing a microcontroller circuit including memory, image processing circuit, temporary storage circuit, control circuit and display circuit, the image tearing phenomenon and multi-storage space data management problems in liquid crystal display are solved, and the continuity of image display and the efficiency of data management are achieved.

CN119863994APending Publication Date: 2025-04-22NUVOTON
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410762452.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-10-19
Filing Date
2024-06-13
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

Existing liquid crystal displays are prone to image tearing when displaying images, and it is difficult to efficiently manage image data in multiple storage spaces.

Method used

A microcontroller circuit is designed, including memory, image processing circuit, temporary register, control circuit and display circuit. Through the control of the vertical synchronization signal, the values ​​of the temporary register are exchanged to realize dynamic switching of the storage space and update of the image data.

Benefits of technology

It effectively avoids the occurrence of image tearing, ensures the continuity of image display of the monitor, and improves the management efficiency of image data of multiple storage spaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119863994A_ABST
    Figure CN119863994A_ABST
Patent Text Reader

Abstract

A micro-control circuit, a control method and an operating system wherein the micro-control circuit comprises a memory, an image processing circuit, a first register, a second register, a control circuit and a display circuit. The memory comprises a first storage space and a second storage space. The image processing circuit writes first image data into the first storage space and writes second image data into the second storage space. The first register stores an initial address of one of the first storage space and the second storage space. The second register stores another initial address of the first storage space and another initial address of the second storage space. The control circuit exchanges the values of the first register and the second register according to a vertical synchronization signal. The display circuit reads the image data of the first storage space or the second storage space according to the numerical value of the first temporary memory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a micro-control circuit, and in particular to a micro-control circuit capable of providing an image signal. Background Art

[0002] With the advancement of technology, the types and functions of electronic devices are increasing. Liquid crystal display is a new type of display device. Due to the advantages of thin volume, light weight and low radiation, liquid crystal display has been widely used in recent years. Summary of the invention

[0003] The present invention provides a microcontroller circuit, comprising a memory, an image processing circuit, a first register, a second register, a control circuit and a display circuit. The memory comprises a first storage space and a second storage space. The image processing circuit writes a first image data into the first storage space, and writes a second image data into the second storage space. The first register stores a starting address of one of the first storage space and the second storage space. The second register stores another starting address of the first storage space and the second storage space. The control circuit exchanges the values ​​of the first register and the second register according to a vertical synchronization signal. The display circuit reads the image data of the first storage space or the second storage space according to the value of the first register.

[0004] The present invention further provides an operating system, comprising a display device and a microcontroller circuit. The display device presents a screen according to an image signal. The microcontroller circuit provides an image signal and comprises a memory, an image processing circuit, a first register, a second register, a control circuit and a display circuit. The memory comprises a first storage space and a second storage space. The image processing circuit writes a first image data into the first storage space and writes a second image data into the second storage space. The first register stores a starting address of one of the first storage space and the second storage space. The second register stores another starting address of the first storage space and the second storage space. When a vertical synchronization signal is enabled and the value of a third register is a preset value, the control circuit exchanges the values ​​of the first register and the second register. When the value of the first register corresponds to the first storage space, the display circuit generates an image signal according to the first image data. When the value of the first register corresponds to the second storage space, the display circuit generates an image signal according to the second image data.

[0005] The present invention further provides a control method applicable to a microcontroller circuit. The microcontroller circuit includes a memory, a first register and a second register. The memory has a first storage space and a second storage space. The control method of the present invention includes: receiving a vertical synchronization signal; exchanging the values ​​of the first register and the second register according to the vertical synchronization signal; when the value of the first register corresponds to the first storage space, generating an image signal according to a first image data of the first storage space; when the value of the first register corresponds to the second storage space, generating an image signal according to a second image data of the second storage space.

[0006] The control method of the present invention can be implemented through the micro-control circuit of the present invention, which is hardware or firmware that can perform specific functions, or can be recorded in a recording medium in the form of program code and implemented in combination with specific hardware. When the program code is loaded and executed by an electronic device, processor, computer or machine, the electronic device, processor, computer or machine becomes a micro-control circuit for implementing the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 It is a schematic diagram of the operating system of the present invention.

[0008] Figure 2 for Figure 1 Operation diagram of the operating system.

[0009] Figure 3 Another schematic diagram of the operating system of the present invention.

[0010] Figure 4 It is a flow chart of the control method of the present invention.

[0011] Figure 5 FIG. 4 is another flow chart of the control method of the present invention.

[0012] Figure Number:

[0013] 100, 300: Operating system

[0014] 110, 310: Microcontroller circuit

[0015] 120, 320: Display device

[0016] 111, 311: Image processing circuit

[0017] 112, 312: Memory

[0018] 113, 313: Display circuit

[0019] 114, 314: Control circuit

[0020] Reg_OnLine, Reg_OffLine, Reg_BufReady, Reg_BufWidth: scratchpad

[0021] SIG: Image Signal

[0022] SA1, SA2: Storage space

[0023] VSYNC: vertical synchronization signal

[0024] S411~S415, S511~S519: Steps DETAILED DESCRIPTION

[0025] In order to make the purpose, features and advantages of the present invention more clearly understood, the following examples are specifically cited and described in detail with reference to the accompanying drawings. The present invention specification provides different examples to illustrate the technical features of different implementations of the present invention. Among them, the configuration of each element in the example is for illustration purposes only and is not intended to limit the present invention. In addition, some repetition of the figure numbers in the examples is for the purpose of simplifying the description and does not mean the relevance between different examples.

[0026] Figure 1 Schematic diagram of the operating system of the present invention. As shown in the figure, the operating system 100 includes a microcontroller circuit 110 and a display device 120. The display device 120 presents a picture according to an image signal SIG. The present invention does not limit the type of the display device 120. In a possible embodiment, the display device 120 is a liquid crystal display (LCD).

[0027] The microcontroller circuit 110 provides the image signal SIG and includes an image processing circuit 111, a memory 112, a display circuit 113, a control circuit 114, and registers Reg_OnLine and Reg_OffLine. The present invention does not limit the type of the microcontroller circuit 110. In one possible embodiment, the microcontroller circuit 110 is a microcontroller unit (MCU).

[0028] The memory 112 includes storage spaces SA1 and SA2. The present invention does not limit the number of storage spaces. In one possible embodiment, the memory 112 has more storage spaces. In this embodiment, the storage spaces SA1 and SA2 are discontinuous storage spaces. The present invention does not limit the type of the memory 112. In one possible embodiment, the memory 112 is a volatile memory, such as a DRAM.

[0029] The image processing circuit 111 is used to write image data into the storage spaces SA1 and SA2. In one possible embodiment, the image processing circuit 111 writes a first image data into the storage space SA1 and writes a second image data into the storage space SA2. In this embodiment, the image processing circuit 111 updates the image data of the storage spaces SA1 and SA2 according to the value of the register Ref_OffLine.

[0030] For example, when the value of the register Ref_OffLine points to the storage space SA1, the image processing circuit 111 writes a third image data into the storage space SA1 to replace the first image data. In this example, the data amount of the third image data is the same as the data amount of the first image data. In another possible embodiment, the data amount of the third image data is less than the data amount of the first image data. In this example, the image processing circuit 111 uses the third image data to update part of the image data in the storage space SA1. When the value of the register Ref_OffLine points to the storage space SA2, the image processing circuit 111 writes a third image data into the storage space SA2 to replace the second image data. In this example, the data amount of the third image data is the same as the data amount of the second image data. In another possible embodiment, the data amount of the third image data is less than the data amount of the second image data. In this example, the image processing circuit 111 uses the third image data to update part of the image data in the storage space SA2. In other embodiments, the image processing circuit 111 uses a direct memory access (DMA) technology to access the memory 112.

[0031] The register Ref_OnLine stores a first access address. The register Ref_OffLine stores a second access address. In a possible embodiment, the first access address is the starting address of one of the storage spaces SA1 and SA2, and the second access address is the other starting address of the storage spaces SA1 and SA2. For example, the access address recorded in the register Ref_OnLine is the same as the starting address of the storage space SA1, and the access address recorded in the register Ref_OffLine is the same as the starting address of the storage space SA2.

[0032] In one possible embodiment, the register Ref_OffLine is integrated into the image processing circuit 111 or the memory 112. In another possible embodiment, the register Ref_OffLine is independent of the image processing circuit 111 and the memory 112. In other embodiments, the register Ref_OnLine is integrated into the display circuit 113 or the memory 112. In another possible embodiment, the register Ref_OnLine is independent of the display circuit 113 and the memory 112.

[0033] The control circuit 114 receives a vertical synchronization signal VSYNC, and exchanges the values ​​stored in the register Ref_OnLine and the register Ref_OffLine according to the vertical synchronization signal VSYNC. For example, when the vertical synchronization signal VSYNC is enabled, the control circuit 114 copies the value stored in the register Ref_OnLine (such as 0x10000) to the register Ref_OffLine, and copies the value originally stored in the register Ref_OffLine (such as 0x20000) to the register Ref_OnLine.

[0034] The display circuit 113 reads the storage space SA1 or SA2 according to the value of the register Ref_OnLine. For example, when the value of the register Ref_OnLine points to the storage space SA1, the display circuit 113 generates the image signal SIG according to the image data of the storage space SA1. When the value of the register Ref_OnLine points to the storage space SA2, the display circuit 113 generates the image signal SIG according to the image data of the storage space SA2. In one possible embodiment, the display circuit 113 uses DMA technology to access the memory 112.

[0035] Figure 2 for Figure 1 Operation diagram of the operating system. At time point T1, the vertical synchronization signal VSYNC is enabled. Therefore, the control circuit 114 exchanges the values ​​of the register Ref_OnLine and the register Ref_OffLine. For example, after the exchange, the value of the register Ref_OnLine corresponds to the starting address 0x10000 of the storage space SA1, and the value of the register Ref_OffLine corresponds to the starting address 0x20000 of the storage space SA2. Therefore, the display circuit 113 reads the image data stored in the storage space SA1 starting from the starting address 0x10000 of the storage space SA1. The picture presented by the display device 120 corresponds to the image data of the storage space SA1.

[0036] In some embodiments, when the display circuit 113 reads the image data stored in the storage space SA1 according to the register Ref_OnLine, the image processing circuit 111 writes new image data starting from the start address 0x20000 of the storage space SA2 according to the value stored in the register Ref_OffLine (eg, 0x20000).

[0037] At time point T2, the vertical synchronization signal VSYNC is enabled again. Therefore, the control circuit 114 exchanges the values ​​of the register Ref_OnLine and the register Ref_OffLine. For example, after the exchange, the value of the register Ref_OnLine corresponds to the starting address 0x20000 of the storage space SA2, and the value of the register Ref_OffLine corresponds to the starting address 0x10000 of the storage space SA1. Therefore, the display circuit 113 reads the image data stored in the storage space SA2 starting from the starting address 0x20000 of the storage space SA2. At this time, the picture presented by the display device 120 corresponds to the image data of the storage space SA2.

[0038] In some embodiments, when the display circuit 113 reads the image data stored in the storage space SA2 according to the register Ref_OnLine, the image processing circuit 111 writes new image data starting from the start address 0x10000 of the storage space SA1 according to the value stored in the register Ref_OffLine (eg, 0x10000).

[0039] Before the vertical synchronization signal VSYNC is enabled, the image processing circuit 111 updates the image data in the corresponding storage space. Therefore, when the vertical synchronization signal VSYNC is enabled, the image processing circuit 111 can generate the image signal SIG according to the updated image data. Therefore, the display device 120 presents a correct picture without image tearing.

[0040] Figure 3 FIG. 3 is another schematic diagram of the operating system of the present invention. As shown in the figure, the operating system 300 includes a microcontroller circuit 310 and a display device 320. The display device 320 displays the image according to the image signal SIG. Since the characteristics of the display device 320 are the same as those of Figure 1 The characteristics of the display device 120 are not described in detail.

[0041] The microcontroller circuit 310 includes an image processing circuit 311, a memory 312, a display circuit 313, a control circuit 314, registers Reg_OnLine, Reg_OffLine and Reg_BufReady. Since the image processing circuit 311, the memory 312, the display circuit 313, the control circuit 314, the registers Reg_OnLine and Reg_OffLine have the same characteristics as Figure 1 The image processing circuit 111, the memory 112, the display circuit 113, the control circuit 114, the registers Reg_OnLine and Reg_OffLine are not described in detail.

[0042] When the value of the register Reg_BufReady is equal to a preset value, it indicates that the image processing circuit 311 has updated the corresponding storage space according to the register Reg_OffLine. Therefore, when the vertical synchronization signal VSYNC is enabled, the control circuit 314 exchanges the values ​​of the register Ref_OnLine and the register Ref_OffLine. In a possible embodiment, after the control circuit 314 completes the exchange of the values ​​of the register Ref_OnLine and the register Ref_OffLine, the control circuit 314 sets the value of the register Reg_BufReady to be not equal to the preset value. At this time, the value of the register Reg_BufReady may be 0.

[0043] When the value of register Reg_BufReady is not equal to the preset value and vertical synchronization signal VSYNC is not enabled, image processing circuit 311 performs an update operation on storage space SA1 or SA2 according to the value of register Ref_OffLine. After completing the update operation, image processing circuit 311 may set the value of register Reg_BufReady equal to the preset value, such as value 1.

[0044] In some embodiments, when the value of the register Reg_BufReady is not equal to the preset value, the image processing circuit 311 updates the image data of the memory 312 according to the value of the register Ref_OffLine. For example, when the value of the register Ref_OffLine points to the storage space SA1, the image processing circuit 311 writes the new image data (or the third image data) to the storage space SA1. When the value of the register Ref_OffLine points to the storage space SA2, the image processing circuit 311 writes the third image data to the storage space SA2.

[0045] The present invention does not limit the data volume of the third image data. In one possible embodiment, the data volume of the third image data is the same as the data volume of the image data in the storage spaces SA1 and SA2. For example, the storage spaces SA1 and SA2 each store 320*240*4 data. In this example, the data volume of the third image data is equal to 320*240*4. In another possible embodiment, the data volume of the third image data is less than the data volume of the storage spaces SA1 and SA2. In this example, the image processing circuit 311 uses the third image signal to update part of the image data in the storage spaces SA1 and SA2.

[0046] In some embodiments, when the value of the register Reg_BufReady is not equal to the preset value, it indicates that the image processing circuit 311 has not completed the update operation. At this time, if the vertical synchronization signal VSYNC is enabled, the display circuit 313 reads the image data of the corresponding storage space according to the value of the register Reg_OnLine. For example, it is assumed that the value of the register Reg_OnLine corresponds to the storage space SA1, and the storage space SA1 stores the first image data. In a first period, when the value of the register Reg_BufReady is not equal to the preset value and the vertical synchronization signal VSYNC is enabled, the display circuit 313 generates the image signal SIG according to the first image data of the storage space SA1. At this time, the display device 320 presents a specific picture. Then, in a second period, when the value of the register Reg_BufReady is still not equal to the preset value and the vertical synchronization signal VSYNC is enabled again, the display circuit 313 generates the image signal SIG according to the first image data of the storage space SA1. At this time, the display device 320 presents the same specific picture. Since the display device 320 presents a large number of images in one second (maybe 120 images in one second), even if the same image is presented, it is not easy for the user to notice.

[0047] In addition, the control circuit 314 exchanges the values ​​of the registers Reg_OnLine and Reg_OffLine after the image processing circuit 311 completes the update operation, thereby ensuring that the storage space read by the display circuit 313 has complete image data. Therefore, the screen displayed by the display device 320 will not have tearing phenomenon.

[0048] In some embodiments, the microcontroller circuit 310 further includes a register Reg_BufWidth. The value of the register Reg_BufWidth is related to the resolution and image format of the display device 320. For example, assuming that the resolution of the display device 320 is 320*240 and the image format is RGB888 format. In this example, the value stored in the register Reg_BufWidth is 320*240*4.

[0049] When the value of the register Reg_BufReady is not equal to the preset value, the image processing circuit 311 writes new image data to the corresponding storage space according to the value of the register Ref_OffLine. In one possible embodiment, the image processing circuit 311 may use DMA technology to access the memory 312. After completing the write operation, the value of the register Reg_BufReady is set to the preset value.

[0050] The present invention does not limit how to determine whether the write operation has been completed. In one possible embodiment, when the image data is written to the storage unit corresponding to a specific address of the memory 312, it indicates that the write operation has been completed. For example, assume that the value of the register Ref_OffLine is 0x10000, and the value of the register Reg_BufWidth is 0x05000. In this example, the image processing circuit 311 writes new image data starting from the address 0x10000 of the storage space SA1. When the storage unit corresponding to the address 0x14FFF (i.e., address 0x15000-1) of the storage space SA1 has updated the storage data, it indicates that all the image data has been written to the storage space SA1. Therefore, the image processing circuit 311 may set the value of the register Reg_BufReady to a preset value, such as the value 1.

[0051] Figure 4 1 is a flow chart of the control method of the present invention. The control method of the present invention may exist in the form of program code. When the program code is loaded and executed by a machine, the machine becomes a microcontroller circuit for implementing the present invention. In a possible embodiment, the microcontroller circuit includes a memory, a first register and a second register. The memory has a first storage space and a second storage space. In some embodiments, the first and second storage spaces store image data.

[0052] First, a vertical synchronization signal is received (step S411), and it is determined whether the vertical synchronization signal is enabled (step S412). In one possible embodiment, when the vertical synchronization signal is enabled, the vertical synchronization signal is a low level. When the vertical synchronization signal is disabled (not enabled), the vertical synchronization signal is a high level. In another possible embodiment, when the vertical synchronization signal is enabled, the vertical synchronization signal is a high level. When the vertical synchronization signal is disabled, the vertical synchronization signal is a low level.

[0053] When the vertical synchronization signal is enabled, the values ​​of the first and second registers are exchanged (step S413). In one possible embodiment, the first register stores a first access address and the second register stores a second access address. In this example, one of the first and second access addresses points to the first storage space, and the other of the first and second access addresses points to the second storage space. For example, the first access address is the starting address of the first storage space, such as 0x10000, and the second access address is the starting address of the second storage space, such as 0x20000. In this example, after step S413, the first access address of the first register is the starting address of the second storage space, i.e., 0x20000, and the second access address of the second register is the starting address of the first storage space, such as 0x10000.

[0054] When the vertical synchronization signal is not enabled, the values ​​of the first and second registers are maintained (step S414). Assume that the first access address of the first register is equal to the starting address of the first storage space, such as 0x10000, and the second access address of the second register is equal to the starting address of the second storage space, such as 0x20000. After step S414, the first access address of the first register is still equal to the starting address of the first storage space, such as 0x10000, and the second access address of the second register still corresponds to the starting address of the second storage space, such as 0x20000.

[0055] According to the value of the first register, an image signal is generated (step S415). In one possible embodiment, when the first access address of the first register points to the first storage space, step S415 reads the image data of the first storage space and generates an image signal according to the image data. In another possible embodiment, when the first access address of the first register points to the second storage space, step S415 reads the image data of the second storage space and generates an image signal according to the image data.

[0056] Figure 5 Another flow chart of the control method of the present invention is shown. First, the values ​​of the first and second registers are set (step S511). In one possible embodiment, the first access address of the first register points to the first storage space, and the second access address of the second register points to the second storage space. In some embodiments, the first access address of the first register is equal to the starting address of the first storage space, and the second access address of the second register is equal to the starting address of the second storage space.

[0057] In another possible example, step S511 further sets a value of a format register. In this example, the value of the format register is related to the resolution of a display device and the color format presented by the display device. For example, assuming that the resolution of the display device is 320*240, and the color format presented by the display device is RGB888. In this example, the value of the format register is 320*240*4.

[0058] Next, determine whether a vertical synchronization signal is enabled (step S512). In one possible embodiment, when the vertical synchronization signal is at a low level, it indicates that the vertical synchronization signal is enabled. When the vertical synchronization signal is enabled, determine whether the value of a third register is a first value (step S513). In one possible embodiment, the first value (or the preset value) is 1.

[0059] When the value of the third register is not the first value, the image data of the corresponding storage space (such as the first storage space) is read according to the value of the first register (such as 0x10000) to generate an image signal (step S516). In one possible embodiment, the values ​​of the first and second registers remain unchanged. Then, the process returns to step S512 to wait for the vertical synchronization signal to be enabled again.

[0060] When the value of the third register is the first value, it indicates that the image data of the second storage space is ready. Therefore, the values ​​of the first and second registers are exchanged (step S514). In one possible embodiment, before step S514, the value of the first register is 0x10000, and the value of the second register is 0x20000. After step S514, the value of the first register is 0x20000, and the value of the second register is 0x10000.

[0061] Next, the value of the third register is set to the second value (step S515). In one possible embodiment, the second value is 0. Then, according to the value of the first register (such as 0x20000), the image data of the corresponding storage space (such as the second storage space) is read to generate an image signal. Then, return to step S512 and wait for the vertical synchronization signal to be enabled again.

[0062] When the vertical synchronization signal is not enabled, it is determined whether the value of a third register is the second value (step S517). When the value of the third register is not the second value, the image data of the corresponding storage space (such as the second storage space) is read according to the value of the first register (such as 0x20000) to generate the image signal (step S516).

[0063] When the value of the third register is the second value, an update operation is performed according to the value of the second register (such as 0x10000) (step S518). In one possible embodiment, the update operation is to update the image data of the storage space corresponding to the second register. For example, when the value of the second register points to the first storage space, step S518 updates the complete image data or the partial image data of the first storage space. When the value of the second register points to the second storage space, step S518 updates the complete image data or the partial image data of the second storage space.

[0064] Then, the value of the third register is set to the first value (step S519). At this time, the value of the third register may change from the value 0 (the second value) to the value 1 (the first value). Then, according to the value of the first register (such as 0x20000), the image data of the corresponding storage space (such as the second storage space) is read to generate an image signal (step S516). Then, return to step S512 to determine whether the vertical synchronization signal is enabled.

[0065] In this embodiment, when the value of the third register is a preset value (such as value 1) and the vertical synchronization signal is enabled, the values ​​of the first and second registers are exchanged. Then, the corresponding image data is read according to the value of the first register after the exchange. In this example, when the value of the third register is not a preset value or the vertical synchronization signal is not enabled, the exchange of the values ​​of the first and second registers is suspended. In a possible embodiment, after the values ​​of the first and second registers are exchanged, the value of the third register is set not to be the preset value. At this time, the value of the third register may change from value 1 to value 0.

[0066] In other embodiments, when the vertical synchronization signal is not enabled, if the value of the third register is not a preset value (such as a value of 1), the image data in the first or second storage space is updated according to the value of the second register. For example, if the value of the second register is equal to the starting address of the first storage space, the new image data (or the third image data) replaces the complete image data (or the first image data) originally stored in the first storage space, or replaces part of the image data in the first storage space. However, if the value of the second register is equal to the starting address of the second storage space, the new image data (or the third image data) replaces the complete image data (or the second image data) originally stored in the second storage space, or replaces part of the image data in the second storage space. In this example, after writing the new image data to the storage space specified by the second register, the value of the third register is set to the preset value.

[0067] In one possible embodiment, the data volume of the new image data is the same as the data volume of the first image data in the first storage space, and is also the same as the data volume of the second image data in the second storage space. For example, the data volume of the first to third image data is 320*240*4. In another possible embodiment, the data volume of the new image data is less than the data volume of the first image data in the first storage space, and is also less than the data volume of the second image data in the second storage space. In this example, the data volume of the first image data in the first storage space is the same as the data volume of the second image data in the second storage space.

[0068] It should be understood that when an element or layer is referred to as being "coupled" to another element or layer, it may be directly coupled or connected to the other element or layer, or have other elements or layers intervening therebetween. Conversely, if an element or layer is "connected" to another element or layer, there will be no other elements or layers intervening therebetween. In addition, enable shall mean changing the state of a Boolean signal. Boolean signals can be enabled to be high or have a higher voltage, and Boolean signals can be enabled to be low or have a lower voltage at the discretion of the circuit designer. Similarly, disable shall mean changing the state of a Boolean signal to a voltage level opposite to the enabled state.

[0069] The control method of the present invention, or a specific form or part thereof, may exist in the form of program code. The program code may be stored in a physical medium, such as a floppy disk, an optical disk, a hard disk, or any other machine-readable (such as computer-readable) storage medium, or a computer program product not limited to an external form, wherein when the program code is loaded and executed by a machine, such as a computer, the machine becomes a microcontroller circuit for participating in the present invention. The program code may also be transmitted through some transmission medium, such as wires or cables, optical fibers, or any transmission form, wherein when the program code is received, loaded and executed by a machine, such as a computer, the machine becomes a microcontroller circuit for participating in the present invention. When implemented in a general-purpose processing unit, the program code combines with the processing unit to provide a unique device that operates similarly to an application-specific logic circuit.

[0070] Unless otherwise defined, all words (including technical and scientific words) herein are generally understood by those skilled in the art. In addition, unless expressly indicated, the definitions of words in general dictionaries should be interpreted as consistent with the meanings in articles in the relevant technical field, and should not be interpreted as ideal or overly formal. Although the terms "first", "second", etc. can be used to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element.

[0071] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art may make some changes and modifications without departing from the spirit and scope of the present invention. For example, the system, device or method described in the embodiments of the present invention may be implemented in a physical embodiment of hardware, software or a combination of hardware and software. Therefore, the scope of protection of the present invention shall be subject to the scope defined by the claims.

Claims

1. A microcontroller circuit, characterized in that: include: A memory, comprising a first storage space and a second storage space; An image processing circuit writes a first image data into the first storage space and writes a second image data into the second storage space; a first register storing a starting address of one of the first storage space and the second storage space; a second register storing another starting address of the first storage space and the second storage space; a control circuit, exchanging the values ​​of the first register and the second register according to a vertical synchronization signal; and A display circuit reads the image data of the first storage space or the second storage space according to the value of the first register.

2. The microcontroller circuit according to claim 1, characterized in that: Also includes: a third register, When the value of the third register is equal to a preset value and the vertical synchronization signal is enabled, the control circuit exchanges the values ​​of the first register and the second register.

3. The microcontroller circuit according to claim 2, wherein: When the value of the third register is not equal to the preset value and the vertical synchronization signal is not enabled, the image processing circuit performs an update operation on the first image data or the second image data according to the value of the second register.

4. The microcontroller circuit according to claim 3, characterized in that: When the value of the third register is not equal to the preset value and the value of the second register is the same as the starting address of the first storage space, the image processing circuit writes a third image data into the first storage space. When the value of the third register is not equal to the preset value and the value of the second register is the same as the starting address of the second storage space, the image processing circuit writes a third image data into the second storage space.

5. The microcontroller circuit according to claim 4, characterized in that: The data amounts of the first image data, the second image data and the third image data are all the same.

6. The microcontroller circuit according to claim 1, wherein: When the value of the first register corresponds to the starting address of the first storage space, the display circuit reads the first image data; when the value of the first register corresponds to the starting address of the second storage space, the display circuit reads the second image data.

7. A control method, characterized in that: Applicable to a micro-control circuit, the micro-control circuit includes a memory, a first temporary register and a second temporary register, the memory has a first storage space and a second storage space, the control method includes: Receiving a vertical synchronization signal; According to the vertical synchronization signal, the values ​​of the first register and the second register are exchanged; When the value of the first register corresponds to the first storage space, an image signal is generated according to a first image data of the first storage space; and When the value of the first register corresponds to the second storage space, the image signal is generated according to a second image data of the second storage space.

8. The control method according to claim 7, characterized in that: Also includes: Detecting a value of a third register; When the value of the third register is a preset value and the vertical synchronization signal is enabled, the values ​​of the first register and the second register are exchanged.

9. The control method according to claim 8, characterized in that: Also includes: After the values ​​of the first register and the second register are exchanged, the value of the third register is set not to be the preset value.

10. An operating system, characterized in that: include: A display device displays images according to an image signal; as well as A microcontroller circuit comprising: A memory, comprising a first storage space and a second storage space; An image processing circuit writes a first image data into the first storage space and writes a second image data into the second storage space; A first register storing a starting address of one of the first and second storage spaces; a second register storing another starting address of the first and second storage spaces; a control circuit, which exchanges the values ​​of the first register and the second register when a vertical synchronization signal is enabled and the value of a third register is a preset value; and A display circuit generates the image signal according to the first image data when the value of the first register corresponds to the first storage space, and generates the image signal according to the second image data when the value of the first register corresponds to the second storage space.

Citation Information

Patent Citations

  • Source electrode driver with image scrolling function

    CN101399017A

  • Display channel switching method and module, display driving device and display equipment

    CN110460784A

  • Control circuit and driving method for display device, display device and electronic equipment

    CN1707588A

  • Memory control circuit and display device using it

    JP2008192066A

  • Display device

    TW202133141A