-
1. Principle 1. Infrared emission protocol There are many infrared communication protocols. This experiment uses the NEC protocol. This protocol uses PWM modulation and uses pulse width to represen...[Details]
-
Using Systick timer to achieve delay 1. SysTick timer characteristics The SysTick timer is a 24-bit down counter, that is, when vlue is decremented to 0, an interrupt is triggered and the load va...[Details]
-
Today, under the guidance of a low-level expert, I learned how to configure the PWM module! Woof! First open the file configured last time, as follows: Then, we need to use TIM1 to set PWM: Then,...[Details]
-
Superconductors have physical properties such as zero resistance effect, Meissner effect and Josephson effect, which make them have broad application prospects and unparalleled advantages in many b...[Details]
-
If you do not use an external crystal on the STM32, the connection method of OSC_IN and OSC_OUT If you use the internal RC oscillator instead of an external crystal, please follow the following metho...[Details]
-
Recently, the National Development and Reform Commission announced that all foreign equity restrictions in the automobile industry will be lifted in the next five years. At the same time, as subsid...[Details]
-
Take serial port interrupt as an example: like: void serial() interrupt 4 { } and void serial_uart() interrupt 4 { } The functions of both functions are to define the serial port interrupt function. ...[Details]
-
According to data released by WitsView, among the top six TV panel companies in 2017,
Samsung
's TV panel production capacity declined the fastest, reaching -15.4%. However, this does not m...[Details]
-
//PROJECT : EA21 // IC : SAMSUNG S3C9454 #include "ioS3C9454.h" //Write it yourself, pay attention to const ? //**************************** // PIN define area //*************...[Details]
-
The chip is EM78P153 ; P64, P65 are connected to the crystal oscillator, the oscillation mode is 4MHz crystal oscillator ; the watchdog is off, the instruction cycle is 2 CLOCK, and P63 is the rese...[Details]
-
在一个沒有規则性的内容转换中,查表程序是相当有用的,用户可以使用查表程序很快速的得到相关内容的转换。 例:设计一个程序,將如下图所示中的PORT5读到的一个数值,将输入内容做转换,然后输出到PORT6的7段显示器上。 上图中开关关闭,I/O引脚可以得到一个低电位,若是开关开启则I/O引脚可以得到一个高电位。 图 5.2 数码管 八段说明 7段显示器的接线图如上,我們要編一...[Details]
-
; ******************************************** ; Function: 7-segment digital tube display program * ; MICroProcessor : HT48R50A-1/28SKDIP-A * ; Author: www.picavr.com * ; Cr...[Details]
-
HT1380 EQU 0X06 COUNT0 EQU 0X10 TXBUF EQU 0X11 RXBUF EQU 0X12 DATABUF EQU 0X13 ADDRPOINT EQU 0X14 HT_SDA_IN EQU 0B01001000 HD_SDA_OUT EQU 0B00001000 HT_SCL EQU 0 HT_RST EQU ...[Details]
-
/* Code adapted from Atmel AVRApplICation Note AVR306 * Interrupt mode driver for UART. */ #include io8515.h #include macros.h #include "uart.h" /* IMPORTANT: these vector numbers are for 8515! If yo...[Details]
-
/***********74HC165 parallel input and serial output example program************/ // MCU ATmega8 reads the address of the dip switch of 165 serial input // // Crystal oscillator: internal 1M // ...[Details]