yes, it's set as output. infact, at every "counter overflow" PORTB value is= incremented, so RB7 switches at F/128, where F is the switching frequency = of RB0. I fear that PORTB has the highest priority :/ or something like tha= t... > From: alan.b.pearce@stfc.ac.uk > To: piclist@mit.edu > Subject: RE: [PIC] PIC24F, Remappable Pins > Date: Thu, 10 Nov 2011 17:04:18 +0000 >=20 > > answering to both of you, > > yes it seems there are no remappable pins, but there MUST be a way to s= et wich > > function a pin has. For example, i am writing a program (to learn HOW t= o program, > > let's say that). > > I am using C30. > > this program uses TMR3 to have a interrupt at its overflow. the interru= pt routine > > increment a counter. > > the main cycle checks if the counter is bigger than X. when it is, incr= ement PB (a > > temporary register) then writes it in portb, configured as output (i sh= ouldn't have > > the analog problem, should i?) > >=20 > > now i wanted to use the pwm module too. I configured che 1st module, bu= t OC1, wich > > is its output, is multiplexed with RB7. I still see RB7 instead of the = PWM output. >=20 > Is RB7 an output, or an input? Once you turn the analogue functions off t= hen the RB port pin would become the default, but once you enable the other= peripheral it should take over the pin.=20 >=20 > There is the possibility that there is an errata not noted in the errata = document where you need to set the pin direction correctly for the function= direction (in this case output). > --=20 > Scanned by iCritical. >=20 > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist =20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .