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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
714 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
340 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
308 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
2 votes
0 answers
79 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
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
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
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
0 votes
3 answers
340 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
1 vote
0 answers
64 views

I am using Arduino Nano to test a code that will be ported on an ATTiny chip, which will need to perform operations at a frequency near clock maximum, calling for a very succinct coding. My goal: to ...
B7th's user avatar
  • 167
-1 votes
1 answer
240 views

I'm trying to output 16 bits of data to two 8 bit shift registers (74HC595), which drive a 8x8 led matrix. There is a problem with the way the code outputs data to the registers, its like no data is ...
sparpo's user avatar
  • 9
1 vote
1 answer
2k views

I've seen people use code like PORTB |= 0x1 << 6 to set the sixth bit of PORTB in arduino. I understand that this is significantly faster than using digitalWrite. How can this be done using a ...
Jachdich's user avatar
  • 123
0 votes
1 answer
452 views

I'm trying to get this program to use channel B for the output waveform using the phase correct PWM mode and using OCR1A as the top. With a 50% duty ratio I'm attempting to get a 10 Hz freq. I'm able ...
Tomas Breit's user avatar
0 votes
1 answer
449 views

After looking through the internet, I coudln't find any document (not in the datasheet, no nice graphics on google image searches) that showed the mapping between the Arduino breakout board and the ...
Jonathan Wheeler's user avatar
1 vote
1 answer
531 views

I'm using the ATmega328PB in a personal project with MiniCore. My board streams data in on the RX pin from another microcontroller, but my board also has a DIP switch connected to the TX pin, that's ...
willem.hill's user avatar
0 votes
2 answers
356 views

I am trying to send rotary encoder output from an UNO to seven Trinket M0s and a computer via a (powered) USB hub. Currently the UNO → Laptop bit works great, serial monitoring works via the hub for ...
laffan's user avatar
  • 25
0 votes
1 answer
347 views

I have code that compiles correctly for an ATTINY85 board using the ARDUINO IDE but I don't have an ATTINY85 board. I have an Arduino Mega ATMEGA2560 and when I select this board in the Arduino IDE ...
flipbeatz's user avatar
1 vote
0 answers
347 views

So I am trying to understand bit banging and port operations. I'm developing a breakout board with an ADXL343 IMU read by an AtTiny44 via i2c. I adapted this code from MIT's How To Make Almost ...
Oliver Appling Bucklin's user avatar
0 votes
1 answer
939 views

I am making an Arduino mod-bus device and I want to make a webpage as well that will allow me to reset the unit if there is any issues remotely. To do this I would need the mod-bus to operate on port ...
Michael H.'s user avatar
0 votes
1 answer
274 views

I'd like to control some digital ICs with a ESP8266-12. How can I switch 2 pins to HIGH in the same moment? How can I switch one to LOW and the other to HIGH in the same moment? Is it possible with ...
Robert R.'s user avatar
  • 109
1 vote
1 answer
295 views

I have multiple Unos and Nano and recently due to some bad configuration the USBs are not getting recognised on my Mac Air Laptop. These were working models for almost 1-2 years. I used it to control ...
Shashi Kiran's user avatar
4 votes
1 answer
15k views

So i've chosen to purchase a Wemos D1 R2 board in order that my old Arduino Uno R3 projects can get some new IoT features. However, even if my code is working in Uno perfectly, i want to test it using ...
Galinho Salonica's user avatar
-1 votes
1 answer
497 views

My Arduino MKR Fox 1200 doesn't upload any sketches. First it worked, but now it doesn't. It compiles the bare minimum sketch (empty loop and empty setup) but then uploads forever and after a long ...
Flo's user avatar
  • 131
2 votes
0 answers
222 views

Serial Monitor get's flooded with "No Socket Available" message. This seems to occur even before I Try to communicate with my Hue bridge through my hub port. Does anyone see why this is occurring ...
The Tokenizer's user avatar
0 votes
1 answer
8k views

I am using a Wemos Pro ESP32 development board and would like to be able to use all ten of the available capacitive touch inputs. I am able to get readings from nine of them but not T1. Here is the ...
juliusbangert's user avatar
2 votes
1 answer
3k views

I've just got my first Arduino Pro Mini and a USB to TTL chip. When I try to upload the program I get the message The uploader process failed followed by avrdude: ser_open(): can't open device "\\.\...
Vladivarius's user avatar