Questions tagged [atmel]

Atmel is the creator of microcontrollers like the AVR line (ATmega and ATtiny) and SAM devices. Many Arduino microcontroller boards use Atmel's AVR line of devices.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

BL654 USB and Atmel chip on dev board

I don't understand the USB port on the BL654 Ble module. Is this something that is only required / functioning when one writes a program with the Nordic SDK? Or does it work using SmartBASIC as well? ...
Gambanishu Habbeba's user avatar
0 votes
1 answer
57 views

ATMega328p wakes immediately after sleep

I'm having issues with my current AVR-C project that runs on an ATMega328p. After issuing the sleep command the chip wakes up again immediately. I want to wakeup with an external interrupt, but while ...
Julian F. Weinert's user avatar
1 vote
2 answers
94 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 ...
Heather7283's user avatar
0 votes
0 answers
47 views

0.1μs delay for AT89C51

I need to follow WS2812B protocol, which requires communication with very high speed, like 0.4μs, 0.45μs, etc. Can I achieve it with AT89C51?
Sasisa Play's user avatar
2 votes
3 answers
241 views

AVR code - where is Z register pointing to?

I am disassembling AVR code from a bit of hardware. The processor is an Atmel-8. On restart, after setting the stack pointer, the program calls a subroutine that starts with: ...
DrD's user avatar
  • 165
3 votes
1 answer
51 views

What is the difference between these settings of oscillators and which one should I be using?

I'm trying to run an ATmega48 off a quartz oscillator at 16MHz like so Can't find anywhere what's the correct value to set the SUT to, or even what BOD means.
Triangle's user avatar
0 votes
2 answers
54 views

burning the code to atmega328p

I am a bit confused regarding the code uploading process to the atmega328p. I have read a site where usb-ttl was used to upload the code. There is not bootloader uploaded on the atmega328p and the ...
kam1212's user avatar
  • 465
0 votes
3 answers
43 views

Making a custom Arduino

I am working on making a custom Arduino board but I have some confusions regarding that. I have seen all the documentations but am confused regarding the ICSP pins and the communication through the ...
kam1212's user avatar
  • 465
2 votes
2 answers
63 views

How to stop a PWM signal cleanly on the secondary timer/counter of the AVR8X processors?

On the new generation of ATmega and ATtiny (for example, the ATmega3208), there is only one timer/counter (TCA) with more than one compare channel. All the others (TCB0, TCB1, TCB2, ...) lack the ...
vsz's user avatar
  • 2,554
1 vote
0 answers
88 views

AT89C51RD2 Empty or don't start up erratically

I have a strange problem and I don't know how to find a solution. I have a board with an AT89C51RD2 inside. I programmed it (thanks to Atmel flip), and it works fine. After some use (week or months), ...
F4F56's user avatar
  • 11
0 votes
0 answers
46 views

AT90USB1286 bricks after disabling clock divider

I have an AT90USB1286 which is connected to a 16MHz external crystal oscillator. It is my understanding that by default from the factory the CKDIV fuse is enabled which makes the chip run at an ...
00728M's user avatar
  • 15
0 votes
0 answers
41 views

My LCD connected to ATmega16 is not displaying anything

My 16 x 2 LCD is connected in 4 bit mode on the lower nibble to an ATMEGA16. Here are the connections: VSS - GND VDD - VCC V0 - POTENTIOMETER RS - PC6 RW - PC5 E - PC4 D4 - PC0 D5 - PC1 D6 - PC2 D7 - ...
Saeed Bowman's user avatar
0 votes
2 answers
76 views

Driving a 12 V DC pump using Atmega16 Microcontroller and a 2N2222a transistor but it is not working?

I am implementing a system using an ATmega 16, a 12V/ 0.4mA/4.8W DC water pump, a 2N2222a transistor, a 1N4001 diode, a resistor and, a 12V Power Supply. However, whenever I test the circuit with the ...
Saeed Bowman's user avatar
0 votes
1 answer
31 views

Atmel Micro-controller on a Xilinx CPLD board

This question is related to the CoolRunner-II Starter Board that was used to be offered from Digilent. See here for schematic. See here for the reference manual. Here is the block diagram for the CPLD ...
gyuunyuu's user avatar
  • 1,933
0 votes
1 answer
51 views

Imprecise pulse width capture using Atmel SAMD51

We are using an ATSAMD51P19A and the Timer/Counter for Control Applications (TCC) to detect the pulse width from the assertion of a pin to the detection of a signal on another pin, and are having ...
amasmiller's user avatar
0 votes
0 answers
25 views

Getting error while compiling LUFA bootloader

I am building the LUFA bootloader (lufa-LUFA-210130.zip file downloaded from here). I am getting the following error when I use make all: ...
faiz07's user avatar
  • 1
1 vote
1 answer
64 views

Power cycle causing DMA interrupt failure on 50% of the received MCUs

To start with, I've had an open discussion with Microchip since July and I'm not really any closer to understanding what the issue is. We are using the ATSAML21J/ATSAML21E The issue goes like this: ...
ARoss's user avatar
  • 21
0 votes
1 answer
48 views

