vaolaritei
|
i it still blockat this point CTS=(ioread(0x3d)&0x1) why him can't read from input? RE: because him don't have anything on this port ,i ask why you donot put at initialization this port in low. 2.how i can read from uart all the buffer it init_uart1(9600); //iodir(0X3D); iodir(0b111101); int CTS=1; int p=0; printf("am initializat intarea"); void uart() { printf("sunt in functia uart %s ","1"); CTS=(ioread()&0x1); if(CTS==1) { p=input1(); printf("input CTS1 p=%d: ",p); } if(CTS==0) { p=input1(); printf(" input CTS0 p=%d: ",p); printf(" /z/ "); output1('z'); p=input1(); printf(" input CTS02 p=%d: ",p); //+++++ //here how i can read all the buffer because i thing that here i loose some data? //______-----______ delay(10); } } void main() { int i=0; while(i<100) { uart(); i++; printf("I:%d\n",i); } } main();
|