Questions tagged [atmel]

DO NOT USE THIS TAG. Instead use the relevant product tag, such as AVR, SAM etc tags. Besides, Atmel merged into Microchip in 2016, so still referring to your parts as "Atmel" is not very meaningful. Atmel Corporation (Nasdaq: ATML) was a leader in the design and manufacture of microcontrollers, capacitive touch solutions, advanced logic, mixed-signal, nonvolatile memory and radio frequency (RF) components.

DO NOT USE THIS TAG. Instead use the relevant product tag, such as AVR, SAM etc tags. Besides, Atmel merged into Microchip in 2016, so still referring to your parts as "Atmel" is not very meaningful.

Atmel Corporation (Nasdaq: ATML) was a leader in the design and manufacture of microcontrollers, capacitive touch solutions, advanced logic, mixed-signal, nonvolatile memory and radio frequency (RF) components. Atmel was acquired by Microchip Technology Inc. (Nasdaq: MCHP) in 2016.

621 questions
1
vote
1 answer

Atmega64 pins question. SCL/SDA same as TXD/RDX?

I'm not an Atmega pro by any means whatsoever. In fact, never worked with them. I'm trying to add an external eeprom using i2c interface to a device that uses an Atmega64 controller. From the datasheet, I see that pins 25 and 26 are labeled…
Steven
  • 576
  • 1
  • 5
  • 12
1
vote
0 answers

Discover Bluetooth Device (Windows)

I try to dicover bluetooth devices on windows and have some trouble. First the code: WSAQUERYSET wsaq; HANDLE hLookup; LPWSAQUERYSET pwsaResults; DWORD dwSize; BOOL bHaveName; BT_ADDR btAddr; DWORD dwNameSpace; pwsaResults =…
AMD
  • 31
  • 1
1
vote
1 answer

SAMV71 USB Mass Storage Host extremely slow

I tried the example provided by atmel's ASF on USB mass storage host to send/read a file to a USB flash storage device. When reading a file, i'm getting 1.7 MB/s speed, I tried a lot of solutions, which include : Made sure its running on High…
1
vote
0 answers

ATMEL, BOOTRST and Flip 3.4.7, application does not start at boot

The tools used are: ATMEL Flip 3.4.7 and AVR Studio 5.1 A) Failing to start application at boot: A.1) I did program an application with AVR Studio 5.1, I compiled fine and I produced the "hex" file, A.2) I did use ATMEL Flip 3.4.7 to write the…
1
vote
1 answer

MCU communication speed

This question may looks like little dump. sorry about it. I saw Now day routers communicate few Gbps. but now day mcu's running speed lower than 4 GHz per second. Please explain How do they do this magic.
1
vote
3 answers

microSD card in SPI mode timing

I'm writing and reading values on a SD card in SPI mode. The frequency for writing and reading blocks of 512 bytes is set to 10Mhz. For writing a block it takes about 5ms and timing between blocks is about 10 ms. Is any way to improve the speed of…
1
vote
1 answer

Atmel AVR sleep mode and Sleep Enable bit handling

I am trying to understand how to program avr in event-based model, where it reacts to what is going around it. After reading my chip (ATmega16a) manual and googling I still can't find exact answer to my question. Both avr-libc manuals I found…
1
vote
1 answer

Moving through code using a Push Button switch

I am trying to incorporate a push button switch to control my software for a stepper motor. I have three functions for the motor where it would rotate at three different angles (from 0-180 degrees forward, 90 degrees reverse and 90 reverse again…
LoneCoder
  • 45
  • 6
1
vote
1 answer

How to set ISR to run every second - C Atmega328p

I'm writing a code that needs to check a sensor's input every 0.5s. I want to use an ISR because I want my code to execute until the sensor's input changes. How would I set up this ISR to execute every 0.5s? Thanks :)
heyjaynell
  • 47
  • 1
  • 10
1
vote
1 answer

Write to at91sam7s256 flash internally

I am currently developing a feature for a device based on Atmel's at91sam7s256 MCU. The feature is a counter with a pre-set value, which is decreased at some points. My Idea was to implement this counter in the internal flash memory, since most of…
1
vote
1 answer

AVR XMEGA USART Simulation

Using the test code below, I'm trying to send data over the USART of an xmega128a3u using the simulator in Atmel Studio. Watching the I/O view the Data register is never set even though I'm setting it. Is there something wrong with my code or the…
bwoogie
  • 4,339
  • 12
  • 39
  • 72
1
vote
0 answers

ATMega2560 PCINT Interrupts

i am new to Atmel, so maybe the question is quite simple. I have the following situation: I have an ATMega2560 and want to get Interrupts on the Pins PK0-PK7. I am interested in the PIN Change from Low to HIGH. (I have connected one photocell to…
Sinic
  • 348
  • 3
  • 10
1
vote
2 answers

LED stays on. Wont' turn on and off

So all I'm trying to do is make a function to turn on and turn off the LED which will be called into the main. The LED turns on but it doesn't turn on and off. What's wrong with my code? I'm using ATmega328p board and Atmel Studio 6.2 #define F_CPU…
John S
  • 25
  • 5
1
vote
1 answer

Pulse width measurment

I want to measure pulse duration, but I need to measure 4 signals so I can't use Timer capture interruption as there is only 1 pin ICP1 providing that option (or can?). So I try to implement something like arduino pulseIn with the difference that I…
Long Smith
  • 1,339
  • 3
  • 21
  • 40
1
vote
2 answers

Remove Bootloader on Arduinos

I am trying to move from arduinos to AVR C. Would somebody know how to remove the arduino bootloader from the microcontroller? Is there a different process for the different atmega microcontrollers like the 32u4, 328, or 2560? Thanks.
user5054569