Tecnologia

Disponível somente no TrabalhosFeitos
  • Páginas : 6 (1297 palavras )
  • Download(s) : 0
  • Publicado : 26 de abril de 2013
Ler documento completo
Amostra do texto
ENSINO PRESENCIAL COM SUPORTE EAD
TECNÓLOGO EM MECATRÔNICA – MÓDULO

EWERTON DA SILVA OLIVEIRA 2124822011







AULAS ATIVIDADES
MICROCONTROLADORES











...............................................................................................................................
Guarulhos
AULA 1009_01'****************************************************************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2012 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 10/9/2012 *
'* Version : 1.0*
'* Notes : *
'* : *
'****************************************************************

TRISB=%00000000
'
VOLTA
PORTB=%0001
PAUSE 10
PORTB=%0011
PAUSE 10
PORTB=%0010
PAUSE 10
PORTB=%0110
PAUSE 10
PORTB=%0100
PAUSE 10
PORTB=%1100PAUSE 10
PORTB=%1000
PAUSE 10
GOTO VOLTA




AULA 1709_1
'****************************************************************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2012 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved*
'* Date : 17/9/2012 *
'* Version : 1.0 *
'* Notes : *
'* : *
'****************************************************************
TRISA=%11111101
TRISB=%11110000'****************************************************************
'DECLARAÇÃO DE VARIÁVEIS
BOTAO VAR PORTA.0
LED VAR PORTA.1
MOTOR VAR PORTB
TEMPO VAR BYTE
'****************************************************************
'PROGRAMA PRINCIPAL
INICIO
TEMPO=10
IF BOTAO=1 THEN
HIGH LED
MOTOR=%00000001
PAUSE TEMPO
MOTOR=%00000010
PAUSE TEMPO
MOTOR=%00000100
PAUSE TEMPO
MOTOR=%00001000
ELSE
LOW LED
MOTOR=%00000000
PAUSE TEMPO
ENDIF
GOTO INICIO
_____________________________________________________
AULA 2409_1
'****************************************************************
'*Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2012 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 24/9/2012 *
'* Version : 1.0 *'* Notes : *
'* : *
'****************************************************************


'CONFIGURAÇÃO DO REGISTRADOR TRIS
TRISA=%11111110
'***************************************************************
'DECLARAÇÃO DE VARIAVEIS
LED VAR PORTA.0'***************************************************************
'PROGRAMA PRINCIPAL
TEMPO=50
HIGH LED
PAUSE TEMPO
LOW LED
PAUSE TEMPO
HIGH LED
PAUSE TEMPO
LOW LED
HIGH LED
PAUSE 50
LOW LED
AULA 0110_1
'****************************************************************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice...
tracking img