When I switched to ST and AVR, I didn't systematically read related documents. According to the project, I got the datasheet and prepared the tools. The most visible ones are features and pins, so I often neglected in some details. After experiencing the painful lesson, sum up some. . . .
1. When downloading the program to Tiny25 through the ISP, it is found that the data of the built-in EEPROM is completely cleared and reset to 0xFF. After many practices, it can be said that when downloading a program to an AVR microcontroller, the internal EEPROM data will all be reset. Therefore, if you want to burn some initialization values ​​to the EEPROM, the best way is to define a .eeprom segment. After burning the FLASH program, burn the generated eep file to the EEPROM. Modifying Fuse and LockBits does not affect the EEPROM data.
2. If the A/D pin of Tiny5 is floating, the AD voltage of the A/D pin will be affected by the voltage of other pins. Therefore, when using the A/D module, make sure that each A/D pin is not in a floating state. The unused pins can be pulled up or pulled down. This principle is not only for the A/D pin but also for other digital pins. This should be handled without leaving floating pins, reducing potential hazards and reducing EMI.
3. After turning on the LockBits of the AVR MCU, reading the FLASH program and EEPROM data will be FF, but you can re-download the program to FLASH. After downloading the program, LockBits is automatically cleared. The default is off.
With more than 15+ yrs rich MFG experience, you can definitely trust in and cooperate with.
Provide you with the supply of Personal Protective Equipment. to help you safely get back to your daily routine.
Our products include pulse Oximeter Finger, Forehead Thermometer, Automatic foam soap dispenser, etc.
Our strict quality control protocol thoroughly vets every aspect of production, storage, and shipments all the way way to our end customers.
infrared thermometers wholesale, forehead thermometer wholesale,wholesale thermometer suppliers
TOPNOTCH INTERNATIONAL GROUP LIMITED , https://www.micbluetooth.com