ATMEGA32 TQFP-44 PORTA Pin Order

Is there a logical reason why all the ports of the ATMEGA32A TQFP-44 count anticlockwise from 0 to 7 in an anticlockwise direction round the chip except for PORTA that counts clockwise, that leaves ...
Jay Dee's user avatar
  • 319
0 votes
0 answers
41 views

SAME70 USB CDC does not open endpoints correctly

I downloaded the stock USB CDC echo demo for ATSAME70. The device correctly enumerates over USB. I can see ttyACM0 appearing in the OS but later the demo gets stuck waiting for ...
filo's user avatar
  • 8,871
0 votes
0 answers
50 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 ...
00728M's user avatar
  • 15
1 vote
3 answers
137 views

How to get output from an ATTINY12L microcontroller

So far I have only worked with ATmega32 chips, programming them in C. Now I have to work with an ATTINY12, which can only be programmed in ASM. As a proof of concept, I wrote a simple program that ...
Demento's user avatar
  • 121
2 votes
1 answer
119 views

Enabling timer1 10-bit mode in ATtiny261

I am having trouble enabling timer1 in 10-bit mode on a ATtiny261. The datasheet only says that if any non-zero value is written to the TC1H temporary register the 10-bit mode is enabled, but it's not ...
Tom29's user avatar
  • 23
2 votes
2 answers
196 views

Timeout when programming AT90CAN128 with Atmel ICE

I've got an AT90CAN128 I'm trying to program with an Atmel ICE using a .hex file consisting of a bootloader and application code. I can erase the flash, write fuse ...
RoadieRich's user avatar
0 votes
1 answer
209 views

Atmel Studio: Compiler error when adding external SRAM

I have board wired up to use ATMega1281's Eternal Memory Interface with a BSI, BS62LV4006STIP55, 512Kx8 SDRAM connected. I am trying to do something similar to this (ATMega128), except my memory is ...
Reidar Gjerstad's user avatar
0 votes
2 answers
614 views

How to make a single ADC conversion in ATtiny

I want to read from potentiometers via Attiny24A a single time. So far I managed to read the potentiometer at the start once but I want to read the pot values in a random place of the code. I've ...
CaveScientist's user avatar
2 votes
0 answers
101 views

JTagging an Atmel ATF1500 CPLD

Intentions I'm learning how to use CPLDs and I thought a good one to start with is the Atmel ATF1500AL-TQFP44. Whats the deal The datasheet provides no information about programming the CPLD; also, ...
Jacob P's user avatar
  • 165
0 votes
1 answer
494 views

Clone ATtiny13A flash memory using USB ASP programmer

I hope you are having a great day. May I kindly ask for a word of advice from the veterans in this field of Atmel micro-controllers? I am a novice getting into knowing things by hands on training ... ...
nexus.so's user avatar
1 vote
1 answer
66 views

When does a USART 'buffer ready' bit turn on?

I have an Atmel328P mini Xplained. The datasheet specifies UCSR0A (1 << UDRE0) as a 'buffer ready' signal. This reads 1 if the receive or transmit buffer is ...
Angelo van Meurs's user avatar
2 votes
2 answers
271 views

ATmega32U4 without USB: how to handle usuned pins

On the ATmega32U4 MCU there are several pins related to USB: VBUS D+ D- UCAP UGND UVCC In the datasheet and in almost all reference schematics I find on the Internet, it's explained how to connect ...
Mark's user avatar
  • 1,160
2 votes
2 answers
94 views

Are there any ramifications of leaving an AVR in debugWIRE mode?

I have a product with an external connector with the intentions of using this for applying updates to an ATMEGA328P later on down the road. There are limited pins available, so I can't use SPI for ...
gtetil's user avatar
  • 391
0 votes
0 answers
127 views

How do I flash a bootloader onto a Cortex-M0 with hobby-priced hardware?

I was working on a schematic based around the ATmega32U4, but those are on backorder until 2023!! I was looking for alternatives and saw that a lot of Adafruit's hobby kits have switched from AVR to ...
D. Patrick's user avatar
1 vote
0 answers
61 views

I'm looking for the Windows-10 driver for the Atmel bootloader used in the Atmel UC3-A3 Xplained evaluation kit

I have a couple of Atmel boards called Atmel UC3-A3 Xplained evaluation kit, and am trying to use them in a project. I want to use the bootloader, which is apparently pre-installed on the AVR32 chip, ...
GeoffD's user avatar
  • 11
1 vote
0 answers
52 views

Is ATSAM4S4A supported by ATMEL ICE debugger?

I have a huge confusion on whether or not this MCU(ATSAM4s4AA-AU) is supported by the ATMEL ICE debugger. First, I checked the official website for ATSAM4S4A and when I got to the "Emulators and ...
Phill Donn's user avatar
1 vote
1 answer
216 views

ATSAMD21E18A - Atmel ICE programming error

