Use of atmega8 Flash

Publisher:reaper2009Latest update time:2022-03-15 Source: eefocusKeywords:atmega8  Flash  Data Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Reading Flash area data in GCCAVR



Definition (only global variables):

const int temp PROGMEM = 1;

Read:

pgm_read_byte(addr);

pgm_read_word(addr);

pgm_read_dword(addr);


 


String:


Global definition:

const char ss[]PROGMEM = "hello";

Definition in function:

const char *ss = PSTR("hello");


Read the same as above



Note the inclusion: #include


Keywords:atmega8  Flash  Data Reference address:Use of atmega8 Flash

Previous article:atmega8 example: timer T1 normal mode
Next article:Let atmega8 define IO pins like Freescale xs128

Recommended ReadingLatest update time:2024-11-22 01:39

Design of intelligent management system for electric vehicle batteries based on ATmega8
Abstract: This article uses the ATmega8 microcontroller as the core to design a distributed, modular electric vehicle battery management system that communicates through LIN bus and has intelligent charging functions, achieving effective monitoring and management of multiple sets of batteries. Keywords: battery managem
[Microcontroller]
Research on the basic principles and applications of AtmelAVR Flash microcontrollers in automobiles
  Automatically closing power windows or doors on vehicles present a potential risk of jamming, crushing and possible injury. They must be able to reverse movement to prevent the force applied by the motor from exceeding normal limits. This feature means that speed, current and glass position must be constantly monito
[Microcontroller]
Research on the basic principles and applications of AtmelAVR Flash microcontrollers in automobiles
Application of ATmega8 microcontroller in LED remote control lighting
IntroductionLED lighting has entered the home users. Compared with traditional lighting equipment (such as incandescent lamps and fluorescent lamps), it has the advantages of high purity of light source, diverse colors, high efficiency, and adjustable light intensity. Aiming at the problem that the brightness of
[Microcontroller]
Application of ATmega8 microcontroller in LED remote control lighting
NetApp transforms the Data Fabric to dominate hybrid multi-cloud
Allow customers to freely choose from a variety of clouds and provide customers with a consistent user experience   NetApp, the global leader in hybrid cloud data management, announced new solutions and services that enable customers to choose and use different clouds based on their needs. With today’s new product l
[Internet of Things]
Learning based on stm32f103zet6 nor flash
Sometimes, we need to save a small amount of data, but it is inconvenient to use an external ROM. At this time, we naturally think about whether the chip has its own flash memory. As far as I know, the internal STM32 should be NOR flash, because if it is NAND flash, the speed will definitely not keep up. However, if y
[Microcontroller]
DATAmatic Solutions Help Automakers Cope with Explosion of Connected Car Data
Airbiquity®, a provider of connected car services, announced the launch of DATAmatic®, an edge data management solution suite, designed to meet the growing demand of automakers for managing and using connected car data services and tools. The suite includes DATAmatic Edge Data Platform and DATAmatic Edge Data Logger.
[Embedded]
DATAmatic Solutions Help Automakers Cope with Explosion of Connected Car Data
ATmega8 Clock Source
The ATmega8 chip has the following clock sources that are selected by Flash fuses: The clock is input to the AVR clock generator and then distributed to the corresponding modules. The different clock options are described in the following sections. When the CPU wakes up from power-down or power-save mode, the select
[Microcontroller]
ATmega8 Clock Source
Medium frequency power supply test system based on AVR microcontroller ATMEGA8535
1 Introduction Compared with the traditional 51 series MCU, AVR MCU has higher integration and stronger functions, and has good compatibility with C language. Its RISC instruction architecture enables its running speed to reach 1MIPS/MHZ. With its more and more extensive application, it will definitely replace
[Microcontroller]
Medium frequency power supply test system based on AVR microcontroller ATMEGA8535
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号