Haoqi Electronic Technology Co., Ltd. is a professional IC agent supplier specializing in the promotion, application, technical services and marketing of single chip and embedded systems. It provides high-quality services to domestic and foreign manufacturers. It is one of the famous suppliers of electronic components in China. Our main brands are ADI, ATMEL, ALTERA, XILINX, TI/BB, FAIRCHILD, ST, PHILIPS, MOTOROLA, IR, ON, AVAGO, SHARP, TOSHIBA, VISHAY, BROADCOM, etc.
Products are mainly used in IT, security, communications, remote control, aerospace, control systems, automobiles, machinery, satellite number and other products, while several major semiconductor brands in the industry (XILINX, ADI, PHI, AVAGO, ALTERA,) also have good access to goods;.With the rapid development of the electronic industry, small-scale products, a large number of stock, low-profit sales, user-friendly. Shorten the delivery cycle, get the trust and praise of users in the industry. With several major manufacturers at home and abroad to jointly expand the Chinese market. In order to meet the needs of high-tech market expansion, the company continuously strengthens technical support services and management advanced investment, adopts advanced management means, reduces costs, expands customer networks, and is willing to develop together on the basis of mutual benefit.
Simply put, without crystal oscillator, there will be no clock cycle. Without clock cycle, the program code can not be executed, and the microcontroller can not work.
When a single chip computer works, it takes instructions from RoM one by one, and then executes them step by step. The time when a single chip computer accesses a memory is called a machine cycle, which is a time benchmark. Mdash; a machine cycle consists of 12 clock cycles. If a single chip computer chooses 12MHz crystal oscillator, its clock cycle is 1/12us, and its machine cycle is 12× (1/12) us, that is 1us.
The output clock of ZL30151 is controlled by single chip computer. The pin connection relationship is as follows:
.
Code first: the first is the error code, the second is the correct code. This is a function used to write commands or data to the DS1302 chip. The 8-bit data dat is written to the IO port of DS1302 one by one. Among them, ACC0 is the 0th place of ACC.