bianchi77
Advanced Member level 4
- Joined
- Jun 11, 2009
- Messages
- 1,313
- Helped
- 21
- Reputation
- 44
- Reaction score
- 20
- Trophy points
- 1,318
- Location
- California
- Activity points
- 9,442
do you know how to use it ?You have i2c debugger in ISIS and software simulator in Keil. In real life you have to use logic analyzer.
How can I use Keil or ISIS, any clues ?Buy an old HP logic analyzer; they're fantastic. They used to sell for $37,000, but you can now buy one for $100 if you look, on Ebay.
Are you kidding, man? Forget about old HP analyzers. Buy actual devices - USBee AX, DX, RX...Buy an old HP logic analyzer; they're fantastic. They used to sell for $37,000, but you can now buy one for $100 if you look, on Ebay.
Like this one :
No, it is 16ch logic analyzer and 2 channel oscilloscope.Wholesale free shipping, 2 in 1, USBee Dx / Saleae Logic Analyze, 16Channels
Is it a device that simulating my computer as an osciloscope ?
thanks
First of all, you need to understand, that Proteus can't simulate microwave ovens, coffee machines and tea pots. When you attaching the crystal model, what are you trying to simulate? External quartz resonator? Forget about it. If you want to get correct results, just try to understand how the spice working. Hint: try to use only digital models. I can't explain you how to build a house if you don't know what is a brick.Like this one :
View attachment 64858
How to debug it ?
My computer became so slow if I put SPI there....
I'm talking about logic analyzer with oscilloscope option.Is it the same with this :
**broken link removed**
---------- Post added at 13:42 ---------- Previous post was at 13:41 ----------
Is it the same with this :
**broken link removed**
Even for realtime, you can optimize your project that will simulate few microcontrollers without any problems. Did you ever seen an labcenter examples? They launching unix in realtime!My computer became so slow if I put SPI there....
First of all, you need to understand, that Proteus can't simulate microwave ovens, coffee machines and tea pots. When you attaching the crystal model, what are you trying to simulate? External quartz resonator? Forget about it. If you want to get correct results, just try to understand how the spice working. Hint: try to use only digital models. I can't explain you how to build a house if you don't know what is a brick.
And that voltmeter... what it for?
Even for realtime, you can optimize your project that will simulate few microcontrollers without any problems. Did you ever seen an labcenter examples? They launching unix in realtime!
I'm talking about logic analyzer with oscilloscope option.
No problem, I'll try.So you must help explain me what the brick is then
It will work. XTAL pins not modeled on all ISIS model except 4060 and some other logics.If I don't put a crystal, the MCS51 will not work, will it ?
With MCS51 I don't. But what is the difference between SPI on MCS51 and others? You can simulate SPI without any controllers at all. Just take a two signals and manually adjust the second one. Possible, you will need the third signal for CS.Do you have an example on how to test SPI with MCS51 ?
Because you trying to mix analog and digital models. Because you trying to simulate too many process. Many things. I simulating projects with USB on 48Mhz frequency in realtime on old dell laptop. It works fine you know.Why did my computer become so slow then ?
LED model can be digital and analog. By default, it is analog. In this case ISIS have to count their current and voltage like on real device.I put SPI, MCS51, LED and voltmeter only, it's simple already.
Thanks for the information, but for testing the code I need to put my uC there ?With MCS51 I don't. But what is the difference between SPI on MCS51 and others? You can simulate SPI without any controllers at all. Just take a two signals and manually adjust the second one. Possible, you will need the third signal for CS.
I thought it will not work without battery as a power supply, because I'm thinking the circuit will need a power supply.But what are you trying to do with battery?
Are you kidding, man? Forget about old HP analyzers. Buy actual devices - USBee AX, DX, RX...
Wholesale free shipping, 2 in 1, USBee Dx / Saleae Logic Analyze, 16Channels,
Attach you code and explain what I must to see. I'll try to simulate. Actually, you need only 89c52 model. No crystals, no batteries.Thanks for the information, but for testing the code I need to put my uC there ?
Can it test my code without uC ?
Look at the model properties. The HIDDEN PINS is the VCC and GND. VCC by default is always connected to +5V. So, the model is powered. The only exclusion is an ARM LPC models. They have simulated power pins.I thought it will not work without battery as a power supply, because I'm thinking the circuit will need a power supply.
No problem to use digital model of LED with simulated mcu. It is very useful for understanding what is going on really.I don't have to use LED as well then
Thats because it is a copy of original device. Possible, ebay too popular for pirats )))Is it saved buying from Aliexpress, I can't find that device in ebay.
First of all it is a analyzer. The scope don't have optical isolation. So, for me it is useless option.It's logic analyzer and osciloscope at once..
My friend,Attach you code and explain what I must to see. I'll try to simulate. Actually, you need only 89c52 model. No crystals, no batteries.
And one important think. All your schematics must have GROUND connection. ISIS don't like floating constructions.
Is it safe buying from Aliexpress ?
I don't have a compiler for c51, so, please, attach HEX programm.My friend,
The code :
I know many people who buy there. Everything ok.Is it safe buying from Aliexpress ?
I don't have a compiler for c51, so, please, attach HEX programm.
I know many people who buy there. Everything ok.
void AT25_WritePage(uint address, //from this address;
uchar num_of_byte, //the number(<32) of bytes to write;
uchar* source //data to write.
)
{
uchar i=0;
/* Filter the parameters */
if(num_of_byte>32) num_of_byte=32;
//if(address>4096) address=0;
if(address>8192) address=0;
/* make sure that the device is write enabled */
AT25320_CS=0;
_nop_();
SPI_WriteByte(WREN);
AT25320_CS=1;
_nop_();
_nop_();
/* write op_code,address and data into the device */
AT25320_CS=0;
_nop_();
SPI_WriteByte(WRITE); //op_code
SPI_WriteByte((uchar)(address >>8));
SPI_WriteByte((uchar)(address));
for(i=0;i<num_of_byte;i++)
{
SPI_WriteByte(*source);
source++;
[COLOR="#FF0000"]DELAY SHOULD BE HERE[/COLOR]
}
AT25320_CS=1;
}
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?