Searching \ for '[PIC] Spoiled with 18F parts...FSR on 16F' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=16F
Search entire site for: 'Spoiled with 18F parts...FSR on 16F'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Spoiled with 18F parts...FSR on 16F'
2007\10\05@090528 by alan smith

picon face
OK..I admit, I've been spoiled with 18F parts, given some of the instructions that trump the 16F in ease if implementation.
 
 So, I went back and 'ported' over my serial routines to a 16F part (yep..never ran serial on a 16F device) and I put the rx data into a buffer, typically at some higher memory location like 0x100.  The 18F has the FSRL and FSRH so you can point to those higher locations...how do you do it with 16F where there is only the FSR register.  Did a pass thru the data sheet..this is a 16F913 part, and there was something about using bit 7 in the status register, but didnt seem to stick the data where I thought (yes,,the routine is working...putting data at a lower address so thats working).  Not sure if I just didnt understand the data sheet or is there something else I need to do?

     
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.

2007\10\05@093118 by Alan B. Pearce

face picon face
>Did a pass thru the data sheet..this is a 16F913 part, and
>there was something about using bit 7 in the status register,
>but didnt seem to stick the data where I thought (yes,,the
>routine is working...putting data at a lower address so thats
>working).  Not sure if I just didnt understand the data sheet
>or is there something else I need to do?

You are on the right track. Just remember that the FSR is 8 bits wide, so
the MSB of the FSR acts like the Bank0 bit, and the INDF? bit in the status
register acts like the bank 1 bit for the FSR. So having the INDF bit 0
allows the FSR to access banks 0 and 1, while having it 1 allows the FSR to
access banks 2 and 3.

More... (looser matching)
- Last day of these posts
- In 2007 , 2008 only
- Today
- New search...