Motherboard Forums


Reply
Thread Tools Display Modes

Advanced Transdata

 
 





















Bill Chernoff
Guest
Posts: n/a

 
      05-26-2005, 09:19 PM


I am using a Rice17A to emulate a PIC18C252. Having a lot of fun trying to
debug 2 timer-overflow based interrupts. One is high priority, one is low.
I can't single step because the timers keep right on running, so they
overflow and interrupt pretty much immediately, when single stepping. Now
I've got my Logic analyzer to trigger properly, and its trigger out goes
into the Rice's break input, which halts it (the Rice) pretty reliably- it
only "skids" 4 instructions, which I think is pretty good. I think my
problem lies somewhere in the interrupts the way they save context, and then
restore it and continue on. One of the interrupts uses the FSR0, and the
main program loop used that too, and I thought hey! thats how the data
changes itself, but I changed the main loop to use FSR1, and no change in
problem.

I have an alphanumeric display, and I compute the bit images in the main
loop. The low-prority timer overflow interrupt "paints" one image per
interrupt. Trouble is very infrequently, the bit image memory gets
corrupted slightly, in that the image for alphanumeric display which
supposed to be in postion 2 gets put into position 3, for example. This
causes the display to flicker very slightly, but it is unacceptable. This
only happens when the high priority interrupt is enabled (which is all the
time, in the final product), but this is maddening because that interrupt
has nothing to do with the displays. It doesn't even accesses the same
variables, except WREG,BSR, and a few others, which are saved and restored
the usual way.

What I'm getting around to is : is there a way to make the Rice17A break on
a data memory change? If I could see where the bit images get corrupted,
I'd be away!

I welcome, indeed beg for, any debugging ideas!

--
Bill


 
Reply With Quote
 
Thad Smith
Guest
Posts: n/a

 
      05-28-2005, 08:04 PM
Bill Chernoff wrote:

> I am using a Rice17A to emulate a PIC18C252. Having a lot of fun trying to
> debug 2 timer-overflow based interrupts.

....
> I think my
> problem lies somewhere in the interrupts the way they save context, and then
> restore it and continue on.


One place to check is the errata for your chip:
http://ww1.microchip.com/downloads/e...Doc/80058h.pdf

Thad

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
X48T-DQ6, DES Advanced and flashing power on light John Gigabyte 0 08-17-2008 02:25 PM
With a PC based on the Intel® Pentium® 4 Processor with HT Technology†, you get advanced performance and multitasking capabilities for today's digital home ... sehanran@gmail.com Dell 1 03-16-2008 03:06 PM
aspire 1650 advanced bios menu? Paul Acer 0 10-12-2007 04:45 PM
Microsoft Office 2003 Pro with SP3 (5 cd), Windows Vista September 2007 x64, other 24/09/29 new programs, Loads of GREAT SOFTWARE ( 20,000 plus programs DVDS and CDs) ola@mail.gr Intel 0 09-29-2007 02:17 PM


All times are GMT. The time now is 03:10 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43