Continue to Site

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.

[SOLVED] my code work in Proteus with pic18 ok but when download it in chip it isnt work

Status
Not open for further replies.

mahm150

Full Member level 1
Joined
Dec 14, 2010
Messages
98
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Cairo, Egypt, Egypt
Activity points
2,001
my code work in Proteus with pic18 ok but when download it in chip it isnt work
i am beginner in pic world but start i work in simulation it work ok but in real world not work
i think,i missed something in config byte but i am not know it, but i make the most probability;
one of my adjust is i disable all thing(pwrt-clk-wdt....) and choose xt for 4mhz
i use mikroc.
how can i test this problem
 

my code work in Proteus with pic18 ok but when download it in chip it isnt work
i am beginner in pic world but start i work in simulation it work ok but in real world not work
i think,i missed something in config byte but i am not know it, but i make the most probability;
one of my adjust is i disable all thing(pwrt-clk-wdt....) and choose xt for 4mhz
i use mikroc.
how can i test this problem

Proteus Simulation is not real, i had faced a problem that my code was not working on Proteus Simulation but was actually working on Atmega32 micro and vise versa.

Try to use Trail version of PIC18 Simulator IDE with Basic Compiler, Assembler, Disassembler and Debugger, IDE and than Load hex file on this IDE as its basically for Assembly Language. And than Simulate your program on it, If its work on this IDE than it will also work on micro.
 

I have the same problem as mahm150's problem... I do not know why it worked in Proteus simulation but in real world it did not work?
 

1. Every Simulation tool have some limitation & it is explore it's limitation in the form
document.
2. Simulation developer assume user aware all hardware & software ideal condition.
So many time simulation work but practical not work. So start with Practical small
assignment then go to simulation it build ur confidence level for next work.
New Beginner avoid simulation for project work at initial level.
 

Please do not depend on Simulators. I did I2C communication in Proteus which dint work, but i got it in my demo board.
As you said you have Development board, you can debug your code line by line and could find where the bug exists.

Regards,
Gopi Natarajan
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top