Questions tagged [lpc]

LPC is a series of 32-bit ARM microcontrollers manufactured by NXP Semiconductors.

Filter by
Sorted by
Tagged with
0
votes
1answer
108 views

TLV5606 interfacing

Has anyone had any experience interfacing the TLV5606 DAC with a microcontroller (via SPI)? I'm having trouble getting any output from the DAC, which I suspect is down to my code. Does anyone have ...
0
votes
2answers
212 views

DAPLink firmware doesn't operate with OpenOCD

  Why this is not a duplicate Some people seem to think this question is a duplicate, but there is an important difference: The How to update the SWDAP firmware? question is all about how to ...
1
vote
1answer
99 views

Cortex M4 memory management suggestions: best data/code placement

I'm trying to implement a rather complex (at least for me!) system on a Cortex M4 mcu: LPC4370. This one has HighSpeed ADC (up to 80Msps), DMA and DSP (Single Instruction Multiple Data) instructions. ...
4
votes
1answer
4k views

How can I log information from code in IAR Embedded Workbench to a log file?

I'm trying to develop an application for the NXP LPC1788 microcontroller and I would like to be able to log formatted strings at arbitrary points within the source code to a log file in a way that has ...
4
votes
1answer
326 views

Reading useful data from barcode input

I have interfaced a HID bar-code scanner with LPC2468. It is sending data when i scan a bar-code, it sends a lot of bytes when i make a scan, how can i know out of these bytes which are the bytes ...
1
vote
0answers
177 views

LPC-Link2 Not Working as CMSIS-DAP with OpenOCD

I'm working on a project with the NXP LPC824 using VisualGDB and OpenOCD. Using the LPCXpresso824-MAX dev board I had no trouble programming and debugging using OpenOCD. I am using the version of ...
0
votes
1answer
188 views

How to update the SWDAP firmware?

