That is the way it works in a 12C508, I expect the same applies to your chip. The movlw will just leave the value in "W". You'll have to something with it for it to have any affect. btw: remember, you still won't get 'exactly' 4MHz, and the frequency you do get will vary over supply voltage, temperature, and perhaps the phase of the moon. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) ----- Original Message ----- From: Andrej Vuga To: Sent: Wednesday, September 06, 2000 8:07 AM Subject: [PIC]: 16C505 & OSCCAL > Hello! > > I'm working with 16C505. I've read the last memory location (for eg. movlw 0x54), which I'll reprogram after erase (I'm working with JW eprom version). > > I'm wondering if there must be the instruction : > > movwf OSCCAL > > at the beginnig of the programme, if I want to work at exacly 4MHz (internal oscillator). > > Thanks > Andrej Vuga > > _______________________________________________________________________ > > Free Unlimited Internet Access! Try it now! > http://www.zdnet.com/downloads/altavista/index.html > > _______________________________________________________________________ > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.