/* Tiny13a 1.2MHz 2014/3/1 Last Mod 2014/3/2 ROM 154 Bytes Configuration Registers =1F 6A */ char LED_CD[]={ //LED Control Data 0x32,0x31,0x64,0x62,0x54,0x51 // 0-5 I/O 3bit // ,0xc8,0xc4,0xa8,0xa2,0x98,0x91 //1-12 I/O 4bit }; char bd; void main() { while (1){ for (bd=0;bd<6;bd++){ PORTB=LED_CD[bd] & 15; DDRB=(LED_CD[bd] >>4)& 15; Delay_ms(200); } } }