From: "Thoma Hauc"
Subject: Re: Problem with PIC12F675 under MPLAB 5.70.00
Date: Tue, 10 Dec 2002 13:48:08 +0100
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
Organization: Guest of ProXad - France
NNTP-Posting-Date: 10 Dec 2002 13:48:08 MET
"Spehro Pefhany" a écrit dans le message de news:
> On Tue, 10 Dec 2002 11:59:31 +0100, the renowned "Thoma Hauc"
> >Here the code to initialize the direction register as well as
> >the initial state of the input/output port GPIO:
> >INITIO BSF STATUS,RP0
> > MOVLW 0F8h
> > MOVWF TRISIO
> > BCF STATUS,RP0
> > MOVLW 004h
> > MOVWF GPIO
> > MOVLW 007h
> > MOVWF CMCON
> > MOVLW 000h
> > MOVWF ANSEL
> > RETURN
> >The question is:
> >Is an error in the code? Or is MPLAB badly owed with the PIC12F675?
> The error is in your initialization code. ANSEL is in bank1,
> so it is not being initialized by the above code, and the inputs
> remain analog inputs.
> Though, I've had problems with the simulation of the rather
> similar F676 part in 6.10.00.
Ok, I had not enough attention on the position of my initialisation code for
> Best regards,
> Spehro Pefhany
> "it's the network..." "The Journey is the reward"
> email@example.com Info for manufacturers:
> Embedded software/hardware/analog Info for designers: