I support an on-going project involving 5 MCUs running in parallel, which I build with uVision 3 (C51 = V8.02; BL51 = V6.00).
I am running out of code space in one of them. I currently use the SiLabs C8051F046, which has 32k of flash, and want to migrate…
I have written a routine to update an array using sprintf statement but after the execution the array doesnt seem to update. I am clueless where i have made the mistake. Can anybody help me? The program is given below.
#include<reg669.h> #include…
I am having problem to start the PWM.
I have downloaded: http://www.keil.com/download/docs/203.asp
and run it at the simulator. The PWM signal ONLY starts if I tick the TCOU2 at the CCU window!
If I also load TH2 and TL2 when loading TOR2: It seems…
hi to all from last two 3 day's i strucked with some the problem. i have already done the i2c routine for AT24c04. Which works fine i can read from that and can write in. now i am going to use the LCD and printing the string on that i also developed…
Hi,
When A51 encounters an error during the expansion of a macro it gives error line references to the original source file that are wildy incorrect. These are in the output window in uV3. When you then go to the referenced line #s in the source file…
Can any 8051-based devices be debugged via the USB interface rather than via the serial port? Alterrnatively, are there any 8051 devices that have a JTAG interface that is supported by Keil?
I have just revisited some old code which was compiled with the C51 C compiler - the code compiles ok (flow is C51->BL51->OH51). I now need to add some inline assembler. To check that the new flow (C51->A51->BL51->OH51) is ok before I make the changes…
When I compiled my C program in keil cx51 the "for loop" is not working what is the solution?
Hi, I tried this example but the isr doent seem to be getting executed.
In the isr i m calling a function to display on 7-segment displays. Otherwise the normal program flow is based on Receiving and Sending data on UART0(using timer1 in 8-bit auto…
As you will probably concluded I'm new to programming. I've purchased a MCB900 board and attempting to program. I've loaded Measure C sample program and attempted to build it.I keep getting an error messgae that it can't execute C:\LPC900KEIL\C51\BIN…
Is there any C-to-C converter available to convert source files (assembly and C code) in bulk mode from IAR Embedded Workbench for 8051 to format recognized by Keil? (such as #pragma, inline asm statements, etc).
I heard that IAR has a similar C-to…
uVision has generated a HEX file that it has trouble downloading via ULink. Very occasionally (1 out of 50), it will succeed. Other HEX files work reliably. Regenerating the file does not help. However, when I manually delete a line (record), seemingly…
I have a global int variable, and it will be change in ISR
because 8051 is a 8-bit MCU
I have a code if(a == 0) it needs to check lowwer byte= 0 and higher byte =0
but interrupt a--; so if a=0x100 lowwer byte =0 interrupt happen a = 0x0ff higher…
Does anybody in this forum know if the KEIL tool can support a processor made by EM Microelectronics such as EM6812, EM6682. If not, is there away to get around the issues?
Thanks in advance
Does any body know whether there is a inbuilt bluetooth module inside the 8-bit MCU?
If not can anybody give some details regarding how to interface bluetooth module to 8051?
I am interfacing a Benq M22 module based GSM modem with my PC and making an application which perform different purposes for SMS. I need to know that which AT command can be used to receive the SMS delivery reports ? I've tried to search AT+CNMI in different…
While using the simulator, the values of i in the serial window are shifted by left 8 bits.
#include "stdlib.h" #include "stdio.h" #include "reg51.h" void main (void) { unsigned char i; SCON = 0x50; TMOD |= 0x20; TH1 = 221; …
this project has 3 functions (a, b nad c) function g, when running (which will be twice a year) makes function a TOTALLY inactive.
In this memory starved world we '51ers live in I am sharing some global (please it has to be - need no comments on that…
hi
i want to use the assembly code in my c file how can i do this i refered the link below but did not the clear idea
http://www.keil.com/support/man/docs/c51/c51_cm_srcfile.htm i gone through following step's upto step 3 it is ok but after that…
Think you. I modified my source :
printf("%lu * %bu = ", N, M); printf("%lu\n", Freq); Freq=25690112L; printf("%lu * %bu = ", Freq, 4); Freq*=4; printf("%lu\n", Freq); …
Hi Friends,
I have been working on CY7C68013A EZ-FX2LP USB based micro controller, I have written code for IN/OUT operation i.e, Read and Write operation of USB.
I am initially reading data from HOST a bulk 64 Bytes of data and storing it in a location…
Dear Frnds,
I am using CY768013A USB microcontroller and when i connect my board to PC , I get my Vendor ID and product ID as 0x04B4 and 0x0082,
1. I have not seen the product ID 0x0082,anywhere mentioned in manual given by cypress.
2. After downloading…
Hi can anyone tell me the basics of what this code is doing? I know it is writing to eeprom but is it writing a byte at a time and incrimenting the address?
EECSN is the eeprom pin.
#define EE_WRSR 0x01 #define EE_WRITE 0x02 #define EE_READ…
Hi, has anyone any keil code for a software UART on an 8051? Leigh
I created a project with main function whose code size is more than 64KB. Upon compiling there was error message,
error C253 : 'main' :function exceeds 64kb code size
The controller P89C669 is having 96KB flash memory but then why this…