Robot Evasor de Obstaculos

Page 27

ESCUELA POLITÉCNICA NACIONAL

$swstack = 10 $framesize = 40

Dim W As Word Dim W1 As Single Dim W2 As Single Dim A As Word Dim Pwm_c As Byte Dim Pwm_2 As Byte Dim B As Single Dim C As Word Dim D As Single Config Single = Scientific , Digits = 2 Dim Control_1 As Byte Dim Control_2 As Byte Dim Control_3 As Byte Dim Motores As Byte

Config Portd = Output Config Porta = Input Config Portc = Output Config Portd.0 = Input Portc = 0 Portd.0 = 1 Portd.7 = 0 Portd.6 = 0

Config Timer1 = Pwm , Pwm = 8 , Compare A Pwm = Clear Down , Compare B Pwm = Clear Down , Prescale = 8

Config Adc = Single , Prescaler = Auto , Reference = Avcc Config Debounce = 15

FACULTAD DE INGENIERÍA ELÉCTRICA Y ELECTRÓNICA

27


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.