Posts

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.

I2C - Real Time Clock (RTC) DS1307 - Write/Read

Image
The following article walks you through a hands on exercise with a microcontroller and a real time clock IC to better understand and appreciate how the I2C Serial Communication Protocol is implemented. 

I2C Serial Protocol

Image
The following article will provide an overview of the I2C serial protocol. Please, take a look to the article “I2C - Real Time Clock (RTC) DS1307 - Write/Read” on my blog to see a practical approach using the Texas Instrument ARM base LaunchPad Evaluation Kit TM4C123G with a Real Time Clock (RTC) (DS1307) to interact with & better understand the I2C interface.  

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).

Embedded C Programing w/ TM4C123G Microcontroller - 2.0 Functions, Macros & Header Files

Image
In our previous section,  Embedded C Programing w/ TM4C123G Microcontroller - 1.0 Register Addresses , it was discussed how to blink an LED by interacting directly with register addresses within the TM4C123G Microcontroller. A not very commune practice.  Here, we would like to simplify things by introducing Functions , Macros , and Header Files .  Function Currently, the code is a small program easily to interact. But eventually, it would become a little bit more challenging when adding more features. This means, more register addresses to manage.  Preliminary Code /* This program toggles the Green LED ON & OFF by using register addresses. The other LEDs (Red & Blue) can be configured as well. All LEDs are high active (a "1" turns ON the LED). PF1 - red LED PF2 - blue LED PF3 - green LED */ int main () { //Clock Gating Register *(( unsigned int *) 0x400FE608U ) = 0x20U ; //enable clock signal to GPIOF //GPIODIR Register *(( unsigned in