Environment: stvd+ST Assembler Linker
//////////////////////////////////////////////////////--main.asm file--1/ ...
stm8/
#include "cfg.inc"
;segment 'eeprom'
segment byte at:EADD_INIT_FLAG1 'eeprom'
dc.b INIT_FLAG1
segment byte at:EADD_INIT_FLAG2 'eeprom'
dc.b INIT_FLAG2
end
///////////////////////////////////////////////////--main.asm file--2/ ...
/////////////////////////////////////////////////////--cfg.inc file--1/ ...
;Address 4000 is hexadecimal
#define EADD_INIT_FLAG1 4000
#define EADD_INIT_FLAG2 4001
#define EADD_TIM_ST1_C 4011 ;Usage time of filter element 1
#define EADD_TIM_ST2_C 4015
#define EADD_TIM_ST3_C 4019
#define EADD_TIM_ST4_C 401d
#define EADD_ENC_UID 4021 ;ENC UID 4BYTES
#define EADD_DEV_SN 4025 ; Burn serial number 4BYTES
;The following is eeprom data, decimal number
#define STRAINER1_USE_MAX_TIM 10
#define STRAINER2_USE_MAX_TIM 20
#define STRAINER3_USE_MAX_TIM 30
#define STRAINER4_USE_MAX_TIM 40
#define INIT_FLAG1 170;0xAA
#define INIT_FLAG2 238;0xEE
//////////////////////////////////////////////////////--cfg.inc file--2/ ...
————————————————
Previous article:STM8 serial port initialization register configuration
Next article:Use STM8S microcontroller to drive CT1642
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- What does a digital design engineer mainly do? How do you get started? What does a digital verification engineer mainly do? How do you do it?
- 3. Lighting Case and Extension
- CH549EVT development board test - unpacking and development platform establishment
- EEWORLD University ---- Intel SoC FPGA Development and Application Training Course by Xiaomei
- A little new
- Indoor positioning summary
- In a DC-DC circuit, if the current is less than 100uA after the output voltage, will it still pull down the input voltage? How to avoid this...
- [Shanghai Hangxin ACM32F070 development board + touch function evaluation board] 04.CAN communication test
- Professional questions and answers about laser distance sensors
- The Linux driver LCD screen is distorted or not bright at all. Where should I start debugging?