| 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. |



