Use of STM8 interrupt vector in IAR

Publisher:古泉痴迷者Latest update time:2016-01-10 Source: eefocusKeywords:IAR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
According to IAR rules, the interrupt vector should be increased by 2. For example, if the interrupt vector of the PA port is 3, then #pragma vector=0x05 should be written in the IAR program. However, PD7 is different from other PD ports. PD7 has a small tail TLI. TLI has the highest level interrupt of the chip and has an independent dedicated interrupt vector number 0. Therefore, according to IAR rules, the vector number should be increased by 2, and the program should be changed to #pragma vector=0x02, instead of the other interrupt number 0x08 of the PD port.
Keywords:IAR Reference address:Use of STM8 interrupt vector in IAR

Previous article:Use of IAR STM8 project interrupts
Next article:STM8 hardware circuit design basics

Recommended ReadingLatest update time:2024-11-15 13:49

IAR FOR STM8 The same project chip selection 003F3 can compile 003K3 and prompt insufficient space
For the same project file, if you select 103F3, it can be compiled successfully, but if you select 103K3, it will prompt that there is insufficient space. I was puzzled and consulted a lot of information but to no avail. Finally I found the configuration file in the IAR project.   Open the configuration file of 0
[Microcontroller]
IAR FOR STM8 The same project chip selection 003F3 can compile 003K3 and prompt insufficient space
Main features of STM8 I2C interface
STM8 I2C interface The I2C (Inter-Chip) bus interface connects a microcontroller to a serial I2C bus. It provides multi-master functionality and controls all IC bus specific timing, protocols, arbitration, and timing. Both standard and fast modes are supported. STM8 I2C main features Parallel Bus/I2C Bus Protocol C
[Microcontroller]
Configuration and reasons of linker file of atmega128 bootloader program under IAR-AVR
Step 1: The on-chip flash partitions of atmega128 are described on page 275 of the atmega128 datasheet. Correspondingly, on page 284, there are specific settings for the size of the application area and the boot area. Note: Byte address = word address * 2 Here, the first address of the BOOT area, $F000 = 0x1E000
[Microcontroller]
Configuration and reasons of linker file of atmega128 bootloader program under IAR-AVR
IAR Embedded Workbench for Arm version 9.40 improves code security by integrating PACBTI
IAR Embedded Workbench version 9.40 introduces seamless compatibility with the Pointer Validation and Branch Target Identification (PACBTI) extension, protecting embedded applications from a variety of security attacks. Uppsala, Sweden – June 7, 2023 – IAR, a global leader in embedded software and services, has rele
[Embedded]
Observation of the output frequency of each clock CLK_CCO port of STM8
Note: You need to enable port D0 function as CLK_CCO in the option bytes Modify the AFR2 option bits in ST-LINK/Option Bytes: It should be noted here that the clock source used is not after the main clock switch, so no clock switching is required. Here we need to use the CLK_CCO port to output the waveform. Acc
[Microcontroller]
Observation of the output frequency of each clock CLK_CCO port of STM8
IAR STM32 absolute address positioning of functions and variables
Yesterday, I suddenly had an idea: can I use the absolute positioning of functions and variables to achieve modular updates of programs?   In other words, if I want to change a function, I only need to update a part of the flash, maybe only a few hundred bytes, without having to re-download the entire hundreds of KB
[Microcontroller]
Understanding and application of stm8 serial port receiving interrupt program
  The STM8 series is an 8-bit microcontroller produced by STMicroelectronics. This type of microcontroller is divided into three series: STM8A, STM8S, and STM8L.   STM8 chip features   Kernel   Advanced STM8 core with 3-stage pipeline Harvard architecture   Extended instruction set   Memory   Program memory: 8K byte
[Microcontroller]
Understanding and application of stm8 serial port receiving interrupt program
Notes on IAR debugging S3C6410 (Part 3)
After the ICF file and startup code are prepared, you can create a new IAR project and start the S3C6410 naked journey.     The environment for this step is IAR FOR ARM 6.10     1. Create a new project and select the kernel          2. Configure the header file path: project directory\inc          3. Add the icf fil
[Microcontroller]
Notes on IAR debugging S3C6410 (Part 3)
Latest Microcontroller Articles
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号