On Thu, 19 Mar 1998 23:02:56 +0100 =?iso-8859-1?Q?Wolfgang_Sch=E4dle?= writes: >Hello All ! > >I have an question about tabels and perhaps the paging of the PICs (eg >PIC16C65A) Likely the problem is PCLATH is not set properly. If you have considerably less than 256 total table bytes in the program, the easiest solution is to put all the tables early (below 0x100) in the program memory and clear PCLATH before using them. The assembler's "error" directive can be used to detect if the tables are in a place where they won't work. After each table, especially the last one, put: if ($>0xFF) error "Tables out of first page" Ordinarily this line has no effect. But, if the table placement is bad the assembler will stop. It is possible to put tables anywhere in memory but it adds many instructions at runtime to be sure PCLATH is set properly (sometimes, if the table crosses a 256-byte page, PCLATH needs to be set differently depending on which table entry is accessed), compared to just clearing it. _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]