/****************************************************************
* DIGITAL I/O Port3/4 register definition without interrupt function
****************************************************************/
#define P3IN_ 0x0018 /* P3 input register*/
const sfrb P3IN = P3IN_;
#define P3OUT_ 0x0019 /* P3 output register*/
sfrb P3OUT = P3OUT_;
#define P3DIR_ 0x001A /* P3 direction select register*/
sfrb P3DIR = P3DIR_;
#define P3SEL_ 0x001B /* P3 function select register*/
sfrb P3SEL = P3SEL_;
#define P4IN_ 0x001C /* P4 input register*/
const sfrb P4IN = P4IN_;
#define P4OUT_ 0x001D /* P4 output register*/
sfrb P4OUT = P4OUT_;
#define P4DIR_ 0x001E /* P4 direction select register*/
sfrb P4DIR = P4DIR_;
#define P4SEL_ 0x001F /* P4 function select register*/
sfrb P4SEL = P4SEL_;
/************************************************************
* DIGITAL I/O Port5/6 I/O port register definition PORT5 and 6 No interrupt function
*************************************************** **********/
#define P5IN_ 0x0030 /* P5 input register*/
const sfrb P5IN = P5IN_;
#define P5OUT_ 0x0031 /* P5 output register*/
sfrb P5OUT = P5OUT_;
#define P5DIR_ 0x0032 /* P5 direction select register*/
sfrb P5DIR = P5DIR_;
#define P5SEL_ 0x0033 /* P5 function select register*/
sfrb P5SEL = P5SEL_;
#define P6IN_ 0x0034 /* P6 input register*/
const sfrb P6IN = P6IN_;
#define P6OUT_ 0x0035 /* P6 output register*/
sfrb P6OUT = P6OUT_;
#define P6DIR_ 0x0036 /* P6 direction select register*/
sfrb P6DIR = P6DIR_;
#define P6SEL_ 0x0037 /* P6 function select register*/
sfrb P6SEL = P6SEL_;
Previous article:MSP430 register Chinese annotations --- P1/2 port (with interrupt function)
Next article:Logic interface technology of low power MSP430 microcontroller in 3V and 5V mixed system
Recommended ReadingLatest update time:2024-11-17 05:36
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!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- 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
- Here the role of the voltage regulator + diode combination
- Bluetooth bracelet master control selection
- A small bug in mpy on ESP32/ESP8266
- 【XMC4800 Relax EtherCAT Kit Review】+ Getting Started with DAVE, PWM Module Application
- Explain the circuit diagram, thanks
- STM32 branch can support flash chips larger than 16MB
- RSL10-SENSE-DB-GEVK Environmental Monitoring Node Design
- AT32F425-Evaluation Report-CANOpen Porting 05
- RSIC-V IDE MRS User Notes (V): Code Erasure Problem Before Debugging
- There are indeed many people who ask for money, and the most annoying ones are the brainless ones.