Storage of STM8 variables

Publisher:火箭飞人Latest update time:2018-09-05 Source: eefocusKeywords:STM8 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

@tiny - zero page (0x00-0xff) Declaration: @tiny char a
a).bsct - initialized variable in zero page area
b).ubsct - uninitialized variable in zero page
c).bit - bit operation segment
d).share




@near - RAM area outside zero page
a).bss - uninitialized variable area
b).data - initialized variable area
c).const - constant area


@far
.fdata
.fconst
.text


@EEPROM

Keywords:STM8 Reference address:Storage of STM8 variables

Previous article:STM8 MEMORY MODEL application
Next article:STM8 uses ----STVD (COSMIC) to define variables to specify their types and bit definitions

Recommended ReadingLatest update time:2024-11-16 11:34

STM8 UART
STM8's UART is powerful. In addition to conventional serial asynchronous communication, it also has LIN master mode, infrared codec, smart card simulation and other functions. Beginners should start with basic serial communication, and then slowly study those advanced functions after proficiency. #i nclude void CLK_
[Microcontroller]
STM8 firmware library + IAR --UART3
Stm8 serial port: main functions: 1: Supports asynchronous transmission, so it becomes UART 2: lin mode master-slave 3: Infrared coding mode 4: Smart card emulation function The above functions are not supported by all serial ports. STM8 has a maximum of 3 serial ports. The configuration is simple, so it is useless to
[Microcontroller]
STM8 MCU interrupt control (ITC)
Internal interrupt: usually caused by hardware errors or errors in the operation process, which is generally unavoidable;  External interrupt: an interrupt request issued by the processor's peripherals, such as timer interrupts and UART receive interrupts. External interrupts can generally be shielded by the interrupt
[Microcontroller]
STM8 ADC conversion mode ------- continuous mode
The STM8 microcontroller ADC supports five conversion modes: single mode, continuous mode, continuous mode with buffer, single scan mode, and continuous scan mode. Continuous and Buffered Continuous In continuous mode, the ADC is set to continuous mode, which is enabled by setting the ADON bit in the ADC_CR1 registe
[Microcontroller]
stvd simulation debugging
Open the STVD development environment, the interface is as follows: 1. Right-click stm8s_sx1276 in the Workspace window and select "Set as Active Project" 2. Right-click stm8s_sx1276 in the Workspace window, select Build, and compile the project 3. Click the toolbar icon to start the debugging process. 4. Clic
[Microcontroller]
stvd simulation debugging
Pitfalls of using st-link to download programs to stm8 through stvp
This st-link is used The package says that STM32 uses the 20 pins at the bottom and STM8 uses the 4 pins at the top. There are also wiring instructions for STM8 on the back. I connected the wires, but the development board has no power... I measured the voltage between the red and black wires and it's 0.7V... I ha
[Microcontroller]
Pitfalls of using st-link to download programs to stm8 through stvp
Summary of STM8 operation LCD5110
Attach a small piece of code: void LCD_init(void) { // Generate a low level pulse to reset LCD //LCD_RST = 0; GPIO_WriteLow(LCD_PORTG, LCD_RST); delay_1us(); //LCD_RST = 1; GPIO_WriteHigh(LCD_PORTG, LCD_RST); // 关闭LCD //LCD_CE = 0; GPIO_WriteLow(LCD_PORTG, LCD_CE); delay_1us(); // 使能LCD // LCD_CE = 1; GPIO_WriteHigh(L
[Microcontroller]
Summary of STM8 operation LCD5110
STM8 Framework Usage Guide
I. Overview       The framework is written to avoid an embarrassing situation: a company has several engineers, each of whom seems to cooperate, but the code they submit is different in framework and style. My code is awkward, and your code is troublesome... These increase the communication cost and error cost, and ar
[Microcontroller]
STM8 Framework Usage Guide
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号