[an error occurred while processing this directive]
|
/**************************************************
*
* This is a LED chaser example program for the AVR
* STK500 starter kit evaluation board. This program
* works for all AVRs.
*
* Description:
* This program will turn on the User LEDs one at
* a time and circulate this procedure in a forever
* loop.
*
* Copyright 1996 -2005 IAR Systems. All rights reserved.
*
* $Revision: 1.1 $
*
**************************************************/
int main( void ) PORTB = 0xFF; // Give PORTB and the User LEDs an initial startvalue led = 1; // Start with LED0 DDRB = 0xFF; // Set PORTB as output while(1) // Eternal loop if (!led) __delay_cycles(500000); // Wait for 500 000 cycles
E-mail:
info@telesys.ru
// Include I/O definition file
#include
#include
{
unsigned char led;
{
PORTB = ~led; // Invert the output since a zero means: LED on
led <<= 1; // Move to next LED by performing a rotate left
led = 1; // If overflow: start with LED0 again
}
}
как мне получить hex файл для заливки. В релизе в папке exe только файл .а90 Или IAR не генерит hex , в мануале ничего не нашел про это,
Или я чего то не знаю, научите неграмотного.
Ответы
Перейти к списку ответов
|||
Конференция
|||
Архив
|||
Главная страница
|||
Содержание