Skip to main content
5 votes
Accepted

LPC4088 - pin no. 1

Pin one is in the one you indicated. Lower left in your picture. That is how I would read the indications given on page 8 of the datasheet. Additionaly, pin 1 is usually the lower left pin when the ...
JRE's user avatar
  • 71.9k
5 votes
Accepted

Microcontrollers interrupts what is "pending"?

Most micro-controllers work in the following way: a flag (bit) is set in a register when a particular event occurs in the peripheral (e.g., in your case, a timer match occurs). This flag must be ...
Carl's user avatar
  • 91
4 votes
Accepted

ALU,RAM and ROM test for LPC 1778

What are you afraid of? That an internal route between gates within the chip be broken or shorted? If it was the case, it would certainly mean the chip was physically broken. I mean, broken as in "...
dim's user avatar
  • 16.1k
4 votes
Accepted

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

Disabling the interrupt when you have no data to send is exactly the correct approach to take with a hardware I2C master controller. When the data is available, re-enable the interrupt and you'll ...
Dave Tweed's user avatar
  • 174k
4 votes
Accepted

FatFs f_write not working in LPC1788 Timer ISR

It is usually a very, very bad idea to use FatFS from interrupts. The most common pattern is to acquire the data in the ISR, store is somewhere and have a main loop task that stores that queued data ...
filo's user avatar
  • 9,011
4 votes

Choosing the right microcontroller

Almost all microcontrollers have / can support the features you list. So in my opinion you will not find what you need by looking at the features in your list. A very important feature (for me) is ...
Bimpelrekkie's user avatar
4 votes

Choosing the right microcontroller

I think it depends on many things, like: You mentioned already: Capabilities/features Familiarity (yourself) Others can be: Cost Familiarity in your company Expected support from the manufacturer ...
Michel Keijzers's user avatar
3 votes

LPC2148 baud rate equation

The only thing that makes sense is that the equation in the datasheet has an error. That same datasheet says: The U0DLL and U0DLM registers together form a 16 bit divisor where U0DLL contains the ...
domen's user avatar
  • 250
3 votes
Accepted

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

By isolated, they really mean a supply isolated from the switching noise of the rest of the circuitry. When digital circuitry switches low/high or high/low, a sharp current is drawn during the ...
TonyM's user avatar
  • 23.2k
3 votes

FatFs f_write not working in LPC1788 Timer ISR

+1 for @filo, who correctly addressed the problem of nested interrupts either not enabled (or having the same priority, therefore not being triggered). However the problem is not with the SPI (which ...
next-hack's user avatar
  • 5,367
3 votes
Accepted

LPC1788 external interrupt with CMSIS

There are no newer versions of these functions, because neither older ones ever existed! To clarify myself these are not CMSIS functions. Downloading the official package from NXP, in either version ...
Fotis Panagiotopoulos's user avatar
3 votes

LPC1769 PC Communication

As far as the chip is concerned, you can use any UART port for any purpose you like. However, if you are using a particular evaluation board or a particular software library, these may impose ...
Dave Tweed's user avatar
  • 174k
2 votes

ALU,RAM and ROM test for LPC 1778

Memory check: Run a CRC over the entire memory contents except the place where you store the expected value, and determine the expected value during build time. Since the expected value is different ...
Simon Richter's user avatar
2 votes
Accepted

Purpose of this coding style

In this particular case, not covered in the Stackoverflow answers, it gives you the opportunity to declare a local variable that is shared among the three statements and used nowhere else. This kind ...
Dave Tweed's user avatar
  • 174k
2 votes
Accepted

Priority among prioritised interrupts

Refer to the fine User Manual. The LPC1778 microcontroller contains an ARM Cortex-M3 core which includes the nested vectored interrupt controller (NVIC) peripheral. The key word here is "nested", ...
kkrambo's user avatar
  • 2,388
2 votes
Accepted

LPC1343 double pin functions

Looking in the user manual if actually found the pin function register. You can, just like the other pins, switch the function via this register. Which I still find odd, because you wouldn't be able ...
wuppie367's user avatar
  • 151
2 votes
Accepted

Changing pin direction without glitching on LPC800

You're over-analysing this. There are two registers involved in a GPIO pin, the output data register, and the direction register. Both of these are writable at any time (and I agree your Section 7.7.2 ...
Sean Houlihane's user avatar
2 votes
Accepted

How to update the SWDAP firmware?

From the mbed page for the product: Reprogramming SWDAP When a new SWDAP is plugged in to your machine, it will not contain valid any firmware, and so will appear as a disk drive called "CRP ...
Ron Beyer's user avatar
  • 2,578
2 votes

DAPLink firmware doesn't operate with OpenOCD

Have you tried pyOCD? It works flawlessly with DAPLink, has great support and community directly on ...
CeDeROM's user avatar
  • 211
1 vote

Deep power down mode in LPC17xx

Yes - after configuring the power/sleep mode you have to issue a WFE or WFI instruction to make the MCU enter the desired sleep mode. You are not including CMSIS headers (eg. ...
filo's user avatar
  • 9,011
1 vote

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

You have declared a and i in a header, so they're being defined in each translation unit they're compiled in. You should put ...
Colin's user avatar
  • 4,547
1 vote

Changing pin direction without glitching on LPC800

However, it is not obvious from the user manual (UM10601) whether writing a value to a pin which is currently an input has any effect. It has not. See output enable...
Jeroen3's user avatar
  • 23k
1 vote
Accepted

ADC Burst mode in LPC2119 not working

On scanning through the datasheet Page 305, it is listed that START bits must be 0 when burst mode is on. In your case I am seeing that the burst mode bit and the start bits are set to 1. This is ...
rrz0's user avatar
  • 1,181
1 vote

Sampling error in Lpc1769's Adc

Top left graph looks like 10 kHz to me. I think you may have your oscillator set incorrectly because what you think may be 75 Hz looks more like 25 kHz (top right picture). I don't see 100 Hz ...
Andy aka's user avatar
  • 460k
1 vote

Lpc1769 Adc Reading Problem

One possibility: The part contains a successive approximation style ADC, which means that the ADC gets an "answer" one bit at a time. It places a "1" in the most significant bit of a DAC and ...
John Birckhead's user avatar
1 vote
Accepted

CAN Loopback test using SN65HVD233-HT

The loopback function of the SN65HVD233 does not work by shorting the output of the micro, instead it removes the device from the bus by putting the CANH and CANL pins into a high impedance state - ...
LogicTom's user avatar
1 vote

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

With adding a 10uf tantal cap to the power line it is working fine know. thank you every one.
Dizgah's user avatar
  • 67
1 vote
Accepted

Generating pulses via timer match output or timer ISR?

Timer match is by far more accurate and is the best solution if you need high precision and the most deterministic behavior. Timer match has a precision of the CPU bus frequency (to 60 MHz on that ...
jp314's user avatar
  • 19.1k
1 vote

Generating pulses via timer match output or timer ISR?

The issue with an ISR-based approach is that it's an interrupt. It interrupts things. Using the built-in timer compare match features to toggle a match pin is done completely in hardware. You can ...
uint128_t's user avatar
  • 8,734
1 vote

Variations in pulses generated and read by a uC

I understand that as long as my software generates 1ms output from a pin(PIC),the input at a pin(LPC1778) also must be 1ms Yes, but the LPC1778 is sampling the level every 200us so there will be an ...
Bruce Abbott's user avatar
  • 56.5k

Only top scored, non community-wiki answers of a minimum length are eligible