|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Purpose of the _SIMULATOR macro?
What is the purpose of the _SIMULATOR macro in this segment of code from main() in the default code? From what I can tell, all it does is prevent anything from happening inside the while loop, which would be rather useless. So, why is it there?
|
|
#2
|
|||||
|
|||||
|
Re: Purpose of the _SIMULATOR macro?
MPLAB has a simulator built in that allows you to run or step through your code as it executes without the RC. The _SIMULATOR tells the compiler to skip over portions of the code that would normally be supplied by the RC but impede the simulation. Specifically, the section of code that waits for radio packets to arrive.
Try a search on _SIMULATOR to find other discussions about MPLABs simulator. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bumpers for a game purpose? | Andrew Blair | Rules/Strategy | 6 | 10-01-2006 13:08 |
| QotW 10-19-03: Purpose lost. | Madison | Rumor Mill | 4 | 22-10-2003 13:32 |
| Losing focus on the purpose of FIRST.. someone bring me back | archiver | 2000 | 6 | 23-06-2002 22:56 |
| The Purpose of FIRST | archiver | 2000 | 9 | 23-06-2002 22:29 |
| Did Team 505 do it on purpose | Elgin Clock | Regional Competitions | 4 | 31-03-2002 10:13 |