13
ÍNDICE 1.- Breve descripción del proyecto 2.- Hardware utilizado 2.1.- Periféricos del μC. 2.2.- Motores 2.3.- Sensor de presión y temperatura HP03 2.4.- RTC DS1307 2.5.- RS232 2.6.- Anemómetro 2.7.- 3.- Programación 3.1.- Estructura general del programa. 3.1.- Librería SOLPOS. 3.2.- Librería DS1307 3.3.- Librería HP03 3.5.-

Doc1

Embed Size (px)

DESCRIPTION

doc

Citation preview

NDICE1.- Breve descripcin del proyecto2.- Hardware utilizado2.1.- Perifricos del C.2.2.- Motores2.3.- Sensor de presin y temperatura HP032.4.- RTC DS13072.5.- RS2322.6.- Anemmetro2.7.- 3.- Programacin3.1.- Estructura general del programa.3.1.- Librera SOLPOS.3.2.- Librera DS13073.3.- Librera HP033.5.-

MainRetardo para estabilizar uCConfigurar uCInicializar Hardware (LCD, RTC I2C)Mensaje de bienvenidaCarga inicial de variablesLectura de sensores (presin temperatura, velocidad del viento)MostrarPantallaEscaneaTecladoActualizarLCDAccionTecladoLeeConfiguracionEEpromEscaneaTeclado=FALSEMostrarPantalla=FALSESincronizaRelojGuardaHoraEnRelojComprobarHorarioVeranoGuardaConfiguracionEEpromCalculaPosicion

Rutinas usadas y su funcin

3.3.- Librera HP03HP03_CalculaPresionTemperatura ();Esta rutina es la nica que el programador necesita usar. Es llamada desde el main. Se encarga de leer los coeficientes y parmetros de calibracin y los valores del ADC del sensor. Despus calcula el valor de la presin y la temperatura y lo guarda en las variables globales PRESION y TEMPERATURA.

void HP03_CalculaPresionTemperatura (void){float AuxDatos1=0;float AuxDatos2=0;float AuxDatos3=0;float AuxDatos4=0;

HP03_LeerDatosCalibracion ();HP03_LeePresionTemperatura ();

//Calculamos el valor de dUTif (D2