Examination scope:
Optional reading book after-class exercises
Main question:
Pure programming: In the first four experiments, multiplication is not tested.
Interrupt, timer T1: square wave book example 5-1, can also be implemented in C language
Display, keyboard: 8-bit/16-bit (independent/matrix keyboard, Scanner)
0832/0809 Example 10-1 (1) (2) (3) 10-6, 10-6 above program (square wave, rectangular wave)
Chapter 8, Expansion Chart, "Just know how to do the content of Lecture 14"
AFTER:
When the external memory is expanded, it is used as the data bus, DB
When not expanded, it can be used as a general I/O, but there is no internal pull-up resistor. When used as input or output, an external pull-up resistor should be connected.
P1 port:
Only used as I/O port: it has a pull-up resistor inside.
The P2 port has two functions:
When expanding external memory, it is used as an address bus, AB
Used as a general I/O port, it has a pull-up resistor inside;
The P3 port has two functions:
In addition to being used as IO,
There are also some special functions, which are set by special registers (RXD, TXD, external interrupt input INT1/0, WR, RD)
RST: Reset terminal. (2Ts reset, power-on reset, key pulse reset, key level reset)
XTAL1, XTAL2: Clock input, external crystal oscillator circuit or pulse circuit
ALE: low 8 bits, data
EA:ROM,
EA is invalid: first access the chip, then access the chip, then cannot add more than 64KB of external expansion
EA effective: direct access to external ROM
EA must enable interrupts when it is interrupted
PSEN
When reading external program memory (EA is valid), _PSEN_ low level is effective to enable the external ROM to run.
EX0/EX1: External interrupt enable signal
IT0, IT1: Interrupt mode: 1 is falling edge trigger, 0 is low level trigger, the default is low level trigger
Tips:
The serial port can be used as an I/O port: P0 is an external pull-up resistor; P1, 2, and 3 have internal pull-up resistors.
Pins involving external RAM and ROM
Time-division multiplexing:
English explanation:
cy = cycle
osc = oscillating (cycle)
External: The X in XTAL stands for external
sbit is used to store bit-addressable objects
ALE==Address Lock Enable
Crystal Oscillator
51 Minimum system:
Power supply, ground, reset circuit, crystal oscillator circuit.
Crystal Oscillator:
It provides the pulse of the complex timing circuit of 51 single-chip microcomputer, and is the heart of 51 single-chip microcomputer! The two pins XAL1 and XAL2 are the clock access pins, which are the arteries of 51. The oscillation generated by the crystal oscillator is input into the single-chip microcomputer, and there are pulse signals one by one, and the timing circuit inside 51 can work. These pulses are called clock signals, the period of the clock signal is called the clock period, and the frequency is called the clock frequency.
Previous article:51 single chip microcomputer development of static digital tube
Next article:51 MCU Minimum System Circuit - Design Tutorial
Recommended ReadingLatest update time:2024-11-16 20:37
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Fundamentals and Applications of Single Chip Microcomputers (Edited by Zhang Liguang and Chen Zhongxiao)
- Single chip microcomputer control technology (Li Shuping, Wang Yan, Zhu Yu, Zhang Xiaoyun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- TMU Introduction and Usage
- Tracking 0 ~ ± 15V regulated power supply
- The reason why there is a big difference in efficiency between electromagnetic excitation motors and permanent magnet motors
- Do you also design a power supply for pulse loads in this way? If you have any questions, please come in~
- Talk about the MSP430 library about UART asynchronous serial port
- lvds(1440*540) pointer
- I would like to ask how you learn this tutorial on circuit design based on operational amplifiers and analog integrated circuits.
- Share the method of setting the serial port baud rate of MSP430
- [RISC-V MCU CH32V103 Review] - 3: USART - Why did all three serial port tools fail?
- Bluetooth Protocol Analysis_Basic Concepts