??? 05/09/09 06:57 Read: times |
#165183 - To kiran Responding to: ???'s previous message |
thanks a lot for the early replies..helo..i have tried the code on keil..but it shows only one update on port i.e. 0x01; after that it shows nothing on the ports..pls help me out how can i refine the code to show the updates....
#include <AT89X52.h> #define NUMPAT 8 #define NUMIN 2 //double Input[NUMPAT+1][NUMIN+1] = { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,0, 1, 1 }; double Input[NUMPAT+1][NUMIN+1] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,13, 14, 15 }; void main (void) { unsigned char i,j; for (i=0; i<NUMPAT+1; i++) { for (j=0; j<NUMIN+1; j++) P1= Input[i][j]; } } |