Page 713 - 2
P. 713

UCSR0C = 0x06;
                   UBRR0H = 0x00;
                   UBRR0L = 103;




                   while(1)
                   {
                    data = rx_char();


                    tx_char(data);


                    switch(data)
                    {
                        case 'P' :
                        {
                            PORTC = 0x00;
                            PORTA = 0xff;
                        }
                            break;
                        case 'S' :
                        {
                            PORTC = 0x55;
                            PORTA = 0xfe;
                        }
                            break;
                        case 'W' :
                        {
                            PORTC = 0xaa;
                            PORTA = 0xfd;
                        }
                            break;
                        case 'D':
                        {
                            PORTC = 0x66;
                            PORTA = 0xfb;
                        }
                            break;
                        case 'A' :
                        {


                            PORTC = 0x99;
                            PORTA = 0xf7;
                        }
                            break;
                        case '2' :


                                                         - 713 -
   708   709   710   711   712   713   714   715   716   717   718