Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Visit NXP website for I2C-related specs and documents. They will tell you how to use I2C.
For reading/writing serial EEPROM (24Cxx series), you could use the I2C master controller if your MCU has it.
Or you could use the IO port and firmware to build an I2C master controller by your own. I...
error c241 keil
It's about where your variables/data stored
See
https://www.keil.com/support/man/docs/c51/c51_ap_overlayseg.htm
https://www.keil.com/support/man/docs/c51/c51_ap_smallmodel.htm
https://www.keil.com/support/man/docs/c51/c51_ap_compactmodel.htm...
keil model dependent maximum
Answer is here: https://www.keil.com/support/man/docs/c51/c51_c241.htm
The required space for local objects exceeds the model dependent maximum. The maximum segment sizes are defined as follows: SMALL 128 bytes COMPACT 256 bytes LARGE 65535 bytes
FYR
If you don't need XDATA to store your volatile data,
I suggest you map SRAM into 0x8000~0xFFFF.
By doing this, the max code for your program
will be 32Kbytes.
If you map SRAM into 0x0000~0xFFFF, the first
8Kbytes can not be used for program code in
your case. You have let /EA = 1 for...
store code #16:
MOVC command will try to access the program ROM space.
In this case (MON51), the results of MOVC and MOVX should be the same
for the external RAM space, which is used for CODE and XDATA
simutaneoulsy now.
I suggest that you check /EA, /PSEN, ALE first.
(I made some mistakes...
what does 35 whr mean
Yes, only TXD/RXD and GND needed for connection.
And the baud rate on both side (MCU and PC) should be the same.
For this reason, the clock source of MCU should be accurate enough.
Moreover, an RS-232 driver (like Maxim MAX232) is needed
The connection should be like this...
keil mon51 commands
u mean download to external ram ??... ==> Yes, uV3 will do this.
To used MON51 for debugging, you should change the MCU architecture
from Havard to von Neumann. An external SRAM is used to store user's
program. I used it for debugging several years. It could get rid of...
what does 37 whr mean
Do you use Keil's compiler?
If yes, MON51 is programmed within flash. You should use SRAM as program
memory and user's program is downloaded into by the IDE (uV3).
For Cortex M3, C++ may be as good as C. Use it if you are familiar with C++.
The key point is if the compiler could produce a good machine code.
The architecture of Cortex M3 is adapted to use the high-level programming
language.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.