Adc; I2C Eeprom - NEX ROBOTICS LPC2148 Pro Manual

Table of Contents

Advertisement

Description: This application code demonstrates UART1 peripheral on LPC2148. On reset,
it sends a string of characters to the terminal software running on the PC. It then asks for a
character to be sent from the PC to complete the communication test.

4.7 ADC

Hardware Setup: Insert trimpot jumpers AN1 & AN2.
Connect a DB9 cable between PC and UART1. Setup the terminal software with following
settings:
Enable terminal to receive data in string format.
Load the ADC.hex file from LPC2148>codes>ADC folder using flash magic on the
microcontroller flash memory.
Description: After loading the hex file, press reset switch. This application code
demonstrates ADC interfacing on LPC2148. The two trimpots are connected to AD0.1 and
AD0.2 analog input channels of the microcontroller. The digital data is used to represent the
measured voltage and it is sent to the terminal software running on the PC. AN1 is connected
to AD0.1 and AN2 is connected to AD0.2. By varying the potentiometer you can observe the
change in values on serial terminal software running on the PC.

4.8 I2C EEPROM

Hardware Setup: Insert LED jumpers D1-D4. Insert I2C jumpers SDA & SCL
Connect a DB9 cable between PC and UART0. Setup the terminal software with following
settings:
Load the I2C_EEPROM.hex file from LPC2148>codes> I2C EEPROM folder using flash
magic on the microcontroller flash memory.
Description: This application code explains reading and writing on I2C EEPROM 24LC04.
On reset, microcontroller will write 16 bytes of DATA on the EEPROM 24LC04 and read
back the same data. The read data is then sent to UART0, which can be observed on the
receive window of terminal software.
NEX Robotics Pvt. Ltd.
www.nex-robotics.com
Baudrate
9600
Databits
8
Parity
None
Stopbits
1
Baudrate
9600
Databits
8
Parity
None
Stopbits
1
LPC2148 DEVELOPMENT BOARD
53

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LPC2148 Pro and is the answer not in the manual?

Questions and answers

Related Products for NEX ROBOTICS LPC2148 Pro

Table of Contents