Monday, June 17, 2024

Interfacing LPC2148 32bit Microcontroller With The PC Using NI LabVIEW

Comment errors or corrections found for this circuit, and get the chance to win big!

About LPC2148

NXP’s LPC2148 is an ARM based high-performance 32-bit RISC Microcontroller preloaded with many in-built features and peripherals, In-System Programming (ISP) and In-Application Programming (IAP).

It suits perfectly for beginners to get idea about hardware and software developments,
it has two 10 bits ADC’s While ADC0 has six channels, ADC1 has eight channels, it converts input voltage in range of 0 to 3.3V only.

UART is a serial communication protocol in which data is transferred serially bit by bit at a time.

The USB-to- UART bridge acts like a translator between the two interfaces to allow a device to send/receive information on one interface and receive/send the information on the other interface.

Interfacing LPC2148 Microcontroller with the PC using NI – LabVIEW

LPC2148 microcontroller UART 0 port is used to interface the PC using NI-LabVIEW through USB to UART bridge converter, ADC 0 channel 1 is used to convert its analog input voltage in terms of percentage by using a simple formula ((ADC input voltage /3.3) *100).

- Advertisement -

Components Required

  • LPC2148 Microcontroller Development Board -1no.
  • PC with Windows 10/64-bit OS – 1no.
  • USB cable – 2no.s

Softwares Required

  • Keil uVision4
  • Flash Magic
  • NI LabVIEW 2020

Getting Started with Softwares

Keil uVision4:

Please download the Keil uVision4 software for windows 10/64bit PC from and after successful installation write a program in c language as per the requirement and then compile it to generate the hex file.

Flash Magic Programmer:

Download the latest version from this link and follow the Getting started with Flash Programmer procedure to select device and port parameters to establish the communication to dump the hex file in to the device.

- Advertisement -

LabVIEW Programming:

Download the latest Evaluation version LabVIEW software from this link.

After successful installation of LabVIEW, you can select the required pallets as per the program requirement from given block diagram and front panel as per the below images.

Testing Hardwares with LabVIEW:

Connect the LPC2148 microcontroller development board UART0 to the PC through UART to USB bridge converter and select the required serial port parameters using NI LabVIEW to read the ADC analog input interms of percentage.


Unique DIY Projects

Electronics News

Truly Innovative Tech

MOst Popular Videos

Electronics Components