LPC2103 GPIO register

Publisher:PositiveEnergyLatest update time:2015-07-30 Source: eefocusKeywords:LPC2103  GPIO  Register Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
GPIO port 0 mode select register
page23
 
         GPIO0M bit0 is the GPIO port 0 mode select. When it is 0, GPIO is accessed through the APB address (Legacy GPIO). When it is 1, high-speed GPIO port 0 is enabled and GPIO is accessed through the on-chip storage area (Fast GPIO).
 
 
Pin function select register
Page67
PINSEL0 and PINSEL1
 
         The PINSEL0 and PINSEL1 registers control the function of each pin (see Table 62 and Table 63 of the datasheet). The direction control bit of the IO0DIR register is only valid when the GPIO function of the corresponding pin is enabled. When the pin is in other functions, the CPU automatically configures the pin direction.
 
PINSEL0 and PINSET1 values Function Reset value
00 Main function: as GPIO pin 00
01 First multiplexing function  
10 Second multiplexing function  
11 The third multiplexing function  
 
         32-bit register PINSEL0 corresponds to PIN0.0-PIN0.15; 32-bit register PINSEL0 corresponds to PIN0.16-PIN0.31.
 
 
GPIO control register:
       Page71
Slow GPIO control register (APB access register)
register describe access Reset value address
IOPIN GPIO pin value register. Regardless of the direction of the pin, the current value of the pin can be read in this register R/W NA 0xE002 8000
IO0PIN
IOSET GPIO pin set register. Writing 1 sets the corresponding pin to a high level, and writing low has no effect. R/W 0x0000 0000 0xE002 8004
IO0SET
IODIR GPIO pin direction control register. This register controls the direction of each pin independently, and writing 1 sets the corresponding pin to output. R/W 0x0000 0000 0xE002 8008
IO0DIR
IOCLR GPIO pin clear register. Writing 1 sets the corresponding pin to a low level, and writing low has no effect. WO 0x0000 0000 0xE002 800C
IO0CLR
 
Fast GPIO Control Registers (Local Interface Memory Access Registers – Enhanced GPIO Features)
register describe access Reset value address
FIODIR Fast GPIO pin direction control register. This register controls the direction of each pin independently, and writing 1 sets the corresponding pin to output. R/W 0x0000 0000 0x3FFF C000
FIO0DIR
FIOMASK Fast GPIO pin mask register. Any operation on the fast IO pin is only valid when the corresponding bit of this register is activated (written to 0). R/W 0x0000 0000 0x3FFF C010
FIO0MASK
FIOPIN Fast GPIO pin value register. R/W NA 0x3FFF C014
FIO0PIN
 
FIOSET GPIO pin set register. Writing 1 sets the corresponding pin to a high level, and writing low has no effect. R/W 0x0000 0000 0x3FFF C018
FIO0SET
FIOCLR GPIO pin clear register. Writing 1 sets the corresponding pin to a low level, and writing low has no effect. WO 0x0000 0000 0x3FFF C01C
FIO0CLR
 
The FIODIR/FIOMASK/FIOPIN/FIOSET/FIOCLR registers can be half-word/byte addressed, see P74.
Keywords:LPC2103  GPIO  Register Reference address:LPC2103 GPIO register

Previous article:LPC2103 PLL register
Next article:Implementation of UPnP automatic port mapping function based on STM32 and W5500

Recommended ReadingLatest update time:2024-11-15 15:58

Driving LEDs using GPIO and interrupt controller on STM8 Nucleo-64 development board
The NUCLEO-8S208RB (based on STM8S208RBT6) and NUCLEO-8L152R8 (based on STM8L152R8T6) development boards can be used to evaluate the main features of all STM8S series and STM8L series microcontrollers. This application note briefly describes how to drive a set of LED indicators using the GPIO and interrupt controlle
[Microcontroller]
Driving LEDs using GPIO and interrupt controller on STM8 Nucleo-64 development board
STM32 Notes External Interrupt GPIO
b) Initialization function definition: void EXTI_Configuration(void); //Define IO interrupt initialization function c) Initialization function call: EXTI_Configuration(); //IO interrupt initialization function call Simple application: d) Initialization function: void EXTI_Configuration(void) {   EXTI_InitTypeDef
[Microcontroller]
Keil simulation shows "Can not read register xx while CPU is running"
The program can be downloaded using jlink, but the following error always occurs during online simulation: ***JLink Error: Could not start CPU core. (ErrorCode: -1) **JLink Warning: CPU could not be halted ***JLink Error: Can not read register 15 (R15) while CPU is running ***JLink Error: Can not read register 16
[Microcontroller]
stm8s gpio port configuration
  Introduction   The general input/output ports of STM8 are used for data transmission between the chip and the outside. An IO port can include up to 8 pins, each of which can be independently programmed as a digital input or digital output port. In addition, some ports may also have multiplexing functions such as ana
[Microcontroller]
stm8s gpio port configuration
STM32 GPIO - Flowing Light Routine Learning Summary
By controlling LED lights, you can become familiar with STM32's memory structure, address mapping, clock tree, library files, library utilization methods, and development project steps, and establish STM32 development ideas. This is the first project I have built. Since it involves a wide range of areas and the know
[Microcontroller]
【ARM】ARM Architecture - GPIO
GPIO     Gerneral-Purpose IO ports, that is, general IO ports.   In embedded systems, there are often a large number of relatively simple external devices/circuits.   Some of these devices/circuits require the CPU to provide control means, while others need to be used as input signals by the CPU.   Many such devic
[Microcontroller]
STM8L Study Notes-GPIO Port Operation (I)
STM8 provides firmware library functions just like STM32, but it is not as complete as STM32. The description document is in chm format and the name is stm8l15x_stdperiph_lib_um.chm. You can download it from this official website.  The GPIO registers are:  Output Register (ODR),  Input register (IDR),  Direction Reg
[Microcontroller]
ADS_LPC2103 development board SPI 4-bit digital tube test experiment
#include "config.h"  #define HC595_CS (1 #define NixieTube_CS (1 void DelayMS(uint32 dly) {     uint32 i;     for(; dly > 0; dly--)     {         for(i = 0; i     } } void MSPI_Init(void) {      PINSEL0 = (PINSEL0 & 0xFFFF00FF) | 0x00001500;     SPCCR = 0x52; // Set SPI clock division      SP
[Microcontroller]
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号