Posts

Embedded C Programing w/ TM4C123G Microcontroller - 1.0 Register Addresses

Image
The aim of the following exercises is to build a foundational understanding of Embedded Systems programming. In this exercise, you will program the Tiva TM4C123G LaunchPad to toggle the green LED ON and OFF. More importantly, you will do so by directly accessing and manipulating hardware Register addresses . Working with raw register addresses can feel tedious, but it is essential for understanding how microcontrollers operate at the lowest level. This knowledge will make the upcoming sections on functions, macros, and header files much more meaningful To cover basic C Programing concept, the same code will be modify to include function , macros and/or header files to become conversant with Embedded System.

TI ARM Tiva TM4C123G - 1.3 Interrupts & the Vector Table.

Image
The aim of the following exercises is to:  Explain the concept of Interrupts . Explain the concept of a Vector Table . Provide an example to demonstrate how to t oggles the red LED ON & OFF by triggering an t imeout events interrupt and/or switches SW0 and SW1 from the TM4C123GH6PM.

TI ARM Tiva TM4C123G - 1.2 General Purpose Timer Module (GPTM)

Image
The following exercises will explain timers and how to configure them in the Texas Instrument Tiva TM4C123G LaunchPad for One-Shot or Periodic Mode. They will used to blink an LED at an specific delay time. 

TI ARM Tiva TM4C123G - 1.1 Pull-up resistor for SW

Image
In the following exercises the aim is to demonstrate how to configure the pull-up resistor in the Tiva TM4C123G microcontroller to make use of the SW1 or SW2. The pull-up resistor will enable a change in state every time you press the switch. And with that change you induce the expected behavior. In our cases, turn ON the red LED with a switch (SW1 or SW2).

Setting Up your IAR Development Environment Tool

Image
The following documentation is divided in two parts. First part, walk through the process to install IAR Embedded Workbench on your computer. The second part provides the steps to have ready your workbench development environment and start programming with a microcontroller. The ARM based TI Tiva TM4C123GH6PM is the one to be used as an example for this exercise. 

System Timer (SysTick)

Image
  The System Timer (SysTick) is an integrated 24-bit counter available in all ARM Cortex-M microcontrollers that counts down to zero, useful for time delay and system interrupt application.

AC/DC current measurement using ACS712 sensor and NodeMCU ESP-12E micro-controller.

Image
Getting Started A glimpse of what you will read through this document to get you started on how to measure AC current by using an Allegro ACS712 Current Sensor and the NodeMCU ESP8266 ESP-12F module . Also, how this data could be uploaded to ThingSpeak analytic IoT platform. The Current Sensor This section highlights relevant features that need to be known for this tutorial related to the Allegro ACS712 Hall Effect-Based Linear Current Sensor . Allegro ACS712 Hall Effect-Based Linear Current Sensor Board This section will describe, and highlight the main features of a common Development Board used for IoT projects and compatible with the Arduino IDE platform.  NodeMCU ESP8266 ESP-12F module  All together A step-by-step process to set up your work environment using the ACS712A and NodeMCU ESP-12E module . Programs This part will walk you through a sequence of programs (sketch), starting from a baseline and eventually modifying until reaching a complete...