- AuthorPosts
The variable clock can only use the clock information provided by the user’s motherboard, send the time information to the serial screen in real time via the serial port, and then display it using the variable clock control.
The variable clock can only display the clock in text form. The variable clock allocates a variable memory cell, the length of which is measured in BCD code bytes.
The unit function is used to store time information such as “year, month, day, hour, minute, second, week” sent by the microcontroller.
BCD code format. The user microcontroller writes the time information such as “year, month, day, hour, minute, second, week” in BCD code format to the variable memory unit by 0x82 instruction. The serial screen will take out the BCD time from the variable unit and display it according to the set display position, color, font and dot matrix size, and the separator between bytes can be set by the customer (for example, it is customary to use an underscore for year, month and day, and a colon for hour, minute and second). Display the BCD code time of one byte, and take a delimiter to show the following
- AuthorPosts
- You must be logged in to reply to this topic.