1. About the SWDAP probe I bought an SWDAP probe some time ago from L-Tek (see https://www.l-tek.com/web-shop/l-tek-swdap-interface/). It took me some time to figure out the terminology, but I ...
0
votes
0answers
18 views

Replacement for NXP LPC92A1 FDH

I have developed a project in LPC932A1 FDH and only the HEX code is with me now. Unfortunately the part is not available in the market but P89LPC932 is available. Can I use the old HEX file in the ...
0
votes
1answer
125 views

How can I make my ILI9486 Display not show my frame until I'm done? (Flickering!)

I have a ILI9486 TFT display and I am using an LPC1768 with it. The issue I am having is in the following: ...
0
votes
0answers
50 views

LPC2148 EEPROM Emulation

I want to store some calibration and configuration data in lpc2148 flash memory. Also this data must be loaded into ram at startup. When data is changed i will write it into the flash(using IAP). ...
0
votes
0answers
23 views

Can FOTA be performed by changing the execution point of the code i.e, changing the program counter in lpc1759

For FOTA can we divide the memory into two blocks, eg : block A and block B. And whenever there is a new version of firmware detected, we shall change the execution point of the code. Is this ...
1
vote
2answers
71 views

How to enter into ISP mode through 'reinvoke ISP' in LPC1759

In LPC1759, I entered ISP through "reinvoke ISP" with the following steps Disable PLL Reset timer 1 Re-map interrupt vectors Set watch dog timeout Reinvoke ISP After entering into ISP, What exactly ...
2
votes
2answers
324 views

FatFs f_write not working in LPC1788 Timer ISR

I’m using LPC1788 MCU with KeilV5 compiler. I Have a Timer ISR in which I read a value form specific ADC channel and write it into a SD-Card using FATFS library. Here is my Timer ISR code: ...
3
votes
3answers
224 views

Choosing the right microcontroller [closed]

How do you choose a micro-controller for your project? My hardware requirements are : I2c SPI ADC channels SMD package 3.3V operating voltage A few GPIOs. There are so many microcontrollers ...
0
votes
1answer
73 views

Deep power down mode in LPC17xx

I am currently working on a home project. I want to put my LPC1769 in deep power down mode. this is the code I have so far: ...
1
vote
1answer
63 views

LPC2148 baud rate equation

I'm little confused about the baud rate calculating equation of LPC2148 In data sheet equation is But in every tutorial I could find equation is Second equation sets the baud rate as required. ...
0
votes
2answers
1k views

Keil : LPC1768 UART : Error: L6200E: Symbol a multiply defined (by main.o and uart.o)

I am learning ARM programming. I've configured uart of lpc2148 before. But there I included entire code in single file. Today I separated them in .c and .h file. But When tried to build, I got ...
10
votes
1answer
7k views

Storing a secure key in an embedded device's memory

I am working on an embedded device which send/receive data and stored them in ciphertext mode (encrypted mode). Now what's best approach for storing keys (I used ARM CORTEX M series MCU)? 1-Storing ...
1
vote
2answers
74 views

Changing pin direction without glitching on LPC800

I'm looking at an LPC812 Cortex M0+ microcontroller and its GPIO functions. On a PIC microcontroller, one would always set the LATch prior to changing the direction of a given pin. This avoids the ...
1
vote
1answer
194 views

smart card clocking using NXP

In my current project, I'm trying to implement a smart card reader using LPC1788 which has a built-in smart card interface. Smart cards use the ISO7816-3 standard to communicate with the outside world....
2
votes
1answer
91 views

ADC Burst mode in LPC2119 not working

I have been trying to work with ADC using ARM 7 LPC 2119 in burst mode however this functionality is not working. My code is as follows: ...
4
votes
1answer
227 views

LPC1343 double pin functions

I was looking to create a LPC1343 development board, but I noticed something odd. If you look at the pinout for this MCU you can see double functions for some pins. This is common, so you can program ...
1
vote
1answer
100 views

Is softconnect is necessary in lpc1343

I am doing my own development board using LPC1343.I gone through the application note AN10986.I noticed the topic "Automating USB ISP".In that they described about USB softconnect. Now I am designing ...
0
votes
1answer
38 views

LPC1347 group level interrupt clearing

I'm using LPC1347 board which has two group interrupts. I'd like to write simple program which uses only one pin group interrupt (for testing only). Edge interrupts works well but when I change ...
1
vote
2answers
49 views

Microcontroller (lpc1347) RMW operation

I am a newbie and I am trying to understand how particular register (in lpc1347) works. Maybe it's common problem, maybe it's specific to lpc boards. I'd like to learn how GPIO and PININT register ...
1
vote
0answers
286 views

Sometimes LCD display is initialized half white

Rarely right after the startup my LCD display shows half the screen completely white, the other half shows the software without problems. The main problem here is that to see this problem I have to ...
0
votes
1answer
2k views

VDDA / VSSA - how do LC filters isolate the input pins to minimize error and noise

I am trying to design a PCB with LPC4088 microcontroller which needs digital power supply VDD/VSS and analog power supply VDDA/VSSA. I had no problem with understanding how to connect digital power ...
0
votes
0answers
67 views

Jlink Commander doesn't find LPC4088 microcontroller on my homemade PCB

I just finished a homemade PCB with a LPC4088 microcontroller and some other components. When I connected my board to the J-link EDU probe over JTAG connector and start Jlink Commander, Cortex-M4 ...
2
votes
1answer
96 views

Using a radio board with Contiki-OS on lpc1347 mcu [closed]

I am trying to build a port for Contiki on my lpc1347 board. So far I have been able to run a basic LED blinking/Hello_World Contiki process/program on my board. My next goal is to use a cc2530 radio ...
-1
votes
3answers
315 views

Checking Full condition of RBR FIFO of LPC2148 UART

1)How do you check whether the RBR FIFO is full in case of LPC2148 UART? I know that the empty condition can be checked using Receiver Data Ready(RDR) of Line Status Register(LSR). But there is no way ...
0
votes
1answer
423 views

Microcontrollers interrupts what is “pending”?

I just started learning timers with my lpc 1347 board. Here is simple code from lpcopen ...
0
votes
0answers
119 views

LPC4088 - JTAG dilemma

I have been trying to make a LPC4088 (user manual, datasheet) PCB for some time now and I have a dilemma concerning a JTAG. For connecting a 20-pin JTAG connector I followed the pinning table found on ...
1
vote
1answer
524 views

GPIO speed in LPC812 Cortex-M0 MCU from NXP

Based on datasheet page 17: GPIO registers are located on the ARM Cortex M0+ IO bus for fastest possible single-cycle I/O timing, allowing GPIO toggling with rates of up to 15 MHz. And I used a ...
1
vote
2answers
184 views

