Searching \ for '12c509jw osc cal' 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/timers.htm?key=osc
Search entire site for: '12c509jw osc cal'.

Truncated match.
PICList Thread
'12c509jw osc cal'
1999\10\25@135246 by John C. Frenzel

picon face
I am trying to save the internal osccal value before blasting away with my
programmer.  I read the new chip into a file and this is the output of the
last few bytes.  It looks like the marked line contains the value F9C.  From
the microchip book, location 1FF should contain a movlw xx where xx is the
value.  movlw is 1100 xxxx xxxx or in hex notation 0C XX  I am unsure what C
on the line is preceeding the value.  The very end of each line appears to
be a checksum.  Which value do I record?
:1007A000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0FD9
:1007B000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0FC9
:1007C000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0FB9
:1007D000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0FA9
:1007E000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F99
:1007F000FF0FFF0FFF0FFF0FFF0FFF0FFF0F9C0CEF <-- this line
:10080000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F78
:101FFE00FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F63
:00000001FF
Thanks,
John


__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

1999\10\25@181611 by paulb

flavicon
face
John C. Frenzel wrote:

> It looks like the marked line contains the value F9C.
>  From the microchip book, location 1FF should contain a movlw xx where
> xx is the value.  movlw is 1100 xxxx xxxx or in hex notation 0C XX

> The very end of each line appears to be a checksum.

> :1007A000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0FD9
> :1007B000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0FC9
> :1007C000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0FB9
> :1007D000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0FA9
> :1007E000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F99
> :1007F000FF0FFF0FFF0FFF0FFF0FFF0FFF0F9C0CEF <-- this line

 This line contains 8 word records starting at address 00F0.  All
16-bit data is written back-words, Intel style (gotta hand it to 'em!)
so Address $00F0 is written F000, seven of the data words are $0FFF (12
bits all 1s) written FF0F and the MOVLW instruction coded as you
correctly expect, $0CF9 writes as F9C0 followed by the one byte
checksum.

 Yout OSCCAL value is $F9.

> :10080000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F78
> :101FFE00FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F63
> :00000001FF

 That's another question...
--
 Cheers,
       Paul B.

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