--------------Boundary-00=_MOHIQL80000000000000 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable TMR1 can take pic out of the sleep mode only if it is set to operate on external clock source. Crystal with internal oscilator wont do it, but a complete oscilator will.=0D =0D When sleeping, the internal oscilators are disabled, so no rollover will ever happen.=0D =0D Lucas Hartmann=0D =0D -------Mensagem original-------=0D =0D De: pic microcontroller discussion list=0D Data: Monday, November 17, 2003 17:43:15=0D Para: PICLIST@MITVMA.MIT.EDU=0D Assunto: [PIC]: TMR1 and SLEEP mode=0D =0D Hi,=0D I'm currently playing around with one of my PIC16F628s - I wanted to build=0D some form of battery-powered rolling-code generator. The catch is, the=0D timekeeping is done with TMR1, while the PIC itself is running off the 4M= Hz=0D internal oscillator. Does anyone know if the TMR1 oscillator (or rather a= =0D TMR1 counter rollover) can be used to take the 16F628 out of Sleep mode?=0D =0D Thanks.=0D --=0D Phil. | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB,=0D philpem@dsl.pipex.com | ViewFinder, Ethernet (Acorn AEH62),=0D http://www.philpem.dsl.pipex.com/ | 8xCD, framegrabber, Teletext=0D =2E... Reactance: your imaginary friend.=0D =0D --=0D http://www.piclist.com hint: To leave the PICList=0D mailto:piclist-unsubscribe-request@mitvma.mit.edu=0D =0D =2E -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu --------------Boundary-00=_MOHIQL80000000000000 Content-Type: image/gif; name="IMSTP.gif" Content-Transfer-Encoding: base64 Content-ID: <26C8730C-45CA-4538-8E88-232A68AABD5B> R0lGODlhFAAPALMIAP9gAM9gAM8vAM9gL/+QL5AvAGAvAP9gL////wAAAAAAAAAAAAAAAAAAAAAA AAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJFAAIACwAAAAAFAAPAAAEVRDJSaudJuudrxlEKI6B URlCUYyjKpgYAKSgOBSCDEuGDKgrAtC3Q/R+hkPJEDgYCjpKr5A8WK9OaPFZwHoPqm3366VKyeRt E30tVVRscMHDqV/u+AgAIfkEBWQACAAsAAAAABQADwAABBIQyUmrvTjrzbv/YCiOZGmeaAQAIfkE CRQACAAsAgABABAADQAABEoQIUOrpXIOwrsPxiQUheeRAgUA49YNhbCqK1kS9grQhXGAhsDBUJgZ AL2Dcqkk7ogFpvRAokSn0p4PO6UIuUsQggSmFjKXdAgRAQAh+QQFCgAIACwAAAAAFAAPAAAEEhDJ Sau9OOvNu/9gKI5kaZ5oBAAh+QQJFAAIACwCAAEAEAANAAAEShAhQ6ulcg7Cuw/GJBSF55ECBQDj 1g2FsKorWRL2CtCFcYCGwMFQmBkAvYNyqSTuiAWm9ECiRKfSng87pQi5SxCCBKYWMpd0CBEBACH5 BAVkAAgALAAAAAAUAA8AAAQSEMlJq7046827/2AojmRpnmgEADs= --------------Boundary-00=_MOHIQL80000000000000--