Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need help for the 7 segment display: from 0 to F, such as 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. its using the Keil program please. thank you. #include #include #include

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

need help for the 7 segment display: from 0 to F, such as 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. its using the Keil program please. thank you.

#include #include #include #include #include "TM4C123GH6PM.h" void DelayMs(int s); int main(void) { // GPIO Configuration // 1. Enable Clock on Port F (SYSCTL_RCGCGPIO)

// allow time for clock to stabilize (SYSCTL_PRGPIO) // 2. Unlock PD7 and PF0 on TM4C123G (GPIOn->LOCK and GPIOn->CR) // 3. Clear AMSEL to disable analog // 4. Config PCTL to select GPIO // 5. Set DIR to 0 for input, 1 for output // 6. Clear AFSEL bits to 0 to select regular I/O // 7. Set PUR bits to 1 to enable internal pull-up resistor // 8. Set DEN bits to 1 to enable data pins while(1){ if ( ; } else { } } }

For EK-TM4C123GXL LaunchPad For EK-TM4C123GXL LaunchPad

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions