- Notifications
You must be signed in to change notification settings - Fork2
Driver library for the TM4C123GH6PM Microcontroller
License
mdhardenburgh/TM4C123GH6PM_Drivers
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Drivers for the Texas Instruments Tiva C ARM 4F TM4C123GH6PM microcontroller.It is designed to be easy to use, similar to an arduino, however knowledge ofpointers and memory management is reccommended. This project is written in C++.
ARM GNU Toolchain is required to build this project.OpenOCD is required todownload main.elf to the board. Both are freely available to download and install.
You will probably have to add both openOCD and the ARM GNU Toolchain bin folder to your path
To build the example main, navigate to the project directory in a terminal anduse the commandmake
.
Use the commandopenocd -f board/ek-tm4c123gxl.cfg -c "program main.elf"
to download the code to the board. Hit the reset switch to reset the processor tosee the example code in action.
The commandarm-none-eabi-gdb main.elf
can be used to access the debugger.
- Use the command
target extended-remote:3333
to connect to the board - Use the command
monitor reset halt
to halt the processor (required to load code) - Use the command
load
to load new code onto the board - Use the command
monitor reset init
to restart the processor - The rest of the GDB commands are the same
This project is a work in progress. Class names, function names, enum names, etc..may change, with out notice, at any time.
- NVIC Interrupts
- PLL system clock for different clock speeds
- GPIO, GPIO interrupt on both edges
- 16/32-bit and 32/64-bit General Purpose Timer in oneshot and periodic mode
- PWM can be initilized for single and double ended complementary mode.
- ADC polling
Main contains a very simple example program of how to use the drivers.
- Test the ADC interrupt function
- Implement the
void initializeDigitalComparator(void);
functionality - Add ADC documentation and update existing
- Refactor GPIO, PWM, GPT code to bring it inline with new framework
- µDMA
- GPIO
- Poll raw interrupt status
- interrupt on a single edge
- USB
- UART
- SPI
- I2C
- Systick
- MPU
- FPU
- SBC
- Analog Comparator
- Memory
- EEPROM
- Flash
- Hibernate
- Watchdog
- Examples folder
- Further test the ADC polling function
All code is under the the GPl v3 License. Please the read the associated LICENSEfile for an in depth licensing agreement
This program is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, orany later version.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.
You should have received a copy of the GNU General Public Licensealong with this program. If not, seehttps://www.gnu.org/licenses/.
Copyright Matthew Hardenburgh 2020. All rights reserved.
About
Driver library for the TM4C123GH6PM Microcontroller
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.