piclist 2000\06\02\194030a >
Thread: 12C508 OSCCAL value
www.piclist.com/techref/microchip/devices.htm?key=pic
flavicon
face BY : mikedspam@elkhart.net



>
> > The value is 0x70, use RETLW 0x70
> >
> > Friendly Regards
> >
> > Octavio Nogueira
> actually retlw 0x70 assembles to 0x870
>
> movlw 0x70 assembles to 0xC70
>
> John
>
Yes, this is at the last address which is the reset vector on 12 bit
core devices. The program counter rolls over to 000h and one of the
first instructions should be Movwf OSCAL. On EPROM devices the
movlw (cal value) will have to be placed there after eraser. On OTP
parts it is already there.
Note that the 12C67x are 14 bit core and have a RETLW (cal value)
at the last location. They reset to 000 where one of the first
instructions should be Call (last address).

<3937FF6C.4857.240DCB@localhost> 7BIT

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) 12C508 OSCCAL value

month overview.

new search...