All Questions
Tagged with avr microcontroller
419
questions
0
votes
4
answers
59
views
What does it mean the MCU has 1 ADC and 10 ADC channels?
I got this AVR Microchip MCU ATtiny 204 chip. Now what I can't get, what do they mean in the datasheet it has 1 ADC and 10 channels ADC?
The datasheet:https://datasheet.octopart.com/ATTINY204-SSF-...
0
votes
1
answer
44
views
LCD Entry Mode Set and AVR MCU
I want to simulate **the Entry set mode ** function of and LCD based on HITACHI 44780 Controller.
(Here is the datasheet.)
The "Entry set mode" is given the following code of the 8 bits data ...
0
votes
0
answers
24
views
AVR128Dx TCB Input Capture issue
Ive made a code for reading SENT sensor using TCB interrupt with event system. It works 90% of the time, but those 10% seems like it doesnt read correct high pulse duration, mby someone will see, what ...
0
votes
2
answers
68
views
Extended IO registers handling in AVR using Assembly language
I want to program the ADC module of arduino Mega2560 using Assembly language (for simulation and learning),
I can initialise the ADC Module using Assembly and my program converts in the first ...
1
vote
1
answer
49
views
Manipulating EEPROM in AVR using assembly programming
In the following video(at 10min):
https://www.youtube.com/watch?v=YELGX5XDCiY&list=PLgwJf8NK-2e55CdbY_WnY6pejPHoojCkJ&index=18
The microcontroller used in the video series is ATmega32.
Let's ...
2
votes
1
answer
117
views
AVR32DA VIH threshold
I am looking into using an AVR32DA48 MCU for a design. The MCU will be powered at 5V and needs to interface with an IC at 3.3V. The IC is 5V tolerant and I am trying to figure out if a level ...
0
votes
2
answers
79
views
Can I treat the USB controller in the ATMEGA8U2 as seperate from the rest of the microcontroller?
I'm working on a project that runs on a battery, but can be connected to a computer for a serial connection/charging. In the documentation it lists an example of a bus powered USB controller with ...
1
vote
2
answers
478
views
Assembly: AVR Studio alternatives for Linux [closed]
I had been using using AVR Studio on Windows to write assembly code for my MCUs (mainly for atmega8515) for a couple years. However, recently I transitioned to Linux and turns out there aren't any ...
0
votes
0
answers
62
views
avr debugWIRE On chip debug system
I am new into avr and am working on atmega328p. I am not able to understand the avr debugwire system. What is this and how it works. I am seen the datasheet but am not getting a good clear ...
0
votes
1
answer
134
views
Why is nothing happening on my CLKOUT pin, despite the RTC working fine? [closed]
I apologize for the (probably) trivial question -- I'm just starting to get back into coding for MCUs after a long hiatus, so please be patient with me.
I'll preface this by acknowledging that there ...
1
vote
1
answer
66
views
Cannot stop Microcontroller's Hardware Timer from running
I'm using an Atmel ATMega8 microcontroller to control a stepper motor. (Datasheet).
Timer1 (a 16-bit hardware counter) is used in CTC mode to modulate an IO pin to provide the stepping signal to the ...
1
vote
1
answer
387
views
How do I measure distance of Ultrasonic Sensor HC-SR04 using the ATmega328P Timer Input Capture?
I am using an ATmega328P MCU with an 16 MHz external oscillator. I need to measure distance of Ultrasonic Sensor HC-SR04 using the ATmega328P Timer 1 Input Capture interrupt. I have to measure the ...
0
votes
0
answers
52
views
AT90USB1286 as a potential storage device for a few kilobytes of data
I have a few trays of AT90USB1286 microcontrollers leftover from a previous project that I would like to make use of.
Is it possible to make this chip act as a block device when connected to a PC? I ...
0
votes
1
answer
209
views
AVR Port pins: read and write
As the ports are connected to pull-up resistors; the port pin values should be at level 1 when not connected to the outside world.I wrote the below code to set the lower half of PORTA as input and the ...
3
votes
0
answers
69
views
Minimum circuitry for robust operation of the "new" ATtinys (1614) with Optiboot
I have spent hours now trying to catch up on the replacements for the old ATtiny's, there does not seem to be a robust (meaning, with protections that we could find in an UNO or Mega for example) ...