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

c programming

Automated Student Evaluations in C (part 3)

This is the third post in the series on evaluating student assignments in VPL with C and unit testing. We're targeting using VPL on Moodle / eClass. Specifically, the bash scripts are based on the fantastic work of Smith College professor emeritus, Dr. Dominique Thiébaut. He wrote about his VPL work here and while his […]

Automated Student Evaluations in C (part 2)

Here's a simple VPL exercise that can grade a simple student-submitted function. The idea is that there are two bash scripts, one for rough work and one for graded evaluation and these scripts will compile the C program, consisting of a main function that calls the student function, passing two integers to it and having […]

Automated Student Evaluations in C (Part 1)

As with the Matlab and Java versions of this, I'm working on creating a set of C language exercises that can be assigned to students in an automated way, like on eClass (Moodle) using Virtual Programming Lab or the "lab test mode" that we use in the EECS department at York University. Here, I'm focusing […]

Ad-hoc unit testing on simAVR and VPL

In the previous post I showed you how to use VPL and simAVR together to write a basic activity that would test to see if a student could change or assign the value of a register in the simulated microcontroller using the C programming language. While it was the most straight-forward way that I could […]

Simulated Microcontrollers in VPL Exercises

In Computer Architecture classes or Embedded Systems classes, it can be really useful to allow for students to be graded on assignments that allow them to interactively explore the inner workings of a microprocessor. One way is to have the students create programs in a hardware description language like Verilog or VHDL. Another way is […]

The EECS 2021 Lab Kit: Grove Board + Snap Programmer

EECS 2021 Lab Kit The EECS 2021 lab requires you to have both (1) the Grove board with an ATMEGA328P chip on it (you got it as a part of the EECS 1011/21 lab kit last year), as well as (2) a Snap programmer. The Grove kit (officially called the "Grove Beginner Kit for Arduino") […]

Simulating Micros from Command Line

Introduction Microchip's MPLAB X permits simulation from the command line.  This is interesting from the perspective of teaching if we have automatically-graded programming assignments that take the student's program and runs it against a simulated chip in an LMS like Moodle. Background I'm interested in how we can use the MDB in MPLAB X to […]

Lab Kit for EECS 1011 and 1021.

The YorkU Bookstore sells a lab kit for EECS 1011 and 1021.  The original batch of kits arrived in September, 2020.  The next batch arrived in December, 2020.  If you live in a country for which the Bookstore does not ship to you, or you have discovered that there is no more stock at the […]

LPC802 & LPC804 Microcontroller lessons

These are copies of the lessons and labs that I developed for the LPC802 and LPC804 microcontrollers by NXP. These are the "student" versions and contain blanks in certain places on purpose. Course Outline (EECS 3215 Winter 2020) Introduction to the design of embedded systems using both hardware and software. Topics include microcontrollers; their architecture, […]

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