Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/09/07 11:22
Read: times


 
#141602 - SDCC and FLIP Programmer from ATMEL
i am using first time SDCC and i need your help.
i wrote simple program on KEIL which worked perfect and then i modified and i tested on SDCC . I transfered this to MC AT89C51RB2 with FLIP but didn't work.
I do this job because i want to test if FLIP translate good the code that produce SDCC. SDCC has a bug on it or i make sth wrong?
The code that i made is the following:
#include <at89c51ed2.h>
#include <stdio.h>
void initial(void);
void init_timer (void) interrupt 3;

void init_timer (void) interrupt 3
{
unsigned char idata i;
i++;
while(i==20){
P1=~P1;
i=0;
}}
void initial(void){
TMOD=0x10;
TL1=0xAF;
TH1=0x3C;
IE=0x88;
TR1=1;
P1=0x00;
}
void main(void){
initial();
while(1){}
}

Thanks for every suggestion and help

List of 12 messages in thread
TopicAuthorDate
SDCC and FLIP Programmer from ATMEL            01/01/70 00:00      
   "work"            01/01/70 00:00      
      i tested            01/01/70 00:00      
         packihx            01/01/70 00:00      
            still nothing            01/01/70 00:00      
            nope!            01/01/70 00:00      
   Your program generates error on compile            01/01/70 00:00      
      a question for Charles Bannister            01/01/70 00:00      
      Thank you Charles Bannister!            01/01/70 00:00      
         version            01/01/70 00:00      
   FLIP Translation?            01/01/70 00:00      
   Unsafe assumption!            01/01/70 00:00      

Back to Subject List