GithubHelp home page GithubHelp logo

yashbansod / arm-tm4c-ccs Goto Github PK

View Code? Open in Web Editor NEW
69.0 6.0 29.0 16.97 MB

This repository contains all my practice codes of TM4C123GXL coded in CCS7. The Texas Instruments Tiva C LaunchPad board TM4C123G is used for the code. The TM4C123GXL Launchpad has the TM4C123GH6PM microcontroller which is based on the ARM Cortex-M4F microcontroller architecture and clocked at 80 MHz (with 100 DMIPS)

Home Page: https://yashbansod.github.io/projects/ARM-TM4C-CCS/

License: MIT License

Makefile 32.50% C 63.02% Batchfile 3.22% Pascal 1.26%
tiva-c-series ccs7 embedded-c c tm4c tm4c123 tm4c123gxl tm4c123gh6pm arm texas-instruments

arm-tm4c-ccs's Introduction

ARM-TM4C-CCS

This repository contains all my practice codes of TM4C123GXL coded in CCS7.
The Texas Instruments Tiva C LaunchPad board TM4C123G is used for the code.
The TM4C123GXL Launchpad has the TM4C123GH6PM microcontroller which is based on the ARM Cortex-M4F microcontroller architecture and clocked at 80 MHz (with 100 DMIPS)

Tiva-C Launchpad

Project Contents

TM4C123G LaunchPad Template - This represents the project template used for the subprojects in this repository.

Blink with delay - The program controls the RGB LEDs on the Tiva C board TM4C123G LaunchPad (with TM4C123GH6PM microcontroller) and blinks the Blue, Green and Red Led with a specified delay. The Delay is generated by wasting machine cycles in a loop.

Blink without delay - The program controls the Green LED on the Tiva C board TM4C123G LaunchPad (with TM4C123GH6PM microcontroller) and blinks it with a specified time period. Timer0 is used to create periodic interrupts to control blinking.

LED Button Control - The program controls the RGB LEDs on the Tiva C board TM4C123G LaunchPad (with TM4C123GH6PM microcontroller) using the onboard switches SW1(PF4) and SW2(PF0). Different combinations of button presses cause different LEDs to glow.

PWM Servo - The program controls the position of an external servo motor by varying the Duty Cycle of the PWM. The Duty Cycle can be increased by clicking the onboard switch SW2(PF0) or decreased by clicking SW1(PF4). The PWM module.
Servo Motor

PWM using General Purpose Timer - The program controls the intensity of Green LED on the Tiva C board TM4C123G LaunchPad (with TM4C123GH6PM microcontroller) by varying the Duty Cycle of the PWM. The Duty Cycle can be increased by clicking the onboard switch SW2(PF0) or decreased by clicking SW1(PF4). Timer0 is used to create PWM at fixed frequency but variable Duty Cycle.

ADC Potentiometer - The program reads the ADC value from an externally connected potentiometer.
Potentiometer

ADC reading from Temperature Sensor - The program reads the ADC value from the Temperature sensor in the TM4C123GH6PM chip. This is then converted to Celsius and Fahrenheit scale.

UART - The program reads the input from a user on the serial monitor (terminal) and echoes it back to the user. Serial Activity is displayed by the Blue Led which glows for 1ms on every UartRx.

UART Stdio - The program reads the input from a user on the serial monitor (terminal) and echoes it back to the user. Serial Activity is displayed by the Blue Led which glows for 1ms on every UartRx. The code demonstrates the use of UARTprintf() API of uartstdio.h library for printing strings.

Quadrature Encoder - The program interfaces the quadrature encoder peripheral to get the position and velocity information of a encoded DC motor. The QEI1 peripheral is used with PortC using PC4, PC5 and PC6 as Index1, PhA and PhB.
Quadrature Encoder

PI Motor Control - The program interfaces the QEI and PWM peripherals to implement a PI Position control of an Encoded DC Motor. The Motor used is Faulhaber 12V(17W) Coreless motor, 64:1 Planetary gearbox, 120RPM, 12 PPR Encoder. This gives 3072 CPR of quadrature.
Faulhaber Motor

PID with UART - The program interfaces the QEI, PWM and UART peripherals to implement a PID Position control of an Encoded DC Motor. The Motor used is Faulhaber 12V(17W) Coreless motor, 64:1 Planetary gearbox, 120RPM, 12 PPR Encoder. This gives 3072 CPR of quadrature.
Faulhaber Motor

FPU Co-Processor - The program enables the Floating Point Unit Co-Processor which is used to calculate a sine wave with a specified number of sampling points.

PID with UART and FPU - The program interfaces the QEI, PWM and UART peripherals to implement a PID Position control of an Encoded DC Motor. The Motor used is Faulhaber 12V(17W) Coreless motor, 64:1 Planetary gearbox, 120RPM, 12 PPR Encoder. This gives 3072 CPR of quadrature. Also the FPU is used for the floating point calculations during PID.
Faulhaber Motor

Ultrasonin HC-SR04 - This is a sample code for HC-SR04. The code calculates the distance of an obstacle from the HC-SR04 sensor and publishes the data over the UART channel.
HC-SR04 Ultrasonic Sensor

TM4C123G LaunchPad Workshop - This contains all the codes of Tiva-C workshop.


Other similar repositories

  • ARM-TM4C-IAR
    This repository contains all my practice codes of TM4C123GXL coded in IAR Workbench. The Texas Instruments Tiva C LaunchPad board TM4C123G is used for the code. The TM4C123GXL Launchpad has the TM4C123GH6PM microcontroller which is based on the ARM Cortex-M4F microcontroller architecture and clocked at 80 MHz (with 100 DMIPS).

  • ARM-TMS570LC43x-CCS-HALCoGen
    This repository contains all my practice codes/projects of Hercules TMS570LC43x Development Kit. The projects are made using embedded C on CCS 6 and HALCoGen. The TMS570LC4357 on the board is an Automotive grade MCU based on the ARM Cortex-R5F architecture clocked at 300 MHz.

arm-tm4c-ccs's People

Contributors

yashbansod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

arm-tm4c-ccs's Issues

TM4C123G LaunchPad Ultrasonic HC-SR04

Hi,
I am new to this SERIES OF TM4C123G LAUNCHPAD.
In my project, I need to Measure the Frequency & Duty Cycle of the wave. Just I was go through the code given for Ultrasonic HC-SR04.
I tried to build the same code given in the example. But It Is giving error at: ltoa(ui32ObstacleDist, chArrayDistance); & later I found that the ltoa(val, buffer, radix); is the actual Format. What is the Value for the Index.
Thanks for all your works.
They are really useful.

Thanks & Regards,
Ravi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.