Relógio ControllerV1.1

sábado, 31 de julho de 2010 0 comentários



Wichit Sirichote, kswichit@kmitl.ac.th Wichit Sirichote, kswichit@kmitl.ac.th

Builda digital clock that turns AC load on/off with preset time. Builda relógio digital que transforma a carga AC / desligar com hora programada.  sourcecode with sdcc for 8051. sourcecode com sdcc para 8051.


The Clock Controller V1.1was designed to be an exemplary of using 'C' language to control timer0interrupt, 7-segment LED and keypad scanning. O auditor Relógio V1.1was projetado para ser um exemplar de usar "linguagem C para controlar timer0interrupt, 7 segmentos LED e teclado de digitalização.
It provides 1-bit sink currentdriving output, for driving a relay, opto-triac, say. Prevê-afundar um pouco currentdriving saída, para a condução de um relé, opto-triac, por exemplo. Many projects requiring7-segment display and keypad interfacing may get the idea from the Clockcircuit and software. Muitos projetos, mostrar segmento requiring7 e interface do teclado pode ficar com a ideia do Clockcircuit e software. Hardware Equipamento
Figure 1 shows a circuitdiagram of the Clock Controller V1.1. A Figura 1 mostra um circuitdiagram do auditor Relógio V1.1. P10-P1.7 drives 7-segment commonanode LED with sink current. P10-P1.7-drives commonanode LED 7 segmentos com coletor de corrente. P3.0-P3.3 also drives a base pin of 4-PNPtransistor, 2n2907 with sink current. P3.0-P3.3 também dirige um pino de base de 4-PNPtransistor, 2N2907 com dissipador atual. As shown in the figure, the 2nd 2-digitLED that connected to P3.2 and P3.3 is rotated 180 degrees to the 1st 2-digitallowing the pt. Como mostrado na figura, o segundo 2 digitLED que ligado a P3.2 e P3.3 é girada 180 graus para a primeira digitallowing 2 do PT. segment to be used for 1 second blinking. segmento a ser utilizado para um segundo piscando. P3.0-P3.3 alsoconnects four momentary switches while the other legs are tied to inputport P3.4. P3.0-P3.3 alsoconnects quatro interruptores momentâneos enquanto as pernas estão vinculados a outros inputport P3.4. During display and key switch scanning, a logic '0' is shiftedfrom P3.0 to P3.3,  if there was a key pressed, P3.4 then became low.P3.7 is a 1-bit sink current driving, an example in the circuit uses a2n2907 to drive a small electromechanical relay 5V, say. Durante a exibição e interruptor chave de digitalização, de uma lógica '0 'é a P3.3 P3.0 shiftedfrom, se houvesse uma tecla pressionada, em seguida, tornou-se P3.4 low.P3.7 é uma pia, um pouco de condução actual, um exemplo no circuito usa a2n2907 para conduzir uma pequena 5V relé eletromecânico, por exemplo.




 ( continua lendo )




Share this article :

Postar um comentário

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. kvolts - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger