Skip to main content

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.

1 vote
0 answers
723 views

Recently bought a nano esp32 to play around with the small size and wifi module. However I'm plagued by the No DFU capable USB device available message. My efforts and deductions: I can connect to ...
Nebulous's user avatar
1 vote
1 answer
1k views

Hi I want to connect arduino NANO to my laptop with Type-C (USB-C) ports (on below image left side [4] and other side 3). Now I bought a USB-C to USB-C cable, because it appeared to be the right tool, ...
mehmet's user avatar
  • 297
1 vote
1 answer
341 views

I am looking for a reference document or documentation system that concretely relates at minimum: Screen printed pin name/number SAM3X8E pin number Register number Channel number Port name In my ...
J Collins's user avatar
  • 295
2 votes
1 answer
105 views

I have a SparkFun RedBoard PTH Kit. It's not made by SparkFun, but by https://inmotion.pt (that doesn't exist anymore). I soldered it, and bought a FTDI adapter, but when I try to upload the blink ...
Ayo Reis's user avatar
  • 121
2 votes
1 answer
310 views

I am trying to convert the following code to output to pin 7 (PH4, OC4B) on an Arduino Mega. The code outputs to pin 6. This code is from a GitHub for the GRBL on the Mega "https://github.com/...
Mr.Spriggs's user avatar
1 vote
1 answer
177 views

I'm messing about with an Arduino Mega2560r3 and failing to get timer 4 to trigger on the rising edge of an external clock. It only ever triggers on the falling edge. I've tried TCCR4B = (1 <&...
DrLoopyTunes's user avatar
2 votes
0 answers
81 views

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
1 vote
1 answer
204 views

I have two files blink1.cpp typedef unsigned char int8_t; typedef volatile int8_t * volatile port_type; port_type portB = (port_type) 0x25; port_type ddrB = (port_type) 0x24; void delay_500ms() { ...
ar2015's user avatar
  • 173
2 votes
1 answer
1k views

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
0 votes
1 answer
539 views

I would like to adopt this library on an Arduino Mega2560: https://github.com/gueei/DShot-Arduino However, the macro DSHOT_PORT needs defined for the Mega2560 here: https://github.com/gueei/DShot-...
DrTarr's user avatar
  • 103
1 vote
2 answers
2k views

I'm using a MacBook Pro with 10.13.6, an Official Arduino Uno Board and Arduino 1.8.13 IDE. I'm having troubles uploading code to the Arduino Board. I have 5 ports available: dev/cu.-AvnetaSPPPort ...
João Sacramento's user avatar
-1 votes
1 answer
255 views

My UNO having some stability issues because of heavy memory use, I'm now optimizing the code now looking to reduce the digital read memory use with the help of port manipulation. I got the code for ...
user2037091's user avatar
2 votes
4 answers
2k views

I have come accross a lot of examples using ways similar to the ones shown below to assign values to the pins. PORTB |= (1<<PORTB2); //set bit 2 PORTB &= ~(1<<PORTB1); //clear bit 1 ...
ArduinoSap's user avatar
2 votes
1 answer
343 views

I'm trying to access registers but I keep getting the "was not declared in this scope" error message. I'm currently using the STM32F1xx boards from http://dan.drown.org/stm32duino/...
Beacon of Wierd's user avatar
0 votes
3 answers
343 views

Problem: ATMega328 Refuses to digitalWrite() to any pins, I can upload and run sketches using the board UNO from the ide on the 328 and can confirm it is working using the serial monitor (see code). I ...
Christopher Allen's user avatar

15 30 50 per page
1
2 3 4 5 6