Sergio, Just a quick note to say thank you for posting this summary of the problem, responses, and solution. I found it very educational. --- James Newton (PICList Admin #3) mailto:jamesnewton@piclist.com 1-619-652-0593 PIC/PICList FAQ: http://www.piclist.com or .org -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Sergio Alejandro Gonzalez Sent: Monday, August 28, 2000 09:07 To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: THANKS RE :Simulation OK but FSR won't retain data Hello, all in the PICList: Now, it is working fine. Was a stupid problem typing the SPBRG ... special thanks to the people who took the time to answer: Dan Michaels -------------------- 99:1 bet it is the software, unless you're possibly trying to use a slow part [4 Mhz] at high frequency. 1. Maybe not saving/restoring registers correctly during interrupts, especially FSR. >>>>>> Yes I'am saving them 2. Maybe mixing up FSR and INDIRECT usage somewhere. >>>>>>>What do you mean with INDIRECT, it isn't a special register, doesn't it ? 3. Between 10 and 14.318 timing is different, of course, so SPBRG and other registers/loops related to timing need fiddling. >>>>>> Here was the problem, because I DID CHANGE the SPBRG but instead of typing 0x5C y typed 0x52 !!!! Mark Willis ---------------- Is this a Windowed part? Could ambient light through the window be modifying RAM on startup, if so? >>>>Yes, it's is a windowed device and I often do quick tests so there is no enough time for the EPROM cells to discharge... Harold M Hallikainen ------------------------------ >>>>> thanks for the advice of having severals FSR thank you all !!!!!!!! -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu