A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
Hello,
Am using a pic16f84a. I had a problem with the TMR0 and
PORTB when used as inputs. I got it to work by using 11000111 in OPTION_REG. When i used
00000111 all of PORTB went high. Could anyone explain this please?
Also if i define a port bit as an input and do not use
it, not hold it low or anything, could this cause the pic to crash?
Cheers,
Paul
|
|
|
|
Yeah i did. I
have now been informed about the Pull Up in the OPTION_REG i had it enabled so have
now used 10000111 so to disable them.
Cheers!
Paul
|
|
Cheers, have now set the inputs as outputs! Paul ----- Original Message ----- From: "cdb" <> To: "Paul_Lav" <> Sent: Sunday, March 16, 2003 10:44 PM Subject: Re: [piclist] PIC16F84A > I haven't looked into your first problem, but the second one is - if > you set unused pins to input, then you need to tie them high or low > via a resistor - which is better depends on the chip and how much > current it will consume. > > The alternative is to set unused pins to OUTPUT and have them set > low. > > The main danger you have is shorting of unused pins, though it would > also be possible for corruption of data to occur. > > Colin > -- > cdb, on 17/03/2003 > > I have always been a few Dendrites short of an Axon and believe me it > shows. > > Light travels faster than sound. That's why some people appear bright > until they speak! |