Welcome to EDAboard.com

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.

Oshon Simulator can simulate code for CCS compiler

Status
Not open for further replies.

wakaka

Full Member level 4
Joined
Dec 7, 2005
Messages
237
Helped
10
Reputation
20
Reaction score
6
Trophy points
1,298
Activity points
2,931
pic ide oshon

Hihi, i meet some problem on this simulator. The simulator cant simulates this code for CCS compiler

delay_ms();

and this is my code :

#include <16F877A.h>
#fuses HS,NOWDT,NOPROTECT,BROWNOUT,NOLVP
#use delay (clock=20000000)

#BYTE PORTB = 6
#BYTE PORTC = 7
void main()


{

set_tris_c(0);
set_tris_b(0);

while(1){

portb = 0xff;
delay_ms(1000);
portb = 0x00;
delay_ms(1000);
}
}

need advices on that. Or any other suggestions on other simulator? better free one...thanks
 

hugo

Full Member level 6
Joined
Dec 31, 1999
Messages
323
Helped
49
Reputation
98
Reaction score
23
Trophy points
1,298
Location
canada
Activity points
2,154
Re: Oshon Simulator

Hi,

You have to supply the simulator with the hex file !!!

"Proteus" is another good simulation program !!!

:D
 

metal

Full Member level 6
Joined
Dec 21, 2004
Messages
364
Helped
19
Reputation
38
Reaction score
6
Trophy points
1,298
Activity points
3,834
Re: Oshon Simulator

Hi

delay_ms(1000) takes a very long time when using PIC simulator IDE, you better make it delay_ms(2), it will be much shorer periode, so you can track changes faster.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top