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

programming

Virtual Programming Lab

Virtual Programming Lab is a plugin for Moodle (eClass at YorkU) that permits interactive programming assignments to be made for students.   There are some really good examples at Smith College on how to set it up with Python and a few with Java and C. I’ve posted, on YouTube, an example of how to […]

At Home Electronics Lab Kits for Engineering

this is a work in progress… nothing is finalized and no decision made at this point.  Just doing a market survey for now… many people need to be consulted and this will have to be a joint decision… We’ll use an internal (to York) Teams page to flesh out the details. Key characteristics Price. (low […]

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 […]

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 […]

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: […]