PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Apr 11, 2007 3:20 pm |
|
|
If you want to loop through all 256 elements of the arrays and display
the contents, here is one way to do it:
Code: | #include <18F452.H>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
//==================================
void main()
{
int8 result0[256];
int8 result1[256];
int8 i;
i = 0;
do{
printf("address:%u result0:%u, result1:%u \n\r",
i, result0[i], result1[i]);
}while(i++ != 255);
while(1);
} |
|
|