21.08.2013 Views

Embedded Systems Design with the Atmel AVR Microcontroller Part II

Embedded Systems Design with the Atmel AVR Microcontroller Part II

Embedded Systems Design with the Atmel AVR Microcontroller Part II

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

246 CHAPTER 8. SYSTEM LEVEL DESIGN<br />

{<br />

putcommand(0x01); //Cursor to home<br />

putcommand(0xc0); //DD RAM location 1 - line 2<br />

putchar(’E’); //LCD displays: E<br />

PORTA = 0x40; //Illuminate LED 4<br />

}<br />

//ESE - LED5<br />

if((wind_dir_float > 1.40625)||(wind_dir_float 1.71875)||(wind_dir_float 2.03125)||(wind_dir_float

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

Saved successfully!

Ooh no, something went wrong!