Skip to main content

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
1 vote
1 answer
39 views

ATMEL 2560 clears UDRIE bit after 2 received 2 chars

On MY ATMEL STUDIO 6.2 (running om XP sp. 4) my code (se below) suddenly stops after writing 2 chars (and only 2 chars). After a intense debugging session in AS 6.2 it appears that the UCSR0A register ...
Kristian Sander's user avatar
0 votes
0 answers
29 views

Problems with OCR1B on Atmega328p

Trying to control 4 servos (SG90) using 4 pots on an arduino nano and the one connected to OC1B keeps having problems, with bits of jittering and it just not moving correctly (occasionally spinning), ...
jimothy's user avatar
0 votes
0 answers
22 views

I2C on SAMD21 with Atmel Start works only in one direction

I am trying to establish a half-duplex I2C communication between two ATSAMD21G18A microcontrollers, using Atmel Start's I2C functionality. (HAL Synchronised I2C) The automatically generated example ...
aulven's user avatar
  • 117
0 votes
2 answers
84 views

Arduino SPI and analog pin management

I am using Adafruit Feather M4 Express to read buttons, switches, encoders and potentiometers and control some LEDs of a control panel. I am running into issues with the pin management. I have 5 ...
dreamcoder's user avatar
0 votes
0 answers
60 views

Calibration of the Atmel M90E32AS Energy Metering IC

I'm working on an energy metering project featuring the Atmel M90E32AS, connected with an ESP32-S3. From the Application Notes of the IC, I understand that it needs to be calibrated first. However, I'...
Fareed Ahmad's user avatar
0 votes
2 answers
51 views

ATSAME70 driving MOSFET, which gate-resistor to use?

I designed a board with an ATSAME70 on it, which uses small SI2342DS MOSFETs to drive LEDs. I need to figure out which value gate resistor I need to use for this, or if maybe setting the drive ...
Jenny's user avatar
  • 39
1 vote
0 answers
157 views

OpenOCD: unable to find a matching CMSIS-DAP device in WSL

I am trying to connect GDB in WSL to an Atmel SAMV71 Xplained Ultra board. I am getting stuck trying to get OpenOCD to connect to the board. I am using the following OpenOCD config file: ...
embedded.kyle's user avatar
1 vote
2 answers
60 views

How to consistently read two counter registers across PDEC and TCC on SAMD51

I am using the PDEC on a SAMD51 to read a quadrature encoder from a closed loop stepper motor which has 4000 encoder increments per rotation. The PDEC counter is only 16 bits wide, which would ...
Scott Duckworth's user avatar
0 votes
2 answers
63 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
1 vote
1 answer
94 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
476 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
70 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
706 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
  • 199
3 votes
1 answer
68 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
60 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
  • 669
0 votes
3 answers
51 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
  • 669
2 votes
2 answers
150 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,574
1 vote
0 answers
127 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
63 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
56 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
114 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
67 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
  • 2,103
0 votes
1 answer
60 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
39 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
80 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
74 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
  • 339
1 vote
0 answers
65 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
  • 9,046
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 ...
00728M's user avatar
  • 15
1 vote
3 answers
180 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
133 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
288 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
2 answers
362 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
963 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
174 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
1 vote
1 answer
896 views

Clone ATtiny13A flash memory using USB ASP programmer

I have a working device with flashed ATtiny13A inserted in DIL8 socket. I am guessing that the uC does not have a locking bit set (since I was able to read it [?]). That is all I know at this point. I ...
nexus.so's user avatar
1 vote
1 answer
84 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
363 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,235
2 votes
2 answers
137 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
  • 401
0 votes
0 answers
150 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
71 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
62 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
330 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
120 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
297 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
166 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
222 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
81 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
93 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
614 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
186 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

1
2 3 4 5
11