Skip to main content Skip to local navigation
Home » Category: 'embedded' (Page 2)

embedded

Matlab and Arduino

The programming and embedded systems curriculum in engineering should be constantly revised as the underlying methods and technologies are constantly changing. Here, I’m exploring how we can update the systems we use in our first year programming class at the Lassonde School.    Low barriers to entry are key as many of our students have […]

Wakeup Timer on the LPC804

Here is an example of running a timer on the LPC804, originally written in C and then modified to work in C++14 on MCUXpresso 11.1. Here we’re using the 1MHz Low Power Oscillator to drive the Wakeup Timer on the LPC804. The same code would work as a C++ project on the LPC802 (OM40000 board) […]

C++ and the LPC802: type casting

It appears that the C++ compilers in MCUXpresso don’t like the C-style type casting that are found in some macros used by the SDK for the LPC802. One of our students, Richard, discovered that a change needs to be done to a pair of macros that reside inside of fsl_clock.h in order for C++ to […]

Microcontroller Interrupts and C++

As part of my examination of C++ programming on microcontrollers, I’ve run into an issue with implementing Interrupt Service Routines on the LPC804 and LPC802 microcontrollers.  These micros are based on the ARM Cortex M0+ core, are small, solderable and suitable for teaching and project development with undergraduate engineering and computer science students.  I’m looking […]

Testing the LPC804 Microcontroller

Here’s a simple program, written for the LPC802 or LPC804 microcontroller, using MCUXpresso 11.0, the ISO C11 compiler and the latest LPC802 (OM40000) or LPC804 (OM400001) SDK from NXP. I started a project using MCUXPresso and the SDK, then erased the contents of the main .c file it produced, replacing it with the following: The […]

C++ on Microcontrollers, Babysteps

Having watched some of Kate Gregory’s tutorials on Pluralsight, I decided to start trying some aspects of C++ on very small microcontrollers.  They’re physically small (only about 2cm across) and also small in terms of memory (2kB – 4kB of RAM; 16kB – 32kB of Flash). Two problems were immediately encountered: nothing with the iostream […]

Sabbatical Report: Teaching a compressed class in Germany

While I was on sabbatical from York University I had the opportunity to teach twice at the University of Applied Sciences in Karlsruhe, Germany (Hochschule Karlsruhe, a.k.a HsKa).  I had been invited to do so by Professor Klemens Gintner, a colleague and friend who I had hosted during his sabbatical in Toronto in 2015. It […]

Sabbatical Report: Updating Microcontrollers

As part of my sabbatical activities I took on the “Temps Pratiques” microcontroller laboratory sessions for electrical engineering and mechatronics students at INSA Strasbourg.  In pre-sabbatical discussions with faculty and staff at INSA Strasbourg I found out that the students were learning using what I considered to be outdated technologies.  The PIC16F84A microcontroller chip used […]

Sabbatical Report: Writing a Textbook & Getting a Book Deal

While on sabbatical I started getting serious about writing a book.  In spite of having wanted to write a book for years, writing one while on sabbatical wasn’t my primary goal.  But as visa issues in France became more difficult and made more traditional research work harder the book writing became a bigger focus for […]

Embedded Systems Spring Course in Karlsruhe, Germany

During my sabbatical from York University, I taught IP 411 “Embedded Systems for Engineering Applications” class at Hochschule Karlsruhe (HsKA) in April and May, 2019.  This page is an update to the Fall 2018 version of the course that I also taught at HsKA.  The Spring version of the course take place over six days: […]