Searching \ for '[PIC] weird behavior of pic16f876' 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/microchip/devices.htm?key=16F
Search entire site for: 'weird behavior of pic16f876'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] weird behavior of pic16f876'
2007\03\25@184321 by picnoob

flavicon
face

if i run bsf PORTA,2 bit 2 of port a goes high, but then if i run bcf PORTA,1
bit 1 and 2 go low. why is this, the same thing happens in a pic simulation
program.

how do i stop this from occuring?
--
View this message in context: www.nabble.com/weird-behavior-of-pic16f876-tf3464206.html#a9665205
Sent from the PIC - [PIC] mailing list archive at Nabble.com.

2007\03\25@185725 by Jan-Erik Soderholm

face picon face
Un-disabled analog pin-functions ?

Jan-Erik.

picnoob wrote:
> if i run bsf PORTA,2 bit 2 of port a goes high, but then if i run bcf PORTA,1
> bit 1 and 2 go low. why is this, the same thing happens in a pic simulation
> program.
>
> how do i stop this from occuring?

2007\03\25@190133 by picnoob

flavicon
face

ok, new weird thing:

if i do:
movlw 0xFF
movwf PORTA
all the bits of PORTA go high
but then, if i do:
bsf PORTA,2
all the bits of PORTA go low, apart from bit 2 and 4

what is this and how do i stop it?
--
View this message in context: www.nabble.com/weird-behavior-of-pic16f876-tf3464206.html#a9665366
Sent from the PIC - [PIC] mailing list archive at Nabble.com.

2007\03\25@192253 by picnoob

flavicon
face

Ah, i see, i just needed to set all the pins to digital in ADCON1.

ty.



Jan-Erik Soderholm wrote:
{Quote hidden}

> --

2007\03\26@014245 by wouter van ooijen

face picon face
> what is this and how do i stop it?

http://www.voti.nl/swp/index.html read the 'tips and pitfalls'

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu



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