You are on page 1of 5

Manual practico de la tiva C series

TM4C123G

The Geeks ub

Lnea Tecnologica Electronica

Especialidad Firmware

yo

9 de agosto de 2014
Control de cambios
Titulo del documento: Manual practico de la tiva C series TM4C123G

Fecha Version Autor Descripcion


27/06/2014 Preliminar Alfredo Gualdron Preliminar
PRELIMINAR
Indice
1. Laboratorio 1 4

2. laboratorio2 4
Manual practico de la tiva C series TM4C123G

Introduccion
Este documento contiene una serie de laboratorios y ejercicios practicos para realizar en la tarjeta de desarrollo
Tiva series C TM4C123G con el fin de aprender a usar esta herramienta.
Este documento esta dirigido a estudiantes, hobbistas y cualquier interesado con poca o nula experiencia en el
uso de este microcontrolador, sin embargo se asume que el lector posee conocimientos basicos de programacion en
lenguaje C.

1. Laboratorio 1
Calcule el area de un rectangulo de longitud l y ancho w. En este laboratorio se da un primer paso, muy sencillo
con el fin de familiarizarse con el entorno de keil, los modos debug en simulacion y debug en la tarjeta real. Ademas
para usar conceptos basicos de programacion en C, como asignaciones y condicionales.

2. laboratorio2
como configurar los puertos :
For example, if we wished to use UART7 on pins PE0 and PE1, we would set bits 1,0 in the GPIO PORTE DEN R
register (enable digital),clear bits 1,0 in the GPIO PORTE AMSEL R register (disable analog), set the PMCx bits
in the GPIO PORTE PCTL R register for PE0, PE1 to 0001 (enable UART functionality), and set bits 1,0 in the
GPIO PORTE AFSEL R register (enable alternate function).If we wished to sample an analog signal on PD0, we
would set bit 0 in the alternate function select register, clear bit 0 in the digital enable register (disable digital), set
bit 0 in the analog mode select register (enable analog), and activate one of the ADCs to sample channel 7.
swiches logica negativa, leds logica positiva
Each pin has one configuration bit in the GPIOAMSEL register. We set this bit to connect the port pin to the
ADC or analog comparator. For digital functions, each pin also has four bits in the GPIOPCTL register, which we
set to specify the alternative function for that pin (0 means regular I/O port). Not every pin can be connected to
every alternative function. See Table 6.1.
si el registro de direccion es cero, el pin es entrada, si es uno el pin es salida.
Figura 1: Conexion puerto F

You might also like