Because the concepts and process to interface a keypad with Tiva C launchpad will remain the same. But you can use a keypad of any size such as 4×3, 3×4, etc. In this tutorial, we will learn to interface a keypad with TM4C123 Tiva C Launchpadand programming in Keil uvision IDE.hw_gpio has the set of values needed to unlock the pins that are locked to specific functions on the microcontroller.Enable digital pins in the GPIODEN (GPIO Digital enable) register. Set the GPIOAFSEL (GPIO alternate function) for PWM output pins. The steps are as follows: Enable the clock to GPIO pin by using RCGCGPIO. In this regard, it is same as all other peripherals. In using PWM, we must configure the GPIO pins for PWM output. 2.Enable the alternate functionality by asserting the appropriate bits in GPIOAFSEL reg-ister for the analog signal. In this experiment, we are using on-chip temperature sensor so, we don’t need to enable the clock signal for any analog input (AIN) pin. propriate GPIO pin and ADC module using RCGCGPIO and RCGCUART registers respectively.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |