Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
portd bits?
19-11-2011, 10:34 AM,
portd bits?

From the schematic for the pic32MX440F256H it looks like PORTD is 12 bits. Is this correct? I need to write to pins 2-7 at the same time to port an arduino library to my pic32.

Thanks for any insight into this matter.
19-11-2011, 01:30 PM, (This post was last modified: 19-11-2011, 01:35 PM by pingotg.)
RE: portd bits?
Yes, RD12-15 are not brought out on the H (64-pin) chip.

The chip mostly has multifunction pins so you also have to only use each pin with some thought Smile

BTW, the data sheets and FRM - Family Ref Manual - are free on the Microchip site and essential reading.

You can write to just certain pins easily using the SET or CLR (or INV) ports with suitable mask. (See Chapter 12)

20-11-2011, 10:00 AM,
RE: portd bits?
Thanks! Those sources were very helpful.

Also, do you/anybody know if there's an equivalent to TimerOne.h (arduino lib) for the pic? I'd hate to have to re-invent the wheel Smile

Forum Jump:

Users browsing this thread: 1 Guest(s)