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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Rob Stoffels
06/10/09 10:35
Read: 219 times
Westerlo
Belgium


 
#165990 - Itterations
Responding to: Erik Malund's previous message
When u place them in a while loop shouldnt't each itteration preforms a write to the address?
So when u connect an oscilloscope you should see the transitions?

I've not reached this stage yet because each code containing "external ram features" just won't get flashed into the µc.
To make things even worse even the simplest code does not get into the µc.
for example

#include "t89c51cc01.h"
#include "compiler.h" //just atmel compiler header file



char dat;
unsigned char dat2;

int number;
unsigned int x;

main (void)
{
dat=0x00;
while (1)
{
x++;
switch (x)
	{
	case 10:
		P0=0x00;
		break;
	default: P0=0xff;
	}
if (x==150) x=0;
}
}
 
 


It just doesn't get in there... I don't see what i'm missing here.

I've been using the at89c51cc03 most of the time but the development board here is this t89c51cc01. But I doubt there is much difference in between them, especially for a simple program like this.

List of 19 messages in thread
TopicAuthorDate
AT89c51cc01 and External memory (keil/C51)      Rob Stoffels      06/09/09 10:54      
   Cross posted      Rob Stoffels      06/10/09 04:24      
   Is your problem with FLIP ?      David Prentice      06/10/09 04:36      
      No, think it's keil compiler      Rob Stoffels      06/10/09 05:25      
         Sounds like an error in the data sheet      David Prentice      06/10/09 06:08      
         bible time      Erik Malund      06/10/09 07:18      
            Itterations      Rob Stoffels      06/10/09 10:35      
               just won't get flashed into the µc??      Andy Neil      06/10/09 11:18      
               The compile will compile what you tell it      David Prentice      06/10/09 11:21      
                  RE: your example does not access any xdata at all      Andy Neil      06/10/09 11:31      
         RE: Rob Stoffels said:I think there is something that needs      Andy Neil      06/10/09 11:33      
            Going to try something different      Rob Stoffels      06/10/09 12:46      
               Broken Boards?      Andy Neil      06/11/09 05:42      
                  Memmory mapping question/ Bord fixed      Rob Stoffels      06/15/09 08:32      
                     If I read this correctly      Erik Malund      06/15/09 09:04      
                        Missunderstanding      Rob Stoffels      06/15/09 09:49      
                           xdata will just be whatever EXTRAM says      David Prentice      06/15/09 10:18      
                           do you have any external RAM?      Erik Malund      06/15/09 12:27      
   CC03 is working      Rob Stoffels      06/11/09 04:56      

Back to Subject List