| ??? 01/25/04 23:21 Read: times |
#63333 - serial reception |
Hallo
I have written serial interrupt program in keil C , but have problem with serial recption,I dont get input data into the buffers, I am doing this project on cypress fx2 chip ,transfering data from usb to serial port and viceversa. here is the code of serial interrupt and serial port configration. serial configration in init function(only a part) ------------------- SM01 = 0; SM11 = 0; // serial port MODE 0 SM21 = 0; REN1 = 1; // enable serial receiver RI1 = 0; // clear receiver interrupt TI1 = 0; // clear transmit interrupt ES1 =1; and here is code for serial interrupt -------------------------------------- static void com_isr1 (void) interrupt 7 using 2 { if(RI1){ RI1=0; if(!(EP2468STAT & bmEP6FULL)) { EXTAUTODAT2 = SBUF1;//Transfering data from serial buffer to autopointer buffer } else{ EP6BCH = EP2BCH; SYNCDELAY; EP6BCL = EP2BCL; // arm EP6IN SYNCDELAY; // re(arm) EP2OUT AUTOPTRH2 = MSB( &EP6FIFOBUF ); // init.autopointers AUTOPTRL2 = LSB( &EP6FIFOBUF ); } } } Thank you in advance Madhu |
| Topic | Author | Date |
| serial reception | 01/01/70 00:00 | |
| RE: serial reception | 01/01/70 00:00 | |
| RE: serial reception | 01/01/70 00:00 | |
| RE: serial reception | 01/01/70 00:00 | |
RE: serial reception | 01/01/70 00:00 |



