How to initialize the T89C51RB2 ? Does anyone as C source for that ? Thank's for advance...
To do what? Look in your Keil\C51\Examples folder, and the downloads section here.
To drive a board by serial port (RS232)... I can't find any example on internet...
"I can't find any example on internet..." Nonsense! What about the "Hello World" example that shipped with your Keil toolset: Keil\C51\EXAMPLES\HELLO\Hello.uv2 There's interrupt-driven examples in the downloads section of this site. Check-out this tutorial: http://www.8052.com/tutorial.phtml
Is it possible to include ASM code into C code ? I've tried this but with no success: _asm nop _endasm;
Is it possible to include ASM code into C code ? Yes, but the implementation is crummy. Put the asm in a separate .a51 module. Erik
Oki thank's... Is it the only way to process ?
Is it the only way to process ? nope, but if you use #pragma 1) you need to do .src and then assemble 2) your debugger source will be the assemblerfor the entire C module By keeping the asm code separate 1) you just compile one and assemble the other of the 2 modules (simple) 2) your debugger source will be the C Either way works, you pick Erik
"if you use #pragma 1) you need to do .src and then assemble 2) your debugger source will be the assemblerfor the entire C module" 3). You will lose all symbolic information for the module - so you won't be able to use the Browser for it; 4). The module will always be re-translated on every build - whether it needs it or not; 5) You may lose some of the higher optimisations? (not so sure about this one).
I've tried this but with no success:_asm nop _endasm; It's always a good idea to check in the Manual before making up your own syntax!
_asm nop _endasm;
5) You may lose some of the higher optimisations? (not so sure about this one). Nope. This was the case a long, long time ago (V3 or V4) but not today. Jon
"This was the case a long, long time ago (V3 or V4) but not today." Does that include the Linker code packing?