ON 20010503@9:35:04 AM at page: http://www.piclist.com/techref/microchip/tcpip.htm JMN-EFP-786 James Newton edited the page ON 20010503@5:34:20 PM at page: http://www.piclist.com/techref/microchip/rs232.htm JMN-EFP-786 James Newton added 'delete ' ON 20010503@5:36:07 PM at page: http://www.piclist.com/techref/microchip/rs232.htm JMN-EFP-786 James Newton edited the page ON 20010504@9:24:50 AM at page: http://www.piclist.com/techref/microchip/icd.htm JMN-EFP-786 James Newton added 'archive reference http://www.piclist.org/techref/postbot.asp?by=time&id=piclist\2001\05\01\224258a PICList post "ICD Debugger Specification"' ON 20010504@9:26:03 AM at page: http://www.piclist.com/techref/microchip/icd.htm JMN-EFP-786 James Newton edited the page ON 20010504@12:57:21 PM at page: http://piclist.com/techref/microchip/compcon.htm DAV-MP-E62a David A Cary added 'I have agreed to maintain this page. ' ON 20010507@3:57:45 PM at page: http://www.piclist.com/techref/microchip/bigtable.htm DAV-MP-E62a David A Cary added 'Says

Someone mentioned SoundLoop: ... incf OffsetL ; add 1 to data pointer btfsc STATUS,C incf OffsetH

