Issues that should be paid attention to when writing software programs

Publisher:塞上老马Latest update time:2020-07-23 Source: 51hei Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Notes on software writing:


Clock Distribution

Whether the main clock starts oscillating normally and is stable, and whether the clocks of various peripherals are turned on


Option bytes configuration

Is the I/O remapping function status consistent with the actual project?

If the watchdog is enabled using the hardware method, the watchdog becomes effective immediately after reset and the main program must feed the watchdog.

If the MCU main frequency is higher than 16MHz, the MCU wait period of the option byte needs to be configured as 1


Some bits of the status register are cleared by reading the register, so the consequences of such register operations must be clear.


It is recommended to allocate frequently used variables in Zero page, which can improve the access speed of these variables. For infrequently used variables, @near can be used to define them in the area outside 0xFF (relatively speaking, the access speed is slightly slower). Users can decide according to actual conditions.

Reference address:Issues that should be paid attention to when writing software programs

Previous article:STM8 online simulation ---- advanced application
Next article:Further understanding of STVD/COSMIC

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号