Lab_One_Part_One

Lab_One_Part_One - break slendy = 65000 break slendy =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
start unsigned char i unsigned long j unsigned long slendy DDRD = 0x5C DDRB = 0xF0 (; ) unsigned char b = PINB yes end no SWITCH: (b) b = 0x00 b = 0x01 b = 0x02 b = 0x03 b = 0x04 b = 0x05 b = 0x06 b = 0x07 b = 0x08 b = 0x09 b = 0x0A b = 0x0B b = 0x0C b = 0x0D b = 0x0E b = 0x0F DEFAULT slendy = 100000 break (i=0x01; i<0x80; i<<=1) slendy = 95000 break slendy = 90000 break slendy = 85000 break slendy = 80000 break slendy = 75000 break slendy = 70000
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: break slendy = 65000 break slendy = 60000 break slendy = 55000 break slendy = 50000 break slendy = 45000 break slendy = 40000 break slendy = 35000 break slendy = 30000 break slendy = 5000 break (i & 0x5C) yes (i=0x80; i>0x01; i>>=1) no no PORTD = ~i yes (j=0; j<slendy; j++) no wait() yes no (i & 0x5C) yes no PORTD = ~i yes (j=0; j<slendy; j++) no wait() yes...
View Full Document

This note was uploaded on 11/21/2011 for the course ECE 3411 taught by Professor Park during the Fall '11 term at UConn.

Ask a homework question - tutors are online