ALU,RAM and ROM test for LPC 1778

Im working on a non safety project and as part of the Initialization tests I wanted to check the internal memory of LPC1778 for proper functionality before beginning the application. I dont intend to ...
1
vote
1answer
3k views

openOCD flash 'erase_sector' command NOT erasing lpc1768?

I am trying to debug LPC1768 using a JTAG debugger and openOCD(version 0.7.0). My os is Win7 . I'm connetced to the openOCD via telnet(port 4444) commands like halt, flash info, resume etc do work ...
4
votes
1answer
335 views

How to get I2C to shut up while waiting for data in master transmit mode on LPC1114

I have an LPC1114(FN28) that I am writing some code for. Currently I am trying to provide an asynchronous view of the I2C interface to my code (the chip has a built-in I2C controller). The controller ...
2
votes
1answer
180 views

Purpose of this coding style

I came across this piece of code for an LPCxxxx microcontroller, in the reset routine. ...
0
votes
1answer
81 views

Sampling error in Lpc1769's Adc

I am trying to sample sin wave using Lpc1769's Adc. I am sampling signal using adc and send this data to pc using serial port (115200 baud rate). My sampling frequency is 1.5 kHz. When I sample 100 Hz ...
0
votes
1answer
289 views

LPC1769 PC Communication

I am using LPC1769 micro controller and planning to use one of its serial (UART) port for PC communication. It has 4 UART ports (UART0,1,2 and 3) For PC communication purpose, can I use all ports or ...
0
votes
1answer
307 views

Lpc1769 Adc Reading Problem

I am trying to use LPC1769's ADC. The ADC is operating at 12 MHz. In the LPC1769, for one conversion, 65 clock cycles are required. It means that for one conversion, 5.41 us are required. I toggle one ...
0
votes
1answer
76 views

Variations in pulses generated and read by a uC

I have a 2 uC's(LPC1778 and a PIC), that perform 2 separate functions. The PIC generates pulses that are coded,where each bit of the code has a pulse duration of 1ms and a complete code is 8 bits long(...
0
votes
1answer
87 views

LPC4088 - pin no. 1

I am dealing with LPC4088 microcontroller and I have a problem because I am not sure where is the pin no. 1. In the documentation it says there is a dot to index the pin: But in reallity it looks ...
1
vote
2answers
366 views

Generating pulses via timer match output or timer ISR?

I'm using LPC1778 uC for a project and want to know what is the difference between generating pulses via timer match output and via toggling a pin in a timer ISR. What are the pros and cons of both ...
1
vote
1answer
170 views

Priority among prioritised interrupts

I am using 2 interrupts on LPC1778. One for CAN and one for timer. The CAN interrupts whenever a new message is received. The timer interrupts every 200uS. The priority for timer interrupt is the ...
0
votes
1answer
435 views

LPc11u68 Recognized as an USB mass storage device even when programmed in HID class

When I connected a newbie LPC11u68 to USB port,it recognized in windows as an USB mass storage device.When I programmed LPCOPEN HID example by Flash magic to it,after resetting the board,my PC can't ...
0
votes
1answer
640 views

CAN Loopback test using SN65HVD233-HT

Im using the SN65HVD233-HT CAN transceiver where it states that loopback is possible without data going out to the bus. Im using LPC1778 uC and want to know,if i enable the loopback pin in the ...
2
votes
1answer
1k views

Rx data rate on CAN bus faster than polling rate

I'm working on a safety-critical SIL 4 system and so interrupts have to be kept to a bare minimum (hence using only timer interrupts). CAN is used in polling mode. Suppose data arrives at a CAN node ...
2
votes
1answer
601 views

LPC1788 external interrupt with CMSIS

There was a wide GPIO functions in the CMSIS initial versions which made easy setting and initialization of interrupts,like: ...
0
votes
1answer
442 views

LPC1769 CAN communication

I am learning CAN bus with LPC1769 and the LPCXpresso base board. I am in badly need of some demo code on CAN communication on the LPC1769 to know how it can be configured and works, but I can not ...
0
votes
1answer
875 views

Cannot transmit message (receiving is working, but without ack) on CAN bus (LPC2368)

I work with microcontroller LPC2368. After initialisation of the CAN interface to normal mode (not listen-only mode), I can receive all messages, but the microcontroller cannot send an acknowledge ...