Dear friends,
I want to make OCX file for 8051.
OCX file will send 3 bytes of data to ASYNC1
Command will be "Send2Com (Byte1,Byte2,Byte3)"
How can I do this ?
Thanks.
You want to do an OLE Control Extension for an 8051???
An 8051 is a little (!) microcontroller, and not a PC that can run Windows!
Most probably you are on the wrong forum right now, but you can try to write a _long_ and nice description of exactly what you are trying to do. Then we might be able to either help you or direct you to another forum.
"I want to make OCX file for 8051"
What do you mean by that? What is an "OCX file" in this context?
OCX was the predecessor to the ActiveX controls in Windows...
Yes, in Windows - but is that what the OP actually meant here...?
i thought it was obvious!
on the computer the ocx is loaded when it is needed and used by more programs.
i need the 51 to do the same stuff and load the ocx when it has to.
anyione got the code for it?
i want to use the mscomm.ocx to use the UART1
"i thought it was obvious!"
It may be obvious in the correct context - MS Windows PC programming - but it is way out of context on an embedded site and particularly for an 8051!
"on the computer"
No, not just any computer: That's specifically a PC, and specifically one that's running an appropriate version of MS Windows - neither of which applies to an 8051.
"i need the 51 to do the same stuff"
If you really need that stuff, then the 8051 is the wrong choice for the job
"anyione got the code for it?"
No - it is fundamentally not a thing to do on an 8051.
No chance!
That will be specifically written for an x86-based PC platform, with a PC-type UART, running MS Windows. None of those is applicable to an 8051!
The request is a bit similar to requesting instructions how to load and run Quake or World of Warcraft or similar on a pocket calculator. The calculator may be "a computer" but not the same type of computer as the games where intended to be run on.
You don't run a 8051 processor with an operating system and then download one or more concurrent applications into it. Your application is _the_ application, and anything you want the 8051 to do has to be implemented into that single application. And that single application has to fit into the memory (code memory and RAM) of the uC. And you will have to settle for the processing speed of the uC. It is either fast enough, or it isn't.