22.07.2014 Views

to get the file - OCW UPM

to get the file - OCW UPM

to get the file - OCW UPM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5V<br />

t<br />

B) Si la función Retardo()se ejecuta en 2 segundos y la variable vueltas tiene<br />

un valor de 54, ¿cuál es la velocidad de giro del mo<strong>to</strong>r, expresada en r.p.m.<br />

(revoluciones por minu<strong>to</strong>)?<br />

EJERCICIO 11)<br />

El sistema basado en microcontrolador 87C552 mostrado en la figura 1 está diseñado<br />

para <strong>to</strong>mar muestras de las señales Vtem y Vhum, y establecer una comunicación serie<br />

EIA232.<br />

5V<br />

Vhum<br />

Vtem<br />

2.5V<br />

P5.2/ADC2<br />

AVref+<br />

AVref-<br />

AVDD<br />

P3.0/RxD<br />

P5.3/ADC3 MAX 232<br />

P3.1/TxD<br />

1<br />

6<br />

2<br />

7<br />

3<br />

8<br />

4<br />

9<br />

5<br />

J1<br />

CONN-D9<br />

11,0592MHz<br />

XTAL1<br />

XTAL2<br />

87C552<br />

AVSS<br />

Figura 1. Sistema basado en 87C552<br />

La señal Vtem proviene de un sensor de temperatura ambiente y proporciona valores<br />

entre 0 voltios (para una temperatura de -20ºC) a 2,5 voltios (para una temperatura de<br />

60ºC); teniendo una variación lineal entre ambos valores.<br />

12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!