;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 AVR Assembly Language for AVR Studio IDE. Make the hex file using AVR Studio. ;See www.microdigitaled.com and www.digilentinc.com for more information .INCLUDE "M64DEF.INC" ;ATmega64 is used by Cerebot2 board LDI R20, 0x00 OUT DDRA, R20 ;JA as input LDI R20, 0xFF OUT DDRC, R20 ;JB as output OUT PORTA, R20 ;make the pull-up resistors of port A active ;-------Get data from DIP switches connected to JA and send it to LEDs of JB L1: IN R20, PINA ;R20 = JA OUT PORTC, R20 ;JB = R20 RJMP L1 ;go to L1