Recently I have designed my custom PCB board, which includes a SAMD21E18A. Unfortunately, I am having trouble with programming. I am enclosing the schematic (please ignore the quality of the schematic,...
Tomáš Havel's user avatar
1 vote
0 answers
104 views

ATTiny406 | Unexpected PWM (Pulse Width Modulation) Output

We are experiencing strange PWM (analogWrite) behavior on pin PA3 of our ATTiny406 when our supply voltage exceeds ~11VDC. This pin is driving a MOSFET which controls the ground signal to the LED ...
jacob80's user avatar
  • 31
1 vote
2 answers
198 views

SAM3x8e can't program over serial

UPDATE: Jan 2022. I put together a new pcb. This one has the JTAG header and I have an ATMEL-ICE. Otherwise the processor and support layout is mostly the same. I stripped the program down to simply ...
J Hinton's user avatar
0 votes
0 answers
155 views

Program for LED blink

I am newbie in programming the microcontroller. I would like to test the micro by blinking the LED in a pin. The micro is SAMR35J18B and I am using ATMEL ICE programmer and ATMEL studio software for ...
Manjesh Gowda's user avatar
1 vote
0 answers
159 views

How do I restart the program again when the MCU crash occurs.[microchip ATSAMG55J19 ]

I am designing a custom PCB based on the ATSAMG55J19 microcontroller. I am using the SWD interface with Atmel ICE. My MCU crashes and stops running code sometimes. Even if I modified the code and ...
kyungsik jeung's user avatar
0 votes
0 answers
80 views

Any glaring mistakes in I2C touch & OLED PCB design?

Would greatly appreciate any expertise/suggestions on solving this problem! In particular have I done anything glaringly stupid when it comes to my PCB design?? I'm trying to get touch control ...
EDIflyer's user avatar
1 vote
1 answer
79 views

How many timers can one utilize from ATSAM4s2A?

I am getting introduced to Atmel ARM MCUs and I have several dilemmas regarding their documentation. According to the official Farnell documentation of ATSAM4S2A. the MCU supports only three timers: ...
Phill Donn's user avatar
0 votes
0 answers
424 views

How to program and then flash an ARM SAMD21 baremetal?

I want to make a simple program for a custom board with a SAMD21 core, without using any previously existing framework, like the arduino framework. The code to start with is just a simple main() with ...
hf98a6r7fayh's user avatar
1 vote
1 answer
133 views

Atmel-ICE got burned. Need identification of IC marked: BYJ 42J P5D0

I managed to burn my ATMEL-ICE by connecting 24V to GND on my PCB, while the ICE was connected to it. Now, I found that this IC (P5D0) gets really hot as soon as I connect the USB to the ICE: But I ...
Christianidis Vasilis's user avatar
0 votes
1 answer
66 views

Where does ATXMEGA32E5 epad connects to?

About the ATXMEGA32E5-MUR (32-VFQFN Exposed Pad) Package: I do not know where the Central PAD connects to, since the datasheet does not mention it. So I guess it is NC (No connect)? And it does not ...
Christianidis Vasilis's user avatar
2 votes
1 answer
150 views

How are the new AVR8X processors supposed to be used within their safe operating area?

The new generation of ATmega and ATtiny (for example, the ATmega3208) now supports an internal 16/20 MHz oscillator. However, looking at the safe operating area and the provided BOD levels, I'm ...
vsz's user avatar
  • 2,554
-1 votes
1 answer
95 views

Serial AVR programming and doubts

I currently have Attiny85 , attiny45 , atmega328 , 8051 MCU . I want to program them in a chipless method ( which doesn't use any intermediate chips to burn program or bootloader ) - this is like a ...
swagdevotee008's user avatar
0 votes
0 answers
183 views

Programming ATMEGA1284p on internal 8MHz without caps

I'm trying to burn a bootloader on a standalone ATMEGA1284P without using caps or an external 16MHz crystal, just with a 100nF cap between GND and 3.3V VCC. I am using this bootloader from maniacbug. ...
Marco Bobinger's user avatar
0 votes
1 answer
390 views

AVR Atmel MCUs with 12bit ADC and ArduinoIDE support [closed]

I am searching for more powerful MCUs than the ATMEGA1284p that I am currently using, in particular I want to have better ADCs and switch from 10 to 12bit resolution. My constraints are the following: ...
Marco Bobinger's user avatar
0 votes
0 answers
325 views

ATMEGA1284p and RFM95 sleep current around 35µA: can it be reduced further?

In my project, I am using an ATMEGA1284p processor in the TQFP-44_10.0x10.0x0.8P package as well as a RFM95 LoRa module. For the low-power mode, I'm using the rocket scream low-power library: https://...
Marco Bobinger's user avatar
0 votes
2 answers
215 views

Confirmation on how to check microcontroller memory capacity with Atmel Studio

When compiling code in Atmel Studio, I get the following output showing the percentage of usage for the program and data memory: Does this output represent the total data usage in the microcontroller?...
plu's user avatar
  • 671
0 votes
1 answer
155 views

Does a firmware (flash memory) in atmel mcus change on runtime (to store variables for example)?

EDIT: I am purposely trying to corrupt my ATxmega32E5 flash memory. I am disabling my BOD level on my ATxmega32E5 and checking how it affects my MCU by switching the power on the mcu on and off with a ...
Christianidis Vasilis's user avatar

1
2 3 4 5
11