Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need delay C routines to send serial data in VC

Status
Not open for further replies.

ganavel9783

Member level 1
Member level 1
Joined
Sep 6, 2005
Messages
38
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
2,257
Hi every1,

I recently manage to implement the AES encryption algorithm into my PIC16f877. However when i send a text file larger than 16 bytes to my PIC using UART, the 2nd block data onwards is getting truncated. I very much think that i need to set a delay in my pc application so it sends every block of 16 bytes of a text file using a delay rountine.

This way the 2nd block of 16 bytes is send after the 1st block of 16 byte is encrypted and send back to the PC. The same goes when i want to send the 3rd block of 16 bytes where i have to wait for the 2nd encrypted block of 16 bytes to come back to PC. This will go on untill all the the 16 byte blocks of a text file is fully encrypted.

Any help to set up a delay rountine in Visual C will be really appreciated.

regards,
ganavel9783
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top