1. The header file format of ICCAVR is:
#include
2. There is an important header file in the use of AVR microcontrollers, macros.h, which defines some commonly used macros, such as BIT(X), watchdog reset, on/off global interrupts, etc.
3. Bit operation of AVR microcontroller: AVR does not have the usage of sbit like 51 microcontroller, but it can also operate on a single I/O port. The specific method is as follows:
DDRB | =(1<<3); DDRB | =BIT(3); DDRB | =BIT(DDRB3) ——all are different ways of setting the 3rd bit (starting from bit 0) of DDRB to 1.
4. Four bit operations: bitwise AND, bitwise OR, bitwise negation, bitwise XOR
Previous article:AVR MCU Features and Development Compilation Environment
Next article:Embedded Learning Notes 19——Transplantation of AVR MCU C51 to ICCAVR
- 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
- 36 pictures to explain the basics of network
- keil4 cannot compile
- Several filtering methods for single chip microcomputer to resist interference by software
- Please help me analyze the processing circuit of this AC signal
- DSP chip, what is a DSP chip
- What do you think of Huawei HiSilicon's operation?
- I need help with an algorithmic problem related to permutations and combinations
- [Synopsys IP Resources] Integrated MAC, PCS, and PHY IP for 400G/800G Ethernet
- 【ESP32-C3-DevKitM-1】+ Build the software environment for ESP32-C3 development based on the user manual
- DC/DC Converter Data Sheet - System Efficiency