void port_initialization()
{
volatile unsigned char *portD_dir=0x2A;
*portD_dir=0xFF;
}
void outport(unsigned char data1)
{
volatile unsigned char *portD_data=0x2B;
*portD_data=data1;
}
void Timer_init()
{
volatile unsigned char *TCCR0A_D=0x44;
volatile unsigned char *TCCR0B_D=0x45;
volatile unsigned char *OCR0A_D=0x47;
volatile unsigned char *TCNT0_D=0x46;
volatile unsigned char *TIFR0_D=0x35;
*TCCR0A_D=0x83;
*TCCR0B_D=0x03;
*TCNT0_D=6;
*OCR0A_D=63;
}
void setup() {
// put your setup code here, to run once:
port_initialization();
Timer_init();
while(1);
}
void loop() {
// put your main code here, to run repeatedly:
}