Searching \ for '12F675' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=12f675
Search entire site for: '12F675'.

Truncated match.
PICList Thread
'12f675'
2002\09\18@190108 by MILAN BASA

flavicon
face
I need a little help with my problem.I am trying to set OUT-bit  to
1, but OUT is still 0 (without change).
That's the same with "Async. stimulus" with bit IN.
Where is the problem?    (MPLAB v5.70)

Thanks, Milan

;**************************************************
; Procesor: 12f675   X-tal: 2Mhz
;**************************************************
       #INCLUDE "P12F675.INC"

 __CONFIG _CPD_OFF & _CP_OFF & _WDT_OFF & _XT_OSC
;.................................................
#DEFINE    OUT   GPIO, 01h
#DEFINE    IN    GPIO, 00h
;................................................
               ORG     000h
               GOTO    START
;...............................................
START
       bcf     STATUS, RP0
       clrf    GPIO
       movlw   07h
       movwf   CMCON           ;Comparator off
       bsf     STATUS, RP0
       movlw   01h
       movwf   TRISIO          ;bit 0 as input, other outputs
       bcf     STATUS, RP0
;***********************************************
       nop
       bsf     OUT             ;I am trying to set OUT to 1
       nop                     ;here is OUT without change
       nop
;**********************************************
       end

--
http://www.piclist.com hint: To leave the PICList
spam_OUTpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu


2002\09\18@192040 by Tony Nixon

flavicon
picon face
Your program goes nowhere.

Try putting...

Stay    goto Stay

.... at the end of your code.

Also, for correct digital IO operation, check the ANSEL register to set
the GPIO pins as digital inputs.

MILAN BASA wrote:
{Quote hidden}

--
Best regards

Tony

mICros
http://www.bubblesoftonline.com
salesspamKILLspambubblesoftonline.com

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam.....mitvma.mit.edu



'12F675'
2004\01\29@090024 by NEWZED
picon face
We are looking at the 12F675 and after reading the data sheet understand most
of it.  I have one question - pin 4 is indicated as an I/O and MCLR.  My
understanding is the MCLR must always be pulled high for normal operation.

How can this be accomplished and the pin still be used as an I/O.  Can
someone enlighten me, please.

Sid Weaver

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

.

2004\01\29@090448 by Wouter van Ooijen

face picon face
> understanding is the MCLR must always be pulled high for
> normal operation.

You confuse the function and the pin. In the fuses you can assign the
pin to the I/O function and have MCLR fulled high internally.

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

.

2004\01\29@113141 by Howard Winter

face
flavicon
picon face
Wouter,

About the MCLR pin...

On Thu, 29 Jan 2004 15:03:40 +0100, Wouter van Ooijen
wrote:

>...<
> In the fuses you can assign the pin to the I/O
function and have MCLR fulled high internally.

I've often wondered:  if you do this does it mean that
power-cycling is the only way to reset this chip?

If so, does it imply that you have to have a "clean
starting" power supply, where otherwise you could rely
on resetting to start the chip peoperly?  Or is the
internal POR circuitry good enough?

Cheers,

Howard Winter
St.Albans, England

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

.

2004\01\29@115754 by Wouter van Ooijen

face picon face
> I've often wondered:  if you do this does it mean that
> power-cycling is the only way to reset this chip?

true (apart from the watchdog-initiated 'reset')

> If so, does it imply that you have to have a "clean
> starting" power supply, where otherwise you could rely
> on resetting to start the chip peoperly?  Or is the
> internal POR circuitry good enough?

No experience with sufficiently bad powers. I guess YMMV. Recent PICs,
including the 12F's, have a configurable brown-out, probably sufficient
in most situations.

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

.

2004\01\29@123122 by NEWZED

picon face
Second posting - don't think the first one made it.

We are looking at the 12F675 and after reading the data sheet understand most
of it.  I have one question - pin 4 is indicated as an I/O and MCLR.  My
understanding is the MCLR must always be pulled high for normal operation.

How can this be accomplished and the pin still be used as an I/O.  Can
someone enlighten me, please.


Sid Weaver

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

.

2004\01\29@153557 by Tech

flavicon
face
> Second posting - don't think the first one made it.
>
> We are looking at the 12F675 and after reading the data sheet understand most
> of it.  I have one question - pin 4 is indicated as an I/O and MCLR.  My
> understanding is the MCLR must always be pulled high for normal operation.
>
> How can this be accomplished and the pin still be used as an I/O.  Can
> someone enlighten me, please.
>
>
> Sid Weaver

You decide at burn-time or include config parameters in your code to configure this pin to
function as /MCLR (reset) or as an "input only" pin by setting or clearing bit 5 in config word.

Most device programmers will have a menu for setting config options before you burn the
target, and/or you can assemble or compile config settings in your code as well.

Asm: __CONFIG _INTRC_OSC_NOCLKOUT & _MCLRE_OFF

Same deal here;

PBP: @ DEVICE INTRC_OSC_NOCLKOUT, MCLR_OFF

With /MCLR turned OFF the pin is configured for digital I/O, and you don't need the external
pull-up to Vcc since it no longer functions as the reset pin. With the /MCLR option turned ON
you do.

Like most PICs' you have more than 1 option or feature on I/O-pins, and the datasheet becomes
a necessity if you want to take advantage of & learn how to configure them...;o]

Regards,

-Bruce
EraseMEtechspam_OUTspamTakeThisOuTrentron.com
http://www.rentron.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

.

2004\01\29@154841 by Wouter van Ooijen

face picon face
> Most device programmers will have a menu for setting config
> options before you burn the
> target, and/or you can assemble or compile config settings in
> your code as well.

Referring to the 'process' discussion: please please the other way
round: you should put it in your code, and some device programmers have
an option to change it, which you should ignore. Some device programmers
allow you to edit the executable code before it is programmed. Would you
consider that a good practice?

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

.

2004\01\29@160407 by Tech

flavicon
face
> Referring to the 'process' discussion: please please the other way
> round: you should put it in your code, and some device programmers have
> an option to change it, which you should ignore. Some device programmers
> allow you to edit the executable code before it is programmed. Would you
> consider that a good practice?
>
> Wouter van Ooijen

I always include config settings in my code, but there are occasions when I may
need to twiddle a config setting for some reason, and may not have the original
raw assembly file handy to re-assemble if changes were necessary. Depends on
the circumstance. 99.9% of the time it's assemble, burn, and go, but there are
occasions.

Regards,

-Bruce
techspamspam_OUTrentron.com
http://www.rentron.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

.

2004\01\30@235214 by Matthew Miller

flavicon
face
Hello,

On Thu, Jan 29, 2004 at 12:20:14PM -0500, @spam@NEWZEDKILLspamspamAOL.COM wrote:
> Second posting - don't think the first one made it.
>
> We are looking at the 12F675 and after reading the data sheet understand most
> of it.  I have one question - pin 4 is indicated as an I/O and MCLR.  My
> understanding is the MCLR must always be pulled high for normal operation.
>
> How can this be accomplished and the pin still be used as an I/O.  Can
> someone enlighten me, please.

Section 9.1 of the datasheet show the uses of the bits in the configuration
byte. If the bit MCLRE is set to 0 then the pin can be used for general purpose
I/O, otherwise the pin can be used as !MCLR. How this those bits in the CONFIG
byte are set depends on what assembler or compiler you use.

Take care, Matthew.

--
"There is nothing so strong as gentleness, and there is nothing so gentle
as real strength."  -- St. Francis de Sales

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email KILLspamlistservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body

.

More... (looser matching)
- Last day of these posts
- In 2004 , 2005 only
- Today
- New search...