Click here to Skip to main content
15,915,319 members
Home / Discussions / C#
   

C#

 
Questionconnectionstring Pin
farokhian12-Dec-09 10:03
farokhian12-Dec-09 10:03 
QuestionException Handling Pin
Razanust12-Dec-09 7:53
Razanust12-Dec-09 7:53 
AnswerRe: Exception Handling Pin
PIEBALDconsult12-Dec-09 8:52
mvePIEBALDconsult12-Dec-09 8:52 
QuestionSchedulle a task for some days of the week Pin
baranils12-Dec-09 6:14
baranils12-Dec-09 6:14 
AnswerRe: Schedulle a task for some days of the week Pin
Abhinav S12-Dec-09 6:20
Abhinav S12-Dec-09 6:20 
AnswerRe: Schedulle a task for some days of the week Pin
Luc Pattyn12-Dec-09 6:22
sitebuilderLuc Pattyn12-Dec-09 6:22 
GeneralRe: Schedulle a task for some days of the week Pin
baranils12-Dec-09 6:35
baranils12-Dec-09 6:35 
GeneralRe: Schedulle a task for some days of the week Pin
baranils12-Dec-09 6:56
baranils12-Dec-09 6:56 
GeneralRe: Schedulle a task for some days of the week Pin
Luc Pattyn12-Dec-09 7:21
sitebuilderLuc Pattyn12-Dec-09 7:21 
GeneralRe: Schedulle a task for some days of the week Pin
baranils12-Dec-09 7:38
baranils12-Dec-09 7:38 
GeneralRe: Schedulle a task for some days of the week Pin
PIEBALDconsult12-Dec-09 8:55
mvePIEBALDconsult12-Dec-09 8:55 
GeneralRe: Schedulle a task for some days of the week Pin
baranils12-Dec-09 9:24
baranils12-Dec-09 9:24 
GeneralRe: Schedulle a task for some days of the week Pin
PIEBALDconsult12-Dec-09 9:35
mvePIEBALDconsult12-Dec-09 9:35 
AnswerRe: Schedulle a task for some days of the week Pin
PIEBALDconsult12-Dec-09 8:53
mvePIEBALDconsult12-Dec-09 8:53 
GeneralRe: Schedulle a task for some days of the week Pin
baranils12-Dec-09 12:02
baranils12-Dec-09 12:02 
GeneralRe: Schedulle a task for some days of the week Pin
PIEBALDconsult12-Dec-09 18:02
mvePIEBALDconsult12-Dec-09 18:02 
GeneralRe: Schedulle a task for some days of the week Pin
baranils12-Dec-09 23:04
baranils12-Dec-09 23:04 
GeneralRe: Schedulle a task for some days of the week Pin
PIEBALDconsult13-Dec-09 4:02
mvePIEBALDconsult13-Dec-09 4:02 
GeneralRe: Schedulle a task for some days of the week Pin
baranils13-Dec-09 4:21
baranils13-Dec-09 4:21 
GeneralRe: Schedulle a task for some days of the week Pin
PIEBALDconsult13-Dec-09 5:31
mvePIEBALDconsult13-Dec-09 5:31 
GeneralRe: Schedulle a task for some days of the week Pin
baranils13-Dec-09 5:48
baranils13-Dec-09 5:48 
GeneralRe: Schedulle a task for some days of the week Pin
PIEBALDconsult13-Dec-09 6:22
mvePIEBALDconsult13-Dec-09 6:22 
AnswerRe: Schedulle a task for some days of the week Pin
#realJSOP13-Dec-09 3:42
professional#realJSOP13-Dec-09 3:42 
GeneralRe: Schedulle a task for some days of the week Pin
baranils13-Dec-09 4:00
baranils13-Dec-09 4:00 
QuestionCode seems to loops indefinitely Pin
Karthik S Prakash12-Dec-09 6:11
Karthik S Prakash12-Dec-09 6:11 
I am trying to transmit about 75Kbytes of image data at 115200 baud. Ideally it should take about 5 secs. But this code seems to loop forever. Am I missing something obvious here?


#define rows 288
#define cols 352

 for (j=rows-2; j>=0; j-=2)
    {
        for (i = (j*cols); i<((j*cols)+cols); i++)
        {
            cam_output = ram_read(i*4);
            SendBuffer[0] = (cam_output >> 24) & 0xff;
            SendBuffer[1] = (cam_output >> 16) & 0xff;              
            SendBuffer[2] = (cam_output >> 8) & 0xff;
                          
            uart_send(&SendBuffer, 3);    
            
        }        
    }


void uart_send(u8 *DataBufferPtr, unsigned int NumBytes)
{
    int i;
    
    for (i=0; i<NumBytes; i++)
    {
        XUartLite_SendByte(XPAR_UARTLITE_0_BASEADDR, *(DataBufferPtr+i));
    }

}







Regards,



Karthik

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.