Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Help needed how to simulate 2 microcontrollers at same time with different hex files
only 1 microcontroling is executing program at a time in protues .
sorry for bad english .
I guess I don't see the problem: both uCs run as state machines, a command comes in and they respond to it. The 1st uC gets commands from a box of buttons/switches and outputs to its' LCD and/or out its' serial Tx. The 2nd uC gets commands from the 1st uC and outputs to its' LCD.
Each has a definable command/response protocol (Don't They??), so you can build and debug each as separate blocks. Or, is there a Lot more to it than you're describing...
It's not like a synergistic setup, where execution of each is interdependent on some/all others... a Much More interesting thing to write/debug. <<<)))
here is my code ..while simulationg both us's whith the same code only uc is giving characters on lcd...if i use only 1 uc than every thing is ok 1st uc takes data from rx and put it on lcd and tx
ISIS will not simulate RF devices... But as long as the real world device acts like a cable! you don't need to simulate.. There is no gps simulation either..
When I need to simulate these devices. I quickly knock up a VB application then comunicate with ISIS vis com0com http://com0com.sourceforge.net/...
here is my code and schematic first mc sends contineously gps sentences while second uc extract latt/long the problem is that it only get latt/long 1 time after that it doesnot update latt/long..
The printf statement outputs a $GPGLL twice in one sweep you may only get the second reading over and over, the first will be an instant..
To test its functionality create two adjustable variables and then printf("$GPGLL, %d,%d,N,00500.0006,E,104715.203,A*37", varX, varY); to change each iteration.
Maybe the serial port is in error.. I have never used mickroC so I cant debug your code.. Can you place a breakpoint in your serial() routine to view each time it receives L and L, then you can view the buffer.. when the loop is bigger than 25 and you have done you should clear the buffer so you can see if the serial() routine is working correctly.
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.