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.
78 questions
1
vote
0
answers
714
views
Can't upload to nano esp32
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 ...
1
vote
1
answer
340
views
Is there a definitive reference for the Arduino DUE?
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 ...
2
votes
1
answer
308
views
Atmega2560 PWM on PH4
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/...
2
votes
0
answers
79
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 ...
2
votes
1
answer
1k
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?
1
vote
2
answers
2k
views
Can't upload code to Arduino board on Mac
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
...
2
votes
4
answers
2k
views
Why do we use bitwise operators to assign PORTx, DDRx and Pinx?
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
...
0
votes
3
answers
340
views
ATMega328 functions, but will not output to any pins
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 ...
1
vote
0
answers
64
views
Port manipulation: Coding for two chips
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 ...
-1
votes
1
answer
240
views
Data in two 8 bit shift registers won't change
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 ...
1
vote
1
answer
2k
views
What is the equivilent of PORTx for Teensy (4.0)?
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 ...
0
votes
1
answer
452
views
Can't get OC1B (pin 10) to output
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 ...
0
votes
1
answer
449
views
Pin Mappings from Arduino Metro M4 Express Board to SAMD51
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 ...
1
vote
1
answer
531
views
Can I disable the TX pin by setting its mode to INPUT while still receiving data on the RX pin of a UART?
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 ...
0
votes
2
answers
356
views
Sharing serial output from one to many arduinos (plus a computer) via USB hub
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 ...
0
votes
1
answer
347
views
Converting code for ATTINY85 to ATMEGA2560. Pin change interupts
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 ...
1
vote
0
answers
347
views
Bit Bang I2C with port manipulation on AtTiny84: new pinout doesn't work
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 ...
0
votes
1
answer
939
views
Two ports on Uno with ethernet shield
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 ...
0
votes
1
answer
274
views
Switch two or more digital outputs of ESP8266 at the same time
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 ...
1
vote
1
answer
295
views
Arduino Nano /Uno USB is not getting recognized
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 ...
4
votes
1
answer
15k
views
Arduino Uno R3 to Wemos D1 R2 project migration - Pinout problems
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 ...
-1
votes
1
answer
497
views
MKR FOx 1200 doesn't upload Sketch
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 ...
2
votes
0
answers
222
views
No Socket Available message floods serial monitor
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 ...
0
votes
1
answer
8k
views
Using all ten capacitive touch inputs on the ESP32
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 ...
2
votes
1
answer
3k
views
Windows stops recognizing Arduinos
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 "\\.\...