11
votes
Accepted
What's missing in this development board?
It is max232 ic.
Which is used to convert the signals from the RS232 serial port to the proper signal which are used in the TTL compatible digital logic circuits.
10
votes
Accepted
Atmel SAM E70 (ATSAME70Q21, Cortex-M7) battery backup
The idea behind the Vbat input on chips such as the STM32 is that the RTC and other low-power peripherals will normally be powered from the main Vdd, automatically switching to Vbat when Vdd is absent....
10
votes
Accepted
Estimating the frequency at which your microcontroller is running
Take a look at the compiler output here https://godbolt.org/g/TxZSgt. Notice that the inner for loop and the asm("nop") lines ...
10
votes
Increase memory of an ATmega32
Global variables/types
Changing the type of global variables (e.g. use uint8_t or a similar 1 byte instead of long), or use bits to store boolean arrays.
Remove static variables and replace them by ...
10
votes
How to make a PCB based on ATtiny easily updatable by end users?
Take a look a the micronucleus bootloader...
https://github.com/micronucleus/micronucleus
It allows an ATTINY to accept a code download over a (slightly hackey) USB connection. It is widely used and ...
9
votes
Is ESP8266 an AVR?
ESP family isn't a AVR!
The Library you refere to is a Arduino IDE (Integrated Development Environment) library.
The Arduino IDE has a hardware layer that gives it the ability to utilize several ...
9
votes
Accepted
Internal RC clock on Atmega329 accuracy
Use a 32.768kHz crystal or tuning fork. It can run asynchronously and you'll save as much power as you can while still having a clock. The system clock will still use the internal RC oscillator.
9
votes
Accepted
atmel studio for mac
No, recent versions of Atmel studio are based on Visual Studio which is Windows only.
You could run it in a virtual machine.
But it's worth noting that Atmel studio uses avr-gcc and arm-none-eabi-...
9
votes
Can an EEPROM be one-time-programmable?
I did find one for At25020B, but not for one with the NB suffix. Why would Atmel make a chip and not publish the datasheet?
Why wouldn't they?
Chips are often manufactured for specific customers ...
8
votes
Accepted
Power consumption of Cortex-M7-based microcontrollers
Converted to answer.
There are numerous devices in each family, so I took a typical device from each one:
Atmel typical device: ATSAME70 series
Tables are in section 56.3.4 for active mode.
For ST:...
8
votes
Accepted
Microcontroller not working as expected or crashes after a few days
Is it possible to stack and static data collide?
Yes, that is entirely possible. Atmega has no dedicated stack space, so if you use too much of it, you will overflow and crash your static data.
Try ...
7
votes
Accepted
Is it possible to redirect print streams to debugger in Atmel system?
You can output messages and values to the output window with Atmel Studio 7 (it might work with other versions but I am running version 7.0.1006 and using Atmel ICE) by doing this:
Create a normal ...
7
votes
Accepted
Finding the source of a Hard Fault using extended HardFault_Handler
So, here's the fun part: it may be impossible to cite exactly which line is throwing the fault. The reason is that a bug in your code may be causing a fault to appear elsewhere -or- the bug might be ...
6
votes
Atmel UC3A0512 microcontroller documentation
Good datasheets tell you what the part does, not how to use it for whatever your particular purpose is. It turns out your link is not to a datasheet, some product page apparently, so I can't comment ...
6
votes
Accepted
ATMEL's ARM programming without ASF
The ARM architecture is substantially different than AVR, but you still have access to any internal registers by operating on their address.
The AVR Way
With AVR, you would have set the direction of ...
6
votes
Accepted
Are commonly available microcontrollers hardwired or microcoded?
The PIC, the Atmel and 8051 are hardwired. CISC does NOT mean automatically that a processor has microcode. Moreover, as in many other technologies (FPGA vs CPLD vs processor vs DSP), the boundaries ...
6
votes
Accepted
Microprocessors for multiple (~40) SPI devices?
Either use demultiplexers such as the 74HC138 for the slave select, or use diode-ORs with a matrix select.
Or if the protocol allows for it, you could chain all the buttons together and use one long ...
6
votes
Accepted
How to write a bootloader and drivers for ATtiny167
From reading through your question, and having looked through the micronucleus repository, your problem is down to fuses/clocks.
Firstly, and while not immediately obvious (not documented anywhere ...
6
votes
Accepted
USB C atmel chip interface
To make correct Type-C connection to your battery-powered Atmel MCU, you need to ensure four things:
Make sure that your battery is not connected to Type-C VBUS, never. So a transistor switch (or ...
6
votes
Accepted
What is the difference between these two attiny44a parts?
Those are date codes: They represent the 22nd week of 2017 and 19th week of 2016, respectively.
(Thanks to Maple for the link.)
6
votes
Atmel Chip not recognized as USB device. How to troubleshoot
Leaving the Vbus pin floating seems a bit strange.
The datasheet shows this configuration:
None of the configurations shown in the datasheet leaves the Vbus pin floating. Just try connecting it up ...
6
votes
Accepted
Why I need capacitors on VCC?
(Thanks for all people commented, having my answer improved greatly).
These are called bypass capacitors (see fragment from What-is-a-bypass-capacitor):
A bypass capacitor is a capacitor that ...
6
votes
Accepted
How to make a PCB based on ATtiny easily updatable by end users?
To program the Attiny via USB, you'll need an external programmer, as you've noted: something like your arduino.
Going that route makes no sense, because your programmer would be more capable than ...
6
votes
Driving a 12 V DC pump using Atmega16 Microcontroller and a 2N2222a transistor but it is not working?
First, the transistor you have chosen may not be adequate for the job. You state that the water pump motor is rated 4.8 W and 12 V. This implies a rated current of 400 mA, not 0.4 mA. Now the 2N2222A ...
5
votes
Accepted
Why does the ATTiny84 have both an analog comparator and an ADC?
Speed
Since the comparator is always active and is effectively an analog circuit it can generate an output at any time regardless of the current CPU task. This can be used to generate an interrupt ...
5
votes
Can anything be done about this AVRISP mkII or is it dead?
I had a similar issue with the AVR ISP MKII when I first got it. I connected up the programmer, turned on the board (which was powered from an adjacent USB port), and pop.
On my board the regulated ...
5
votes
Push button counting
You need to be aware that as written your code will spin around the while loop dozens if not 100's of times seeing the one or the other of the switches pressed. Since your IF statement only checks for ...
5
votes
Estimating the frequency at which your microcontroller is running
You can't test the speed of a microcontroller by measuring how long it takes to execute unknown numbers of instruction.
There is no guarantee what exact instructions the compiler generates from your ...
5
votes
AT90USB162 not detected in windows
You need to pull HWB low while coming out of (power-on) reset, or else the bootloader will simply idle when it finds no valid program in flash.
5
votes
Increase memory of an ATmega32
Unfortunately, adding external program memory is not usualy possible with this kind of chip. You could conceivably read and execute code from an external flash, but it would likely be slow and ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
atmel × 503microcontroller × 143
avr × 125
atmega × 94
arduino × 64
atmel-studio × 44
arm × 35
attiny × 35
usb × 26
programming × 23
uart × 19
adc × 18
i2c × 18
atmega328p × 18
debugging × 17
c × 15
microchip × 14
clock × 13
spi × 12
embedded × 12
jtag × 12
isp × 12
xmega × 12
led × 11
avrdude × 11