Questions tagged [lpc]

Refers to a line of ARM-based microcontrollers by NXP Semiconductors.

Refers to a line of ARM-based microcontrollers by NXP Semiconductors.

LPC is a family of 32-bit microcontroller integrated circuits by NXP Semiconductors (formerly Philips Semiconductors). The LPC chips are grouped into related series that are based around the same 32-bit ARM processor core, such as the Cortex-M4F, Cortex-M3, Cortex-M0+, or Cortex-M0. Internally, each micro controller consists of the processor core, static RAM memory, flash memory, debugging interface, and various peripherals. The legacy LPC families were based on the 8-bit 80C51 core. As of February 2011, NXP had shipped over one billion ARM processor-based chips.

Source: NXP LPC at Wikipedia

194 questions
3
votes
1 answer

LPC deep sleep mode example

First of all clarify that I'm a newbie in embedded technology. I'm using a NXP LPC1769 board. For some days I've been looking for an example on how to use a watchdog to wake up from deep-sleep mode but I can not find it. I read chapter 21.1 from…
arturn
  • 725
  • 2
  • 11
  • 25
3
votes
2 answers

ARM-C Inter-working

I am trying out a simple program for ARM-C inter-working. Here is the code: #include #include int Double(int a); extern int Start(void); int main(){ int result=0; printf("in C…
gst
  • 1,251
  • 1
  • 14
  • 32
3
votes
5 answers

Receive message of undefined size in UART in C

I'm writing my own drivers for LPC2148 and a question came to mind. How do I receive a message of unspecified size in UART? The only 2 things that come to mind are: 1 - Configure a watchdog and end the receiving when the time runs out. 2- make it…
morcillo
  • 1,091
  • 5
  • 19
  • 51
3
votes
3 answers

Trying to free memory after calling strcpy causes the program to crash

I understand that a lot of people here complain about strcpy, but I haven't found anything using search that addresses the issue I have. First off, calling strcpy itself doesn't cause any sort of crash/segmentation fault itself. Secondly, the code…
Tagc
  • 8,736
  • 7
  • 61
  • 114
3
votes
1 answer

SD card write speed in SPI mode

I have an SD card (or SDHC card) connected to a microcontroller via SPI mode. I am using Chan’s FAT library. I write data to it which comes from an 8192 byte buffer (buffer cannot be larger due to insufficient RAM). This writing is performed…
wlamers
  • 1,276
  • 2
  • 12
  • 14
2
votes
3 answers

LPC17xx: Check if RTC is running

I am using NXP LPC17xx family microcontrollers (LPC1759 and LPC1768). How can I determine if RTC is running for sure? I am doing a test on LPC_RTC->CCR & RTC_CCR_CLKEN but it seems no much reliable. I have seen values in year 3197 or so when…
j4x
  • 3,595
  • 3
  • 33
  • 64
2
votes
1 answer

autocorrelation matrix with order in Python

I have a equation of autocorrelation matrix with lag needed for lpc analysis: I wrote methods: def autocorr_matrix(x,order): R = numpy.zeros((order, order)) for i in range(0,order): for j in range(0,order): R[i,j] =…
Puch
  • 55
  • 7
2
votes
1 answer

How can I debug "undefined instruction" faults for an LPC1788 in IAR Embedded Workbench?

I'm developing an application for an LPC1788 (Cortex-M3) microcontroller. This application involves sending and receiving CAN messages, and I find that when I subject it to heavy load and twiddle my thumbs for 30-60 minutes, a hardfault will…
Tagc
  • 8,736
  • 7
  • 61
  • 114
2
votes
1 answer

Using cc2530 radio with contiki

I am trying to build a port for Contiki on my lpc1347 board. I have set up the mcu libraries and makefiles, all that is left is to add the radio support. My goal is to use a cc2530 radio that I have, the problem is i do not know much about this. I…
DarthSpeedious
  • 965
  • 1
  • 13
  • 25
2
votes
1 answer

LPC17XX SPI: Implementing pulse-sensitive(edge-triggered) interrupts

I would like to implement a pulse-sensitive, aka edge-triggered, interrupt on an LPC1759 microcontroller. In the UM10360.pdf datasheet and ARM Cortex-M3 user guide, it says that interrupts can be triggered based on level- or pulse-sensitive…
apandit
  • 808
  • 1
  • 7
  • 16
2
votes
1 answer

How can I improve the rate at which the CAN IRQ is called for the LPC1788 microcontroller?

I'm developing an application for the NXP LPC1788 microcontroller using the IAR Embedded Workbench IDE and one of the requirements is to receive CAN messages off of the CAN1 port as fast as possible. My issue is that there seems to be a delay of…
Tagc
  • 8,736
  • 7
  • 61
  • 114
2
votes
1 answer

How can I use the USB DMA Engine for the LPC1788?

I'm developing code for the NXP LPC1788 microcontroller and lately I've been trying to improve the way that the USB works. My current issue with the USB is that it's configured in slave mode and, due to the high volume of messages that have to be…
Tagc
  • 8,736
  • 7
  • 61
  • 114
2
votes
3 answers

LPC1788 microcontroller intermittently not sending USB messages

I'm developing code for the NXP LPC1788 microcontroller, and part of my work is making the product based on it USB-compatible. Most of the legwork is done and in general communication over USB works almost as well as over CAN. However, one of the…
Tagc
  • 8,736
  • 7
  • 61
  • 114
2
votes
1 answer

LPC2148 USB Send/Receive Data

Using the Keil USB HID example I was finally able to get my device which uses a LPC2148 to enumerate in Windows successfully; the USB HID example required some tweaking. I am using interrupt method of transfer. I am using USBlyzer to sniff my USB…
Wesley Carlsen
  • 137
  • 3
  • 19
2
votes
1 answer

Thumb Assembler Interrupt in custom SRAM section

I'd like to have an interrupt routine in SRAM on a LPC1768. I'm using a GCC toolchain similar to Yagarto. Currently I can do the following from C: NVIC_SetVector(TIMER0_IRQn, interruptTest); ...Then in my assembly file: .text /* .section …
user1985657
1
2
3
12 13