but my little cheat sheet claims that `incf' only affects the Z bit, not the C bit. Is my cheat sheet leaving something out ? Or is there a bug in this code ? Or am I missing something ? SoundLoop: ... incf OffsetL ; add 1 to data pointer btfsc STATUS,Z incf OffsetH

The heavy use of btfsc STATUS,C ; also known as skpnc elsewhere on this page looks OK, because they follow the ``addwf'' or ``addlw'' instructions, which do affect the carry bit. -- David Cary ' ON 20010508@9:36:34 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary added 'I have agreed to maintain this page. ' ON 20010508@10:10:46 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@10:24:34 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@10:31:24 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@11:02:10 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@11:08:45 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@11:23:11 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the pageConnection to host failed. ON 20010508@11:30:28 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@11:44:03 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@12:12:08 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@12:21:36 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@12:37:08 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@12:44:07 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@12:53:30 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@1:24:01 PM at page: http://www.piclist.com/techref/microchip/tables.htm DAV-MP-E62a David A Cary added 'Says

Bob Ammerman of Ram Systems says:

Here is a trick I use to avoid problems with PCLATH/PCLATU and interrupts on 18C chips:

given:

rcall    lookup_func

instead of:


;align to page start if needed
lookup_func:
addwf    PCL,F,A
retlw      1
retlw      2

I have used:

;align to page start if needed
lookup_func:
rcall    lookup_index
retlw    1
retlw    2

lookup_index:
addwf    TOSL,F,A
return

; For large tables you can:

lookup_index:
addwf    TOSL,F,A
btfsc      STATUS,C
incf        TOSH,F,A
return

In the program where I use this, I consider PCLATH/PCLATU to be resources usable _only_ in my interrupt handler. I use the above trick for code at task level. This seems to work quite well. It saves me the requirement of saving PCLATH in my interrupt handler (which is _very_ pressed for time).

I have _not_ seen the pattern of MOVFF somehow being interrupted in the middle. Are you saying that the instruction is basically skipped when this happens (ie: it doesn't execute before entering the interrupt and it doesn't execute on return from the interrupt). I'd love more particulars here if possible.

Also, in regard to the LFSR instruction. As far as I know, all silicon currently available is broken. Just say _no_ to the instruction. It is a shame, because this would be a _very_ useful instruction.

' ON 20010508@4:50:39 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010508@4:55:35 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010509@7:38:02 AM at page: http://piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010509@9:05:02 AM at page: http://piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010509@9:07:31 AM at page: http://piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010509@9:10:29 AM at page: http://piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010509@9:13:04 AM at page: http://piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010509@9:23:40 AM at page: http://piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010509@12:06:00 PM at page: http://piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010509@12:24:09 PM at page: http://piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010511@2:53:06 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010511@2:58:34 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010511@3:12:24 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010511@3:31:45 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010511@3:53:51 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010511@3:58:48 PM at page: http://www.piclist.com/techref/microchip/mpasm.htm JMN-EFP-786 James Newton added 'archive reference http://www.piclist.org/techref/postbot.asp?by=time&id=piclist\2001\05\09\184425a PICList post "Ultra Edit Config" for MPASM' ON 20010514@9:20:20 AM at page: http://www.piclist.com/techref/microchip/languages.htm JMN-EFP-786 James Newton edited the page ON 20010514@9:20:46 AM at page: http://www.piclist.com/techref/microchip/languages.htm JMN-EFP-786 James Newton edited the page ON 20010517@8:38:38 AM at page: http://www.piclist.com/techref/microchip/i2c-dv.htm JMN-EFP-786 James Newton edited the page ON 20010517@9:04:28 AM at page: http://www.piclist.com/techref/microchip/timer.htm JMN-EFP-786 James Newton added 'change ' ON 20010517@9:57:36 AM at page: http://piclist.com/techref/microchip/bigtable.htm JMN-EFP-786 James Newton added 'change ' ON 20010517@10:13:50 AM at page: http://www.piclist.com/techref/microchip/i2c-eeprom.htm JMN-EFP-786 James Newton added 'archive reference http://www.piclist.org/techref/postbot.asp?by=time&id=piclist\1998\06\17\133056a PICList post "code challenge - compact I2C eeprom code"' ON 20010517@11:30:04 AM at page: http://www.piclist.com/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010517@11:39:18 AM at page: http://www.piclist.com/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010517@11:42:08 AM at page: http://www.piclist.com/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010517@12:05:05 PM at page: http://piclist.com/techref/microchip/bigtable.htm JMN-EFP-786 James Newton added 'change ' ON 20010519@6:02:48 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@6:09:32 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@6:22:05 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@6:29:56 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@6:40:11 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@7:05:45 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@7:16:07 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@7:27:33 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@7:39:43 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@7:47:09 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@7:54:49 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010519@8:00:38 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010521@7:33:25 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010521@7:36:17 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010521@7:52:59 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010521@8:08:13 AM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page ON 20010521@10:15:06 AM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010521@11:19:29 AM at page: http://piclist.org/techref/microchip/pages.htm DAV-MP-E62a David A Cary added 'Questions: Is there anything on page http://piclist.org/techref/microchip/17inst.htm that pages.htm doesn't say better ? ' ON 20010521@11:23:08 AM at page: http://piclist.org/techref/microchip/pages.htm DAV-MP-E62a David A Cary added 'Says link to http://piclist.org/techref/microchip/instr/call.htm which discusses jump tables, and CALL on 12-bit-core PIC. ' ON 20010521@11:27:40 AM at page: http://piclist.org/techref/microchip/17inst.htm DAV-MP-E62a David A Cary added 'Questions:

What does the LONGC macro do ? Why would anyone ever want to use it ? I'm missing the point.' ON 20010521@11:34:30 AM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary added 'Says The PIC 12C509 processor does not have the SUBLW, ADDLW instructions. ' ON 20010521@5:02:58 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010521@5:10:10 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010521@5:32:25 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010521@5:38:16 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010525@2:46:06 PM at page: http://www.piclist.com/techref/microchip/i2c-dv.htm ADV--A41 Andrew D. Vassallo edited the page ON 20010525@2:47:10 PM at page: http://www.piclist.com/techref/microchip/i2c-dv.htm ADV--A41 Andrew D. Vassallo edited the page ON 20010525@4:25:53 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010525@4:27:57 PM at page: http://piclist.org/techref/microchip/compcon.htm DAV-MP-E62a David A Cary edited the page ON 20010529@9:06:19 AM at page: http://piclist.org/techref/microchip/compcon.htm JMN-EFP-786 James Newton edited the page ON 20010530@9:39:38 AM at page: http://www.piclist.com/techref/microchip/spi-ad7730-tk.htm JMN-EFP-786 James Newton added 'change ' ON 20010530@9:42:45 AM at page: http://www.piclist.com/techref/microchip/spi-ad7730-tk.htm JMN-EFP-786 James Newton edited the page ON 20010530@12:49:35 PM at page: http://www.piclist.com/techref/microchip/tables.htm JMN-EFP-786 James Newton added 'archive reference http://www.piclist.org/techref/postbot.asp?by=time&id=piclist\2001\05\30\140847a PICList post "A table question." table lookups without the addwf pcl,f' ON 20010530@1:00:32 PM at page: http://www.piclist.com/techref/microchip/devprogs.htm JMN-EFP-786 James Newton added 'See also: http://www.wsu.edu/~jackdoll/jmon/ A useful little monitor program for the '877 from Jack Dollhausen' ON 20010530@1:02:14 PM at page: http://www.piclist.com/techref/microchip/devprogs.htm JMN-EFP-786 James Newton edited the page ON 20010530@1:04:41 PM at page: http://www.piclist.com/techref/microchip/devices.htm JMN-EFP-786 James Newton edited the page