Clive "Max" Maxfield received his BSc in Control Engineering in 1980 from Sheffield Hallam University, England and began his career as a designer of central processing units (CPUs) for mainframe computers. Over the years, Max has designed everything from silicon chips to circuit boards and from brainwave amplifiers to steampunk Prognostication Engines (don't ask). He has also been at the forefront of Electronic Design Automation (EDA) for more than 30 years.

Re: To Cast, or Not to Cast

Reply posted 6 days ago (06/26/2020)
Awesome -- thanks so much for taking the time to explain all of this -- Max

Re: To Cast, or Not to Cast

Reply posted 6 days ago (06/26/2020)
Good point, but the way the algorithm works is that the worst case will be to have GetRed() always return values of 255. In this case, we will have an intermediate...

Re: To Cast, or Not to Cast

Reply posted 6 days ago (06/26/2020)
I do like using parentheses to explicitly show what I'm trying to do -- and doing so can help a lot with precedence issues.

Re: To Cast, or Not to Cast

Reply posted 6 days ago (06/26/2020)
Hi there, this helps a lot -- thanks so much -- Max

Re: To Cast, or Not to Cast

Reply posted 6 days ago (06/26/2020)
OK, in the following statement, tmpRed has been declared as a uint32_t. Also, I've modified the GetRed() function to return a uint8_t.tmpRed =   ( (  GetRed(startColor)...

Re: To Cast, or Not to Cast

Reply posted 6 days ago (06/26/2020)
...

Re: To Cast, or Not to Cast

Reply posted 6 days ago (06/26/2020)
Hi Mike -- do you have a minute to discuss this (256 970 1906)?

Re: To Cast, or Not to Cast

Reply posted 6 days ago (06/26/2020)
Sorry -- I should have said -- it's my pathetic attempt at C.The target processor dev board is a Seeeduino XIAO, which has a 32-bit Arm Cortex-M0+ (and which is...

To Cast, or Not to Cast

New thread started 6 days ago
Hi there -- sorry to bug you with a newbie question, but I'm a hardware design engineer, so software sometimes leaves me a bit confused.Can you take a quick glance...
Oooh, a "Nerds Hamilton" -- I can imagine the queues of nerds stretching down the street and round the corner. I just took a look on Amazon -- this book does look...
"See 'Writing solid code'"  Is that a book (or a stage play)?
Great point -- thanks for sharing -- Max
There's a "long long"? Where will this madness end?(Does every C compiler support the long long data type?)
Awesome info -- thanks Kocsonya
Now I know why I became a hardware engineer rather than a software developer LOL
I pity the person who is tasked with maintaining your code when you retire LOL
I'm good at asking questions -- it's when answering them that I fall down LOL
Hi indigoredster -- thanks for the feedback -- it's a shame (a) these holes were left in the original spec and (b) they haven't been patched over the years -- Ah...
Do you know any examples of compilers that DO NOT shift copies of the sign bit in when performing a >> operation on signed integers?
I see "The quotient is rounded toward zero."  I'm assuming this is because the rounding is basically a truncation operation, but this will make positive numbers...
Hi chaps and chapesses -- sorry to bug you again -- this is a follow-on to my previous question: What size variables are best for 8-bit, 16-bit, and 32-bit MCUs?...
Hi Jmford94 -- I think you offer sage advice -- I'm so glad I posted this question because the various responses have helped shape the way I go forward.
OMG There were THREE typos in each one (there aren't any now) -- for other readers, the way it was when I just went to look was:   for (int8_t i = 0, i < 100,...
This is awesome -- thanks so much for sharing it with me -- Max
Are they "fast" because the compiler stores them in 32-bit words even though they are 8-bit and 16-bit values?
The problem here is that an int is a 16-bit quantity on an Arduino Uno, but a 32-bit quantity on an Arduino Due -- suppose I wrote the program using int on Due and...
Hi there – I have a conundrum rattling around my head. I once read that an MCU is most efficient when its working with its natural word width. On one level...

Re: Block diagram software

Reply posted 3 months ago (04/08/2020)
I've been using Visio for longer than I care to remember (must be more than 20 years) and I love it!!!

Re: Covid-19 Stories

Reply posted 3 months ago (03/25/2020)
Hi Stephane -- Max here -- I'm based in Huntsville, Alabama, USA (I moved here from England for the nightlife -- that's a little Alabama joke right there :-)It's...

Re: Funny or Not Funny?

Reply posted 5 months ago (02/13/2020)
People are dying -- there's no way you can make that funny.There is no way you can make an ad using this topic that won't end up shooting yourself in the foot.Even...
That's something else she says LOL
If clicked, The privacy stuff stuff should pop-up in its own window so it can be dismissed without loosing any other info.
My mother asked me to tell you that you have a tremendous line-up of presenters, and she urges everyone to attend the talk by her first born son LOL

Re: Event Driven Frameworks

Reply posted 6 months ago (01/14/2020)
Have you looked at the leOS multitasking kernel for Arduino by Leonardo Miliani?

Re: Embedded Development Predictions for 2020-2029

Reply posted 6 months ago (01/09/2020)
Good question -- I think one way to look at this is to consider what we expect to be coming our way application and technology-wise, and then "work back" to what...
I passed this question to my chum, Steve Evanczuk (Editor-in-Chief of www.Embedded.com), and he responded as follows:The obvious difference is a JTAG adapter is...

Use this form to contact MaxMaxfield

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

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