Hi Keil,
I have written the follwing code for writing the byte in EEPROM in ED2. The Problem is BUSY flag is not being cleared.
while(!(EECON & 0x01)) ;
EA = 0;
EECON |= 0x02;
XBYTE[0X0055] = 'C';
EECON |= OxOO;
EA = 1;
Please provide…
Hi Keil,
I have written the follwing code for writing the byte in EEPROM in ED2. The Problem is BUSY flag is not being cleared.
while(!(EECON & 0x01)) ;
EA = 0;
EECON |= 0x02;
XBYTE[0X0055] = 'C';
EECON |= OxOO;
EA = 1;
Please provide…
Hi..
I write a DLL to simulate communication between an Serial instrument and 8051.
my work is:
1.DefineSFR SCON
2.DefineVTR SIN, SOUT
3.Add WatchSFR(SCON..., ReadWrite)
4.Add WatchVTR(SIN, Read)
in Watch SCON function:
if the condition "TI.CurrentValue…
With apologies for my oversight, I repost this for the benefit of someone searching the forum by product.
We just figured out that placing "using 0" after an interrupt handler definition is a bad idea. At least when using optimize 9,size, "using 0" tells…
iam working in 8051 microcontroller i want to know about the dynamic memory allocation in Keil c just operation of memset
Question:
i want to place my fn()1 in xdata 0x0100 is it possible by absolute address?
we just figured out that placing "using 0" after an interrupt handler definition is a bad idea. At least when using optimize 9,size, "using 0" tells the compiler not to bother pushing/popping R0. Then it happily goes around writing to R0, doesn't pop…
I m using MSC1210Y5 for some application
Features i require:
1. 1 uart(atleast)
2. Keil UV2 compatibility
3. Working on 5V supply
4. 12 Port pins(atleast)
Can any of you suggest me some other controller that has the above mentioned features but on the…
Hallo everybody,
can anybody help me. I want to save Constants on the XRAM. How does this works?
Hello!
I am trying to interface an HD44780 lcd with 8051. I have successfully displayed a string on it but am having some problems in diplaying strings one after other.
when I try to display a string after a string already displayed , the former…
Hi,
I am using AT89C51ED2 Micro controller,
I have used "XDATA" for my buffer array, when the program is run , I am not able to get correct output, when the same array is used with "DATA" or "IDATA" as storage specifier it is working well...…
Hi ,
I tried to implement call back functions in my program, but unfortunatly it is not working and system is getting restarted as soon as the call is made to the specific function.
I have used function pointers as specified in the data sheet.
Does…
I have the problem. I want to program the UART interface. When I simulate my program it works but if I flash it into the memory I alwase reseive the wrong datas. (the baudrate are always 9600 PC-µC)
Dear friends
we know that Float is four byte in length;
I will like to know how to disintegrate Float in term of char and again I will likie to integrate(constrct)same vale for float from hose 4 byte
Since I want to save float in eepromm
best regards
Hi
I working on a project where i have interfacing 24 bit ADC to AT89s52. I want to implement moving average window method for better resolution.
Any one can suggest me how to implement moving average or if any one has the routine can you please share…
hi,
why do I get now the following error when trying to debug or download firmware:
"CRC Check failed on Command 'DownloadMonitor()'!
I can not debug firmware and can not download firmware (using EMP900 -> ICP) to microcontroller (P89LPC932A1…
Dear friends
we know that Float is byte in length;
I will like to know how to disintegrate Float in term of char and again I will likie to integrate(constrct)same vale for float from hose 4 byte
Since I want to save float in eepromm
best regards
satish…
Have anybody help me with the ADC interface code for C8051F060 ?. How to get the sign bit for the ADC output for the same.
Thank You.
Hi all,
I am writin here for the first time.
I am not able to open the serial port debug window of my simulator from my keil uv2 IDE.
I am using TI based MSC1210Y2 chip.
I have a registered version of uv2 IDE.
Whereas when i send some data on my serial…
Does anyone have experience of the LCD peripheral device simulation from C51.de? (also available from the KEIL site)
As my German is non-existant, it is a bit of a problem.
The DLL works and the target code is OK - I can work out most of it - but I can…
Hi,
I have seen that some of the example programs availbale in this site define/declare variables as unsigned.
For eg: unsigned voltage; //A-to-D example program
What type would voltage in the above case assume? If it just holds a numeric value between…
..continued..
/******************************************************************************/ /* Task 1 'command': command processor */ /******************************************************************************/ void command (void) _task_…
hi,
I want to use monitor51 to test my code that collects some analog data and feeds it to ADC on-board of 8051. I am using uVision2. I have read somwhere that it is necessary to download mon51.exe file on to the board before testing it. But I couldn…
..continued..
/******************************************************************************/ /* Task 1 'command': command processor */ /******************************************************************************/ void command (void) _task_…
How to configure KEIL in SIlabs IDE?. I configured as per the instruction in the pdf. But unsuccessful. If anybody working with both please help me.
I wrote a code for to toggle the port that is given below
#include<reg51.h>
sbit CLOCK = P0^2;
void main()
{
while(1)
{
CLOCK = CLOCK^1;
}
}
its not toggling in the IDE please guide me
Mahesh