'This code will crash a PicMaster!'
part 0 1250 bytes
I have been working on a C924 project, and have a PWM generator program
that will bring the emulator and MPLAB to a halt. I have minimized a
piece of code that when run will crash the emulator. Same code works
right in the windowed part. I must use the timer2 interrupt to stuff
new values into the PWM, as it is used for sound generation. When I was
updating the PR2 and CCPR1L without regard to timing, I didn't have this
problem, but I did have clicks in the sound. The use of page 1 seems to
have something to do with it too.
To crash it, run it on the emulator, with a 1MHz clock, and look at the
PWM output (RC2). You must stop and reset and run the program about
four times, and it will then crash in about 4 or 6 seconds. The odd
thing about it is that when it crashes, it will pack up the MPLAB
software. The PC shown at the bottom of the screen goes to some whacky
value, and the editor has no cursor and you cannot type. If you
re-assemble, it will then allow editting. As I was minimizing the
program, I was getting 'stack underflow' errors every now and then. Now
it just stops.
Any grand insights?
Thanks for the help
Pioneer Microsystems, Inc.
Attachment converted: wonderland:Oxy01.zip (pZIP/pZIP) (0000FD0B)
Hi to all engineers.
I use to have crashing problem with picmaster when I talked to
microchip engineer his name is DAN MATUE i am not sure about spelling he
solved the problem. I just replaced the power supply with true 300 w
1. check on logic probe jack see if you have 5.0 volts if it is 4.6 or even 4.7
that could be
|Chris Eddy wrote:
> To crash it, run it on the emulator, with a 1MHz clock, and look at the
> PWM output (RC2). You must stop and reset and run the program about
> four times, and it will then crash in about 4 or 6 seconds. The odd
> thing about it is that when it crashes, it will pack up the MPLAB
> software. The PC shown at the bottom of the screen goes to some whacky
> value, and the editor has no cursor and you cannot type. If you
> re-assemble, it will then allow editting. As I was minimizing the
> program, I was getting 'stack underflow' errors every now and then. Now
> it just stops.
I had plenty of problems with a '74 probe (also the infamous "stack
underflow") until our FAE replaced the PAL chip on it. After that I
even saw it again.
Tjaart van der Walt
| WASP International http://www.wasp.co.za/~tjaart/index.html |
| R&D Engineer : GSM peripheral services development |
| Vehicle tracking | Telemetry systems | GSM data transfer |
| Voice : +27-(0)11-622-8686 | Fax : +27-(0)11-622-8973 |
| WGS-84 : 26¡10.52'S 28¡06.19'E |
More... (looser matching)
- Last day of these posts
- In 1998
, 1999 only
- New search...