Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

receiving serial data on 8051 and writing to multiple ports

Status
Not open for further replies.

prototypingfool

Electrical
Nov 3, 2009
23
New to C programming and the 8051 and I'm trying to modify a program to receive 3 bytes of data, and write those bytes to Ports 0,1,2. I'm hoping my input would be something like
000000001111111100000000 and Port 0 would show the first byte, Port 1 the second, and port 2 the last byte. I'm using KeiluV.
Any suggestions on my code (attached - i hope).

Much appreaciated!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor