PrBurundi Sugar Arrangementotues Tutorial Lecture 3: Completion of the “10 Seconds of Provocation” Internet Celebrity Button

作者:

分類:

Huaqiu PCB

Highly reliable multilayer board manufacturer

Huaqiu SMT

Highly reliable one-stop PCBA intelligent manufacturer

Huaqiu Mall

Self-operated electronic components in stockBurundi Sugar DaddyMall

PCB Layout

High multi-layer, high-density product design

Steel mesh manufacturing

Focus on high-quality steel mesh manufacturing

BOM ordering

Specialized one-stop purchasing solution

Huaqiu DFM

Burundi SugarAnalyze design hidden dangers with one click

Huaqiu certification

The certification test is beyond doubt


Video tutorial: httpsBurundins Sugardaddy://www.bilibili.com/video/BV1m741187ga

What is an internet celebrity button?

pYYBAGSJMO6AOPRTAARdFROKrW4294.pngpoYBAGSJMRWAFhEAAAIOL5UgjC0146.png

51 core microcontroller on time Calculation of the processor (taking 12M crystal oscillator as an example); Crystal oscillator 12MHz =12000000Burundins EscortHz clock cycle 1/12000000 s (reciprocal of the crystal oscillator) The mechanical cycle is 12/12000000 s (a mechanical cycle of 51 microcontroller in the scale framework is 12 clock cycles) due to the timer Each mechanical cycle adds 1, so the timing time is N*clock mechanical cycle time=pressed time T, so the mechanical period to go through is N*(12/12000000 s)=T N=t/(12/12000000) Initial value Equal to 65536-N (because the 16-bit timer 65535 overflows by adding 1) For example: Required time 1ms=0.001s = time (s)*(crystal oscillator/12) 0.001/(12/12000000)=0.001*( 12000000 /12)=0.001*1000000=1000 Initial value y=65536-1000=64536=0XFC18

poYBAGSJMSqAIHjMAAMBh4qI3HE841.pngpYYBAGSJMTWATBWYAAKKB9LQbVQ434.pngpYYBAGSJMUKAXTi6AANnBsT9DdE242.png

#include "reg52.h"#define uchar unsigned char#define uint unsigned int#define SEG P0sbit SCAN1 = P2^0;sbit SCAN2 = P2^1;sbit SBurundi SugarCAN3 = P2^2;sbit SCAN4 = P2^3;sbit key = P3^0;sbit Bepp = P3^7;uchar number;uchar flag ;uchar distab[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};int display=0;//Nigital tube refresh int The_Time;//Display time unit 10msint dis_value;/ /Counting frequency 10msvoid delay(uint j) //1ms uchar Burundins Sugardaddyi=250; for(;j>0;j-- ) while(--i); iBurundi Sugar=249; while(--i); i=250;
TMOD |=Burundins Sugardaddy 0x01; //Turn on timer 0. Use timer 1 at 0x10 and start two TH0=0XFC at 0x11 ; //Assign an initial value to the timer, 1ms TH1 TL0Burundins Escort=0X18; //TL1 EA=1; / /Always stop opening ET0=1; BI Escorts//Timer 0 stops opening ET1 TR0=1; //Timer TR1 EX0=1; //Internal interrupt 0 is on () EX1 is internal interrupt 1 (P3^3)IT0=1; //Low level trigger IT1 is interrupt 1 while(1)
static uint i; //Define a self-deformable variable TH0=0XFC; //Assign an initial value to the timer, time 1ms TH1 TL0=0X18; //TL1 i++; dis_value++; if(i==2) i=0; SEG = 0XFF; switch(number) case 0:SCAN4=1;SCAN3=0;SCAN2=0;SCAN1=0; SEG=distab[The_Time%10];break; case 1:SCBI EscortsAN4=0;SCAN3=1;SCAN2=0; SCAN1=0;;SEG=distab[The_Time/10%10];break; case 2:SCBurundi Sugar DaddyAN4=0; SCAN3=0;SCAN2=1;SCAN1=0;SEG=distab[The_Time/100%10] break; case 3:SCAN4=0;SCAN3=0;SCAN2=0;SCAN1=1;;SEG=distab[The_Time/ 1000];break; default:break; number++; if(number>3)number=0;
Burundi Sugar【Open source Sao Ke] Lecture 3 of "Easy Design SDRAM Controller" - Serial Port Transmitting Module Design and Transceiver Integration. I believe that many friends will definitely want to learn after studying the serial port receiving module mentioned in the second lecture Burundi Sugar Daddy How to design the serial port sending module? Kevin is also very aware of everyone’s diligence in learning, so in the third lecture, Kevin will take everyone together. The design of the serial port sending module is completed and will be issued on 05-08 22:18
Harmony OS IoT application development BI Escorts Practical combat (based on HiSpark WiFi IoT Kit) Lecture 3 Course Materials This post was last compiled by xusiwei1236 on 2020-11-20 14:24 HarmonyBurundi Sugar OS Objects Practical development of networked applications (based on HiSparkBurundins Escort WiFi IoT suite) The third course material, the full set of course materials, was released on 09-29 10:47
Harmony OS IoT application development practice (based on HiSpark WiBurundins SugardaddyFi IoT suite) The third course material is at the end of this post Edited by xusiwei1236 on 2020-11-20 14:23 HarmoBI Escortsny OS Internet of Things application development practice (based on HiSpark WiFi IoBI EscortsT Suite) The complete set of course materials for the third lecture will be issued on 11-20 14:21
Burundi SugarAltium training class - sound source tracking car design challenge des of circuit reductionBurundi Sugar Daddyign October 29, 19:30 (Saturday) - Chen Junxiang Lecture 3: Red Burundi SugarBurundins Escortdesign of external obstacle avoidance circuits and power circuits November 01, 19:30 (Tuesday) - Zheng Zhenyu Lecture 4: 4 Layer voice-activated tracking car PCB project analysis, process, introduction and PCB layout were published on 09-Burundins Sugardaddy21 10:43
Lecture 3: Basic laws and regulations of logical algebra Lecture 3: Basic laws and regulations of logical algebra 2.3.1 Basic formulas of logical algebra 1. Logical constant operation formula 2. Logic Variable and constant operation formulas
Lecture 33 Utilization of PLD devicesBurundins SugardaddyLecture 33 Utilization of PLD devices Application 10.4 Application of PLD devices 10.4.1 Development system of programmable devices 10.4.2 ABEL hardware description language 1. Structure of ABEL source files BI Escorts 2. AB Published on 03-30 16:38 • 990 views
Lecture 3 Introduction to Database Systems Introduction to Database Systems courseware is a concise and complete version, and new materials will be continuously updated in the following chapters. Published on 03-22 16:55 • 0 downloads
PLC programming: One button switch realizes the cycle display program of red, yellow, and green lights. Use one button switch to implement the cycle display program of red, yellow, and green lights. , the required reincarnation distance time is 0.5s. Published on 07-29 14:56 • 2.4w views
Lithium-ion batteries that changed our lives | Lecture 3: Winning the Nobel Prize and the popularization history of lithium-ion batteries Lithium-ion batteries that changed our lives | Third Lecture: History of popularization of
Burundi Sugar Daddy, which won the Nobel Prize and lithium-ion battery Issued on 12-05 17:13 •428 views


留言

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *