EmbeddedRelated.com

Michael Kellett (@MichaelKellett)

http://www.mkesc.co.uk

Re: Peripherals use (QSPI, Ethernet, SPI)

Reply posted 9 months ago (05/30/2023)
The most "Automotive" way would be to use CAN. You'll need some little interface modules with a CAN port and suitable IO.These people sell them:https://inomatic.de/en/products/can-bus-adapter-en...No...

Re: Connecting USB generates voltage spikes in circuit.

Reply posted 2 years ago (03/22/2022)
Low cost chargers with USB connections are renowned for low quality. Typical problems are electrical noise, poor safety practice and out of spec output voltage.If...

Re: Using noise to increase resolution of ADC

Reply posted 2 years ago (11/22/2021)
Just adding some noise will make it look like a noisy 4 bit converter.You would also need to average (or otherwise filter) multiple readings together.There's a not...

Re: HardFault during erasing Flash in debug mode

Reply posted 3 years ago (07/09/2021)
I think you need to tell us  a lot more before a good answer is possible.What processor are you using, with which tools. Can you get a trace to see what caused...

Re: 3V LED selection for commercial product

Reply posted 3 years ago (04/30/2021)
We don't know your plans for this product but if you intend to manufacture a reliable device over a period of years you should think very carefully before using...

Re: External code coverage

Reply posted 3 years ago (04/29/2021)
Some ARM micros have the embedded trace hardware and used with hardware tools from Keil, Segger or Lauterbach you should be able to do this.I've used the Keil tools...

Re: How to fix CAN Bit Stuffing Error

Reply posted 3 years ago (04/05/2021)
I don't think it's likely to be an error in the Vector tools.Equally I'd be suprised if there is any software control over the bit stuffing in the Renesas Micro.I...
Yes it will, there is an article on Stackoverflow about using right shift instead of divide. The best advice is don't,  let: the compiler decide when that optimisation...
It depends on definitions:how about:Fred -= -1;Fred = increment(Fred);not as different as your 4, but not the same.I can't comment on frequency of confusion but...

Re: SDKs and project management

Reply posted 3 years ago (02/08/2021)
I think that the two are related - I only clone one Keil project to another. I can only think that gathering all the files into one place or making an easy to use...

Re: SDKs and project management

Reply posted 3 years ago (02/08/2021)
I use Keil's (owned by ARM) MDK for Cortex development IDE and have been asking for a cloning function for years. In the end I wrote my own (in VB6 because it's...

Re: RMS calculation over one cycle 50/60Hz

Reply posted 3 years ago (10/16/2020)
As others have pointed out, to measure in one cycle you need to take account of the actual, rather than nominal frequency. But there is a deeper point here, why...

Re: To Cast, or Not to Cast

Reply posted 4 years ago (06/26/2020)
Woops ! Yes !MK

Re: To Cast, or Not to Cast

Reply posted 4 years ago (06/26/2020)
Hello Max,First off I would say never mix the bit number explicit defs like uint32_t with int in the same module.Secondly GetGreen etc are declared unhelpfully -...

Re: Improvement in Software design

Reply posted 4 years ago (05/05/2020)
You can do this of course but: You certainly don't need pointers. That said, most of the time you would want to use...

Re: A physical test emulator for embedded systems.

Reply posted 4 years ago (04/23/2020)
Such tools already exist - notable suppliers are D-Space and Mathworks (software). D-Space do lots of hardware in the loop stuff.This kind of approach is widely...

Re: A new way of looking at Embedded Systems

Reply posted 4 years ago (04/10/2020)
If we filter out the hype and cut to the essence of this it's a set of Python libraries and some trivia hardware modules (like a pot on a little board with a connector).As...

Re: Looking for better touchscreen displays.

Reply posted 4 years ago (01/02/2020)
I'll also recommend the Bridgetek based displays, RS and Farnell both sell them in a range of sizes and formats.Having tried a few things (libraries on ST ARM processors...

Re: Flash Memory

Reply posted 5 years ago (08/20/2019)
I missed that.Can't see much else except maybe this:Note that the chip select pin (/CS) must track the VCC supply level at power-up until the VCC-min level and tVSLtime...

Re: Flash Memory

Reply posted 5 years ago (08/19/2019)
Looking at read status reg 1 it looks to me as if you send 0x0f, 0x0a, 0x00What did you mean to send ?MK

Re: AD9601 with 200MSPS connected to DSP

Reply posted 5 years ago (08/14/2019)
I agree - the STM32F429 can't handle 200 M samples/s.You may find a DSP chip which will interface directly but based on the very little info you have provided I...
You've definitely hit scope territory - set the board up on the bench in a simulation and see if you can replicate the problem. Use a board that has had problems...
Nothing stands out as bad as far as I can see. I have to tell you that I almost never get a serial interface to work correctly first time round and almost always...
What pressure sensor are you using ?MK

Re: What do *you* call "Deeply Embedded"

Reply posted 5 years ago (06/21/2019)
To me a deeply embedded system is a hard real time system, where the processor is directly connected to the hardware and the processor activity is critically involved...

Re: MSP432+BLE+ Debugger interfacing

Reply posted 5 years ago (06/14/2019)
I don't think this will work easily - if there is enough room in the MSP432 for the entire BLE firmware as well as the firmware you need to run on the MSP432 you...
Page 52 of the data sheet:Raw ADC samples are also available for post-processing by MCU in registers fromDSP_REG2 to DSP_REG9.By taking into account the internal...

Re: extended memory move operations in 8051

Reply posted 5 years ago (03/26/2019)
I had a quick look on Mouser,100 off AT89LP52 = £0.771 ("20HHz", 0.25kRAM, 8k flash)100 off STM32L010K4T6 = £0.64 (32MHz Cortex M0, 2K ram, 16k flash)The ancient...

Re: Shorting GPIO internally = reset and no problem?

Reply posted 5 years ago (01/28/2019)
Your problem is that the photo transistor will be able to achieve a collector current proportional to the amount of light falling on it. If you need 560k to get...

Re: Preventing Forum Fatigue

Reply posted 5 years ago (01/19/2019)
I've given up on answering mik3ca for much the same reasons as given above - same as if the guy was in the same office I'd put on earphones.But he hasn't done anything...

Re: Brute-force method to reset serial line on 8051

Reply posted 5 years ago (01/16/2019)
In as far as I understand you this sounds totally wrong. If you are using the processor on chip UART it is designed to over-sample the incoming serial data and effectively...
I have to ask this - why don't you use a modern processor with DMA, 32 bit data paths and 10x or more the instruction rate. It won't cost any more and it will come...
If I've understood the problem correctly:The master can send out a command packet which instructs all the slaves to send data at specified delay times from the command...

Re: LPC17xx, ADC and DMA

Reply posted 5 years ago (12/23/2018)
I think the OP wants to transfer 3 samples from different inputs on the same ADC.Set up the ADC for burst operation, three channels, select the three channels by...

Re: How to download a file through a RS485 link

Reply posted 5 years ago (08/27/2018)
If possible connect a scope to your system so you can see what is going on. If it's half duplex you need to be sure that the tx/tx directions of the driver chips...

Re: Embedded Systems Project/ consultation needed

Reply posted 6 years ago (06/18/2018)
Sorry to say this, but it's just crazy for you to attempt this project at all. If you know nothing about Software Engineering how can you hope to improve on a topic...
10 replies already so I'll try to cover some new ground and dispel a few myths.FPGAs have a huge dynamic range, from the tiny 48 pin Lattice Ice40 parts to the XIlinx...
You've just hit the point at which you have to stop pretending that the Cortex M4 on your board is a PC and get into the nuts and bolts of how it works !There will...

Re: Help with reverse polarity(strange) SMA connector

Reply posted 6 years ago (11/23/2017)
Try:http://www.pinoyfpv.com/index.php?main_page=produc...I just google for SMA gender changer and fllowed links from pictures.Good luck.MK

Re: FPGA curve fitting

Reply posted 6 years ago (09/05/2017)
AT 65MHz sampling rate you are well out of the low budget zone for FPGA and ADC. You'll need to use LVDS or worse to get the data in. If I were you I would look...

Re: FPGA curve fitting

Reply posted 6 years ago (09/05/2017)
Do you have a budget for this task ?How fast must the ADC be (ie how many samples per second.)Are you able to express the signal processing function in C or MATLAB.If...

Re: A million UARTs....

Reply posted 7 years ago (06/03/2017)
There are processors with 6 UARTs - you could use one to intelligently multiplex the RT5350's UART.You could use a tiny (48 pin Lattice iCE5LP4k) FPGA to do the...
What processor and programming environment are you using ?

Re: operating temprature in embedded board

Reply posted 7 years ago (05/14/2017)
Google - unless you provide a lot more information about what you need no better advice is possible.

Re: Counting clock cycles

Reply posted 7 years ago (04/17/2017)
You're not giving away much are you ?How many clock cycles do you measure?Is the error between what you measure and what you predict constant?You haven't told us...

Re: Communication protocol implementation

Reply posted 7 years ago (04/04/2017)
You need to tell us a lot more about your application and why you think you might need to roll your own higher level protocol. It might be worth studying the CANopen...

Re: MCUs with hardware ids.

Reply posted 7 years ago (03/16/2017)
Many of the ST ARM Cortex micros have a burned in during manufacture unique ID.An alternative is to use a separate chip with an ID or registered MAC address - Microchip...

Re: PCB simulation and layout

Reply posted 7 years ago (02/24/2017)
I use EasyPC which is quite cheap (£297 for  a license for design up to 1000 pins, lots of layers).If I hadn't been using EasyPC for years and years I would look...

Re: Cortex M4 Interrupt states

Reply posted 7 years ago (01/12/2017)
Are you using an RTOS - if so which one.I ask because I've never had any need to directly manipulate registers when using Keil's RTOS,MK

Re: New video -- PID tuning

Reply posted 8 years ago (07/07/2016)
Interesting video Tim, but would benefit greatly from a description of the plant. I think it's a pivoted balanced pole using the little propelled to position itself...

Use this form to contact MichaelKellett

Before you can contact a member of the *Related Sites:

  • You must be logged in (register here)
  • You must confirm you email address