MSP430 register Chinese annotations --- P3/4 port (without interrupt function)

Publisher:EtherealGazeLatest update time:2015-01-23 Source: laoguKeywords:MSP430 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

/****************************************************************
* 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_;

Keywords:MSP430 Reference address:MSP430 register Chinese annotations --- P3/4 port (without interrupt function)

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

MSP430 Clock Settings (V)
4. CPU running at DCO clock:    The slowest frequency we can run DCO is about 1MHz (which is also the default speed). Therefore, we will start by switching MCLK to DCO. In most systems, you will want to run ACLK at VLO or crystal. Since ACLK is running at VLO in our current code, we will turn on DCO to run.    #inc
[Microcontroller]
Application of MSP430 in frequency measurement system
1 Overview Frequency measurement plays an important role in communication systems. In recent years, the fields covered by frequency measurement technology have become more and more extensive, the measurement accuracy has become higher and higher, and the connection with different disciplines has become closer a
[Microcontroller]
Application of MSP430 in frequency measurement system
TIMSP430x461x1 Smart Water Meter and Gas Meter Solution
TI's smart water meter and gas meter solutions use MSP430 16-bit ultra-low power MCU MSP430x461x1, 2.4 GHz Zigbee and 802.15.4 solutions CC2510Fx/CC2511Fx, less than 1GHz RF devices CC1110Fx/CC1111Fx, 850-950 MHz RF front-end device CC1190, and RFID prepayment solution TRF7960/61 and ultra-low quiescent system power LM
[Embedded]
TIMSP430x461x1 Smart Water Meter and Gas Meter Solution
A brief discussion on the functional application of TSS-5 single-board controller and the characteristics of MSP430
PTN is a connection-oriented packet technology with end-to-end service management, hierarchical OAM, carrier-grade protection and other transmission features. It is mainly used to carry carrier-grade Ethernet services and is compatible with TDM, ATM and other services. PTN packet transport network is currently recogni
[Microcontroller]
A brief discussion on the functional application of TSS-5 single-board controller and the characteristics of MSP430
Design of smoke sensing alarm circuit with emergency lighting function
  Smoke alarms are generally composed of smoke sensors and smoke detection chips. Emergency lighting generally consists of a set of charging and discharging circuits connected to the indoor power supply. In buildings, they all need to be wired separately, which wastes resources and affects the appearance. If there is
[Microcontroller]
Design of smoke sensing alarm circuit with emergency lighting function
Bluetooth and MSP430 Audio Sink Reference Design
  describe   TI's Bluetooth + MSP430 Audio Heatsink Reference Design is available to customers for creating a variety of low-end, low-power audio solution applications. Some possible applications - toys, low-end Bluetooth speakers, audio playback accessories. This reference design is an affordable audio implementati
[Microcontroller]
Bluetooth and MSP430 Audio Sink Reference Design
MSP430F149 watchdog and its application
1 Overview The watchdog has two functions: 1. It can prevent the program from running away, and if the program runs away, it can reset the microcontroller; 2. It can be used as an interval generator to periodically refresh the display, read data, and perform other peripheral operations during the interrupt. 2. Setti
[Microcontroller]
Real-time multi-task operating system based on MSP430
   introduction    1 The significance of using RTOS on MSP430   It is understandable that it is meaningless to use RTOS on MSP430. Because the hardware resources of MSP430 are limited (for example, MSP430F149 has only 2KB RAM), it is impossible to port any commercial operating system to MSP430. Currently, the only
[Microcontroller]
Real-time multi-task operating system based on MSP430
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号