I need the header files conio.h, dos.h and all that to make it run in Keil Compiler.. Where do I get these?
1. Nothing "runs" in any compiler. You use a compiler to translate your source files into something that you can run on some target system. 2. conio.h, dos.h are for MSDOS-based PC systems. Keil tools do not create code to run on PCs, and you won't get MS-DOS running on an 8051!! I'm afraid you are in totally the wrong ballpark here!
I'm afraid you are in totally the wrong ballpark here agreed The '51 ain't no PC as many think it is Erik
I need the header files conio.h, dos.h and all that No, you don't. You need to try and understand what you're doing, so you'll know why you don't need these, and can't have them.
Oh sorry.. Guess I'm in the wrong track then.. Let's say I need to use the outportb() fn.. It requires dos.h header file.. Now how do I use that in Keil?
Let's say I need to use the outportb() fn.. It requires dos.h header file.. Now how do I use that in Keil? Ok, maybe I was not clear when I said The '51 ain't no PC so let me try this The '51 supported by Keil tools is NOT a PC because of this: the '51 supported by Keil tools does NOT operate under DOS the '51 supported by Keil tools does NOT support file commands (there is no I/O) The above has nothing to do with Keil, it has to do with the hardware (the '51) If you can not understand the above, find yourself another occupation. Erik
Let's say I need to use the outportb() fn.. No, let's not say that --- because it would be 100% wrong. You don't need that function, full stop. Erik says this a little more often than it strictly applies, but in your case he's 100% correct: you have to stop thinking of the 8051 as a PC. It's not. Not anywhere near it, actually. You lost your direction in a major way. So, please: stop whatever you're doing. Immediately. Go back at least half the way to the origins of the project you're in, and triple-check every single decision you made. Make sure you actually understand the reasons for making each and every choice along the way.
You lost your direction in a major way I guess sniffing chlorine will do that. Erik
"Guess I'm in the wrong track then" Oh, how true! "Let's say I need to use the outportb() fn.." You can say that the Earth is flat, if you like, but it won't help your navigation! "It requires dos.h header file.." Yes it does, but let's just recall what we learned earlier: "2. conio.h, dos.h are for MSDOS-based PC systems." "how do I use that in Keil?" You don't. You can't. Keil do not make tools that generate code to run on PCs!!
Andy, Erik and Hans, I always get a smile on my face when I read some of you Guy's replys here on the forums :o) Carsten
we aim to please have a good weekend Erik