Questions tagged [lpc1768]

42 questions
4
votes
5 answers

Is it possible to identify what magnet has crossed over a hall effect sensor?

We are currently doing a project with DCC locomotives, involving a micro controller LPC1768. Now the scenario is that we have a railway and under the railway we have hall effect sensors which the locomotives crosses over. Since we will have two…
3
votes
4 answers

What are these exposed copper rectangles for on the mbed NXP LPC1768?

Today I noticed some exposed copper rectangles on the bottom of an mbed NXP LPC1768 dev board. They don't look like they're meant for components. I think they may just be test points, but I'm curious if there's another answer. Here's an image of the…
Darius
  • 1,198
  • 1
  • 9
  • 24
2
votes
2 answers

How fast is mbed Digital Out

I need to output 8-bit integers via parallel (i.e. using 8 pins on the same port) at 1024hz. From what I can see, I have two options: 1) Write to each pin individually using DigitalOut. 2) Avoid the mbed library altogether, and do something…
19172281
  • 685
  • 1
  • 9
  • 24
1
vote
0 answers

BigTreeTech SKR 1.3 (LPC1768), mbed examples not working

I have a Chinese LPC1768-based board I used to control with Marlin firmware, and recently I started to want to program it my own way instead. So, I was successful with PlatformIO and Marlin's custom library they have extracted (Arduino-like):…
o_nix
  • 111
  • 2
1
vote
1 answer

Which is the acquisition time of the SAR ADC of a LPC1768?

i'm trying to design a RC filter to drive the ADC of the micro-controller LPC1768 and i need to know the acquisition time of it (which is not in the datasheet). I'm using this article as a design guide. Thank you. Regards
1
vote
1 answer

Modbus RTU over RS232 link

I am designing a convertor board that will interface three device with Modbus RTU RS232 port to a Modbus RTU RS485 network. Slaves supports Modbus RTU, but their ports is different from master port. The ARM processor is intended to handle the…
Alihaji
  • 446
  • 4
  • 7
1
vote
1 answer

EEPROM Read Operation Always Returns 0xFF

I'm working with a AT24C04 EEPROM which communicates with a LPC1768 MCU on a I2C bus. I try to write a 8 bit data (0xF0) on the 0x00 Address of the memory but when I want to read the content of this address, EEPROM returns 0xFF instead of 0xF0 which…
Nima
  • 166
  • 11
1
vote
2 answers

mbed SPI in Ticker function

I've been trying to use spi.write() in a Ticker function, but the following error is thrown out onto the serial line: Code: 324 Module: 255 Error Message: Assertion failed: _id Location: 0xCE97 File: /extras/mbed-os.lib/rtos/Mutex.cpp+51 Error…
19172281
  • 685
  • 1
  • 9
  • 24
1
vote
1 answer

Using SysTick_Handler in mbed LPC1768 project

I'm trying to use SysTick_Handler in a project which uses the mbed libraries and RTOS, however on compilation, the following error is returned: Error: Symbol SysTick_Handler multiply defined (by…
19172281
  • 685
  • 1
  • 9
  • 24
1
vote
1 answer

Does Interrupt interrupt a blocked read call

If you were to read() incoming socket data in an infinite while loop, would an interrupt with top priority still run its ISR if the read() call is blocked (i.e. no data in the buffer)?
19172281
  • 685
  • 1
  • 9
  • 24
1
vote
1 answer

UART pins interfacing with Barcode without handshaking signals

I am concerned about bar code interface with LPC1768/LPC1769 controller.. If I use only UART-TX, UART-RX, GND pin of controller only to interface with barcode scanner module which has UART or RS232 option( without mapping handshaking signal), i) is…
Techknowlogic
  • 109
  • 15
1
vote
2 answers

LPC1768 Baud rate

I've been trying to configure UART module of LPC1768. Board comes with a crystal oscillator of 12Mhz. It does nothing more than receiving a character and transmitting it at the same time. I am using Keil simulator. This is the code, #include…
Athul
  • 241
  • 5
  • 15
1
vote
1 answer

Data corruption while using RTOS queue services

I am trying to create a gatekeeper task to display the sensor data over the screen via UART. The attributes are defined in the structure as follows, typedef struct Peripheral_data { volatile char data[5]; char Source[15]; char…
1
vote
1 answer

mbed LPC1768 with optocoupler for 5 V output

I am generating a PWM at 20kHz to drive a motor. The signal goes into a motor controller which range is from 0 to 5 volts. Since the PWM output is 3.2 volts I need to amplify it. For that I am using this optocoupler: This is the electronic circuit I…
Luis
  • 39
  • 1
  • 6
1
vote
1 answer

PIR sensor not working

I am new to electronics and microcontrollers. I am using an LPC1768 and a hc sr501 PIR sensor to create a simple motion detector. I have connected the pins of the PIR sensor to the breadboard and the lpc1768. I have imported the code from the mbed…
maltamash
  • 11
  • 3
1
2 3