Questions tagged [port-mapping]

Port-mapping refers to directly accessing the hardware registers (ports), in particular the input/output ports. Use this tag for discussing direct port access.

Filter by
Sorted by
Tagged with
11 votes
4 answers
20k views

SAM3X8E (Arduino Due) Pin IO registers

How do the IO registers of Arduino Due work? On Arduino Uno just set DDRx, then PINx to read, PORTx to write, I'd like to do the same thing with an Arduino Due, but it has many more registers, such as ...
Alex's user avatar
  • 315
4 votes
2 answers
9k views

Equivalent for PORTB in Arduino Mega 2560

Like I said in the subject, I would like to know the equivalent for the instruction: PORTB |= 0x01; PORTB &= ~0x01; More precisely I was using it to trigger a fast pulse conversion on my shield-...
Francesco Pegoraro's user avatar
2 votes
0 answers
48 views

About Corrupted LM35 IC and Arduino port problem

I have one Arduino Uno which was working fine by below circuit(link): But when I have connected the new bought the LM35 Ic by the below connection: The Arduino UNO don't be recognized by the my ...
Soheil Paper's user avatar
2 votes
1 answer
790 views

Configure input pullup through registers

I can set pin mode to input or output through the DDRx registers. How can I enable the internal pullup resister through a register?
iHnR's user avatar
  • 127
1 vote
2 answers
2k views

Where is PORTB defined?

On Arduino I can set digital pins by setting special variables PORTB and PORTD (or maybe they are not variables?). Where are those variables defined? I grepped /usr/share/arduino, but found nothing. ...
user983447's user avatar
0 votes
1 answer
101 views

driver is not showing up in Port assignments mac

arduino nano, the driver is not showing up in Port assignments. It has worked with this operating system before. I’ve messed something up. “OS X EI Capitan ver. 10.11.3 I have check the posts but the ...
Bob Mace's user avatar