

The following are the definitions that will be used for this program.Input: The current state of digital port pins can be read from this register, regardless of pin direction or alternate function selection (as long as pins are not configured as an input to ADC). Output: Writing to this register places corresponding values in all bits of the particular PORT pins. This register is used for both reading and writing data from/to the port. Writing to this register helps to place corresponding values in all bits of the particular port pins.
PROTEUS LIBRARY FOR LPC1768 HOW TO
The below table shows how to choose the required function for a particular pin using two bits of the PINSEL register.įIOPIN is the fast port pin value register and is used for both reading and writing data to and from the port. The first sixteen pin functions of PORT0 can be configured by the 32 bits of PINSEL0 register whereas the other 16 bits are configured using the 32 bits of the PINSEL1 register. So, at least two PINSEL registers are required to configure the port pins. Each pin is provided with two bits as there can be up to four functions to choose among. The PINSEL register can be configured to choose the required function. The GPIO pins have multiple functions a minimum of one to a maximum of four. PINSEL is the pin select function register. With the help of these registers, the digital signals are transmitted. They are GPIO pins select register, GPIO direction control register, a fast port output set register, fast port output clear register, and fast port pin value register. There are five registers in an LPC1768 device that are associated with the GPIO functionality. This chapter deals with the firmware details of interfacing an LED with LPC1768 microcontroller device. They are pin compatible to the 100 pins LPC236x ARM7-based microcontroller series. The operating frequency of LPC1768 would go up to 100 MHz. The ARM-based microcontrollers also feature advanced debug features as well as support block integration. It features a high level of integration and minimal power consumption. LPC1768 is a Cortex-M3 based microcontroller.
