1.xdata means that this is the data in an external RAM address, and the data will eventually be saved to an address cell in the external RAM;However, external RAM can only be accessed through register indirection, that is, its address needs to be stored in internal RAM (in fact, perhaps SFR, 8-bit addresses are generally R0, r1,16 addresses are generally dptr)Here, the content stored in the dptr is equivalent to pointers to external RAM units ... So, a pointer to an internal data type, and an ex
1. The process of the new project is unchanged, the selection of the chip, but in the new file is the. asm suffix2. Once the assembler is complete, place it in a folder and then right-click on the project to generate the hex file3. Then press the Debug button4. Step Execution (step button), you can see the changes on the right side of the PSW,R0-R7,A,B,PC, you can choose the Memory tab in the lower right corner, enter the storage space you want to see in address, you can see the changes in the c
The attachment shows the production method and the lcd1602 example, which includes video tutorials.
Keil CLib file generation method
Inclusion relationship
Lcd1602.cIncluding lcd1602.h
Lcd1602.hFile Format
Set to generate lib File
LIBFile call
Add lib file dialog box
Added lib File
Haha ^ _ ^. In this way, you can delete the file lcd16
The basic steps for debugging the Keil program in internal RAM are already available on the Internet, so I will not repeat them here. You can find a lot on the Internet.
However, sometimes the internal RAM is not enough, so you need to load the program into the external RAM for debugging. In this process, various problems may occur, here, I will summarize some of the problems I have encountered and the areas that need attention, hoping to help you.
killed, and only a few useful files are left. the total size is 232kb, much less than before. now, you can package the folder and send it to others, which can save a lot of traffic. it can also save space on your hard disk.What's amazing about. bat? You can use a text tool to open it as needed. BAT file, add or delete some statements in it to suit you. of course, the premise is that you are right. BAT must have a little understanding. specific Learning,HereFor more information, see. the flexibl
"Reference url" http://www.openedv.com/posts/list/600.htm
1. Use. bat (Batch) file can be used to delete Keil compiled generated useless files, reduce the volume of the project disk, easy to talk about the project to the collaborators.
2. The unused file storage directory compiled by the program has been set to the Obj folder. When compiled, you will find that there are several files in the obj directory, about 100 files, occupying space will be nea
After the project is successfully compiled in Keil, the following message is printed in the Bulid ouput window below:Program size:code=6320 ro-data=4864 rw-data=44 zi-data=1636The meaning of the representative:Code: The size of the bytes in the programRo-data: Instruction and constant size defined in the program (Personal understanding: Read only)Rw-data: The variable size initialized in the program (Personal Understanding ": read/write)Zi-data: Unini
STM32 Keil Software Setup program write start address selection
STM32 Series MCU, here take CORTEX-M4 as an example, when we debug online, we usually set the program to write the start address and size. This size is typically 0x08000000, which is the mapping address of the internal flash. But some products start from 0x08020000, which is why. is because in the 0x08000000-0x08020000 this space is the boot program, that is, the boot program is stored f
Stack settings under STM32 Keil http://blog.csdn.net/u011784994/article/details/53157614
When you just took over STM32, you only write an int main () {while (1);} Build://program size:code=340 ro-data=252 rw-data=0 zi-data=1632 compiled, you will find that this program has used more than 1600 RAM, if the 51 SCM, the pain of death, Where did the 1600-plus RAM go, analysis Map, you will find that the heap and stack occupy in the Startup_stm32f10x_md.s f
In November 2014, the author wrote a: based on the C programming language, how to Keil software in the modular programming document , and upload to Baidu Library. And in May this year, the content of the document was updated and perfected. In the beginning to practice programming friends a reference, send this blog, to facilitate more friends to see. If you reader feel a bit of a role, you can help continue to spread, I am grateful. The author level i
As shown in the picture, many students may encounter the "File has been changed outside the editor, reload?" In the image above when using Keil. hint, very annoying. When you encounter this prompt, first of all do not depressed, please read the path and name of the file first. For example: The filename of this hint is UCOSII+STM32+12864.AXF, and then look at the following image:
You see the file name shown in the figure above UCOSII+STM32+12864.AXF
Take the small Wagon program for a freshman game.
As you can see, my delay function is used in the assembly. However, the target cannot be created after compilation.
Now everyone right-click on the left side of the workgroup 1:source Group 1. Then click on the first options for group ' Source Group 1 '.
Set the dialog box to the right of the red circle two options points two times, making the tick black.
Click OK to compile.
If you have two warnings at compile time:
The warning rea
This was originally a question I did in my junior year. It was an out-of-class exercise. In the single-chip microcomputer course, an experiment is to control the digital display of a clock. The program logic is very simple and can be expressed by
Use the timer of the STC single-chip microcomputer to perform a scheduled task of 1 second, 1 minute, and 1 hour.
Because I use 11.0592 crystals, the time is not very accurate. If you have precise timing requirements, use a m crystal oscillator.
The
After the basic functions of the system clock generator are established, the scg1, scg0, cpuoff, and oscoff bits of the SR in the CPU are important low-power control bits. As long as any interrupt is responded, the above control bit is pushed into
The size of my color screen is 240*320 ~The following code is used:
//common.h#ifndef __COMMON_H__#define __COMMON_H__#include #include typedef unsigned int uint;typedef unsigned char uchar;#endif// !__COMMON_H__
// Touchpad. C # DEFINE _ touchpad_c
To achieve human-computer interaction, the display device is indispensable. Previously, I talked about how to use a single-chip microcomputer to control the display of digital tubes. This article focuses on how to control the LCD display and adds
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.