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
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
- Popular Resources
- Popular amplifiers
- Follow me Season 2 Episode 3 Mission Code
- Virtualization Technology Practice Guide - High-efficiency and low-cost solutions for small and medium-sized enterprises (Wang Chunhai)
- Detailed explanation of big data technology system: principles, architecture and practice (Dong Xicheng)
- Handbook of Multisensor Data Fusion: Theory and Practice
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- Europe's three largest chip giants re-examine their supply chains
- Breaking through the intelligent competition, Changan Automobile opens the "God's perspective"
- The world's first fully digital chassis, looking forward to the debut of the U7 PHEV and EV versions
- Design of automotive LIN communication simulator based on Renesas MCU
- When will solid-state batteries become popular?
- Adding solid-state batteries, CATL wants to continue to be the "King of Ning"
- The agency predicts that my country's public electric vehicle charging piles will reach 3.6 million this year, accounting for nearly 70% of the world
- U.S. senators urge NHTSA to issue new vehicle safety rules
- Giants step up investment, accelerating the application of solid-state batteries
- Guangzhou Auto Show: End-to-end competition accelerates, autonomous driving fully impacts luxury...
- Is this the most comprehensive collection of RF project design tools?
- 8031 multi-function high-precision division program and its use
- ISO14443, 15693, 18000 system analysis
- A pitfall in buying goods on a certain fish - BMW night vision camera
- Big Brother, please help
- Problems with adding vias to PCB boards
- Analog Engineer's Circuit Design Guide - Data Converters
- 54V, 1.5kW Power Stage Reference Design for Three-Phase BLDC Drives
- 2G communication project - power consumption test comparison and analysis of IoT small size modules M26 and M6315 - waiting for suggestions online!
- [MM32 eMiniBoard Review] +A/D Data Acquisition