//The Cerebot board has 8 ports named as JA, JB, JC, ..., and JH. //The program gets Data from JA and sends it to JB. //Connect DIP switches to JA and LEDs to JB. //It is in C Language for WinAVR. Make the hex file using AVR Studio IDE and WinAVR //See www.microdigitaled.com and www.digilentinc.com for more information #include int main () { DDRA = 0x00; //JA as input DDRC = 0xFF; //JC as output PORTA = 0xFF; //pull-up resistor //get Data from JA (portA) and send it to JB (PortC) while (1) { PORTC = PINA; } }