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.
serial on c51
try this:
void serial_isr (void) interrupt 4
{
if (RI)
{
RI=0;
test=SBUF;
}
if (TI) TI=0;
}
you need to clear the flags even if you do not use the data.
Otherwise the interrupt will be reentered after on asm code execute
usbman
Added after...
compiler at89c5131
you should consider also the limits.
1. Every time when you have set a break you are writing to the flash memory.
2. If you are stepping through the code Flashmon will always set a break in Flash
so with will be only a matter of time until your flash breaks down.
3. You...
at89c5131 debugging
I am using flip to load the configured mon51 into the internal flash.
You need to build a special HW with an external Ram (32k) mapped to 0x8000
accessible with PSEN and read (VNM).
UV2 + Mon51 loads the code to the ram and you can debug in realtime.
Debugging is done via...
at89c5131 jtag
mon51 from Keil and a debug HW with VNM Ram at 0x8000 would do that.
At least thats working for me.
You need to build the monitor with a start address of 0x0000 and link the app code to 0x8000.
usbman
format inhx32
I don't have much expierance with Pics but as far as I know they give the adressspaci in words not in bytes so when there is a memory > 32k (words) you always end beyond a 64k (byte) segment. This may be the reason for using segmentation.
usbman
inhx32 format
segment records divide the code in different segmends (each segment can hold 64k data) this is pretty much the same as x86 addressing scheme.
It is a way to use Intel Hex on x86 machines. Keils C166 uses this format.
Linear addressing means almost the same but I think there are no...
passing sfr values in function in 8051
none of the above soulutions will work
params are passed in registers! in Keil
please check the asm output
usbman
read the sections about #pargma asm in the manual.
I can not see any reason wy this should be neccessary. Its always beter to write an extra asm module if you need the power of ASM
usbman
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.