EmbeddedRelated.com
The 2024 Embedded Online Conference

Free parts - we have a winner :)

Started by larwe in comp.arch.embedded18 years ago 3 replies

And the lucky winner is David Harmon. So you know what you missed out on here is what I've tossed so far: Piezos, grain of...

And the lucky winner is David Harmon. So you know what you missed out on here is what I've tossed so far: Piezos, grain of wheat bulbs, 22W amplifiers, bags of assorted semiconductors, etc :) There were a few ATmega16s and ATtiny15s and ATtiny26Ls, and I think I saw a tube with half a dozen smallish PICs in it go


Booting ATMEGA2560

Started by ratemonotonic in comp.arch.embedded17 years ago 3 replies

Hi all , I have just designed a board with a JTAG interface and ISP interface ( with some good advice from past discussions on this forum)and...

Hi all , I have just designed a board with a JTAG interface and ISP interface ( with some good advice from past discussions on this forum)and have also bought the JTAG programmer. Now before I send the board for layout , I am looking at the nitty gritty of bootloading a hello world programme ( flashing leds!) on it. Does the ATMEL parts come preprogrammed with a standard bootloader in the...


strange behavious on AVR Simulator

Started by ratemonotonic in comp.arch.embedded16 years ago 1 reply

Hi all , I am using AVR Studio + WinAVR to develop software for ATmega2560. Before the hardware arives I am trying to get used to the uC...

Hi all , I am using AVR Studio + WinAVR to develop software for ATmega2560. Before the hardware arives I am trying to get used to the uC by running software on the simulator that comes with AVR studio. I have all the 4 UARTS enabled and thier TX and RX interrupts enabled. When I some tests by a byte on all four UARTS the simulator execution only hits the ISRs for the first two UARTS and ...


High frequency PWM generation

Started by ratemonotonic in comp.arch.embedded16 years ago 10 replies

Hi All , I am working with a 8 bit Atmega2560 uC, when operating at 16 Mhz clock the maximum frequency of PWM I can generate is ~31Khz at 8...

Hi All , I am working with a 8 bit Atmega2560 uC, when operating at 16 Mhz clock the maximum frequency of PWM I can generate is ~31Khz at 8 bit resolution. Are there any external PWM generator ICs which I can use to generate higher frequency PWM signals? Also If I want to sin modulate the PWM with sin wave of 4khz then is 31khz (PWM Wave) enough? Any guideline would be appreciated a l...


Timer ticks occurring much more faster

Started by ratemonotonic in comp.arch.embedded16 years ago 2 replies

Hi All , I am implementing RTC code on an AVR Atmega2560 I have a 32Khz clock crystal to TSOSC1 which is used by timer2 in async mode. I...

Hi All , I am implementing RTC code on an AVR Atmega2560 I have a 32Khz clock crystal to TSOSC1 which is used by timer2 in async mode. I have configured the clock divide to 8 so the clock to the timer is 32768/8 = 4096. It is a 8bit so a interrupt should be generated every 16hz (4096/256). So on 16 ticks make one second. If I add up second to make 5 minutes and light an LED on this eve...


porting FreeRtos to atmega2560

Started by Anonymous in comp.arch.embedded16 years ago 1 reply

Hello All. I try to port FreRtos to atmega2560 WinAVR I modified this piece in port.c usAddress = ( unsigned portSHORT )...

Hello All. I try to port FreRtos to atmega2560 WinAVR I modified this piece in port.c usAddress = ( unsigned portSHORT ) pxCode; *pxTopOfStack = ( portSTACK_TYPE ) ( usAddress & ( unsigned portSHORT ) 0x00ff ); pxTopOfStack--; usAddress > > = 8; *pxTopOfStack = ( portSTACK_TYPE ) ( usAddress & ( unsigned portSHORT ) 0x00ff ); pxTopOfStack--; /* AND THE THIRD BYTE */ usAddress > > = 8


Silicon bug in Atmega2560?

Started by Meindert Sprang in comp.arch.embedded15 years ago 7 replies

Hi Guru's, I have come across something weird. I have a bit of code on an Atmega2560 that does three things: is initialises two timers in CTC...

Hi Guru's, I have come across something weird. I have a bit of code on an Atmega2560 that does three things: is initialises two timers in CTC mode, it initialises the SPI port to talk to an SD card and it enables the SD card interface chip by setting PB5 high. This port pin is on the same port (B) as the SPI interface and the secondary function of this port pin is OC1A. The following cod...


atmega2560 - LTC2440 SPI communication...need help troubleshooting

Started by icabod8 in comp.arch.embedded12 years ago 1 reply

New guy here trying to talk to an AD board via SPI. Was hoping someone might help me troubleshoot. I have an ATmega2560 attached to a STK600...

New guy here trying to talk to an AD board via SPI. Was hoping someone might help me troubleshoot. I have an ATmega2560 attached to a STK600 development board. I'm trying to get data off of a LTC2440cgn AD board. But all I get out is 0... The AD board is 24 bit resolution, but produces a 32 bit value with the data being in bits 5-28... so I figure first I need to read in 4 bytes from the AD...


ov7690 SCCB writing data to register

Started by hassanmahmood in comp.arch.embedded6 years ago 7 replies

hello: Hello: i am using ov7690 with at91sam usin MCK at 12.3MHz. but for testing purpose i am using I2C at 153KHz from atmega2560...

hello: Hello: i am using ov7690 with at91sam usin MCK at 12.3MHz. but for testing purpose i am using I2C at 153KHz from atmega2560 for SCCB. I can read any register from ov7690 but I can't write to any register. the response is correct i.e. status register of TWI of atmega2560 depicts correcr value, meaning it sends data. but when i read back the value from that register the ol...


AREF bypass capacitance on ATMega2560?

Started by Joerg in comp.arch.embedded11 years ago 145 replies

Folks, What's the usual capacitance? Any stability issues there? I was planning on using a 1uF X7R ceramic cap on the AREF pin of an...

Folks, What's the usual capacitance? Any stability issues there? I was planning on using a 1uF X7R ceramic cap on the AREF pin of an ATMega2560, in order to be able to use its internal bandgap reference. I saw people using 0.1uF and 0.47uF. The datasheet is silent about stuff like that, as usual. -- Regards, Joerg http://www.analogconsultants.com/


ATmega2561 development board

Started by Anonymous in comp.arch.embedded18 years ago 2 replies

Is there any off the shelf development board for ATmega2561?

Is there any off the shelf development board for ATmega2561?


Atmel ATmega2561 is no better than PIC16F84

Started by John B in comp.arch.embedded18 years ago 24 replies

So I've finally got my precious samples of ATmega2561. With 256Kbytes of Flash I should be able to store massive look-up tables, but wait...

So I've finally got my precious samples of ATmega2561. With 256Kbytes of Flash I should be able to store massive look-up tables, but wait a minute the Flash memory is segmented into 64Kbyte lumps. The data sheet states: "For ELPM/SPM instructions, the Z-pointer is a concatenation of RAMPZ, ZH, and ZL" But is that really true? I find that I have the following instruction: ELPM Rd,Z+ ...


linear interpolation / Assembler / ATMega32

Started by Rolf Bredemeier in comp.arch.embedded20 years ago 17 replies

Hi all, i`m searching an ASM-example for 2d lin. interpolation. (No need for floating point) In the EEPROM is stored an table, like...

Hi all, i`m searching an ASM-example for 2d lin. interpolation. (No need for floating point) In the EEPROM is stored an table, like so .eseg LTable: .db 0, 75 .db 40, 37 .db 60, 48 .db 80, 180 .db 100, 170 (The first byte in every .db line is the index, the second the value.) Now i need the interpolated value for an index 55. The calculation for that is not so diff...


preventing SPI noise on ADC

Started by Glenn in comp.arch.embedded20 years ago 5 replies

How can I best prevent noise on the SPI lines communicating between my ADC (Burr-Brown 16-bit 8-ch ADS8344) and a 5V microcontroller (AVR...

How can I best prevent noise on the SPI lines communicating between my ADC (Burr-Brown 16-bit 8-ch ADS8344) and a 5V microcontroller (AVR ATmega32)? I've tried to keep the digital lines as far away from the analog lines as possible, and have a 2-layer design with seperate analog / digital ground planes. Should I buffer all the SPI lines? if so, which buffer chips would be suitable...


FAT16/32 system on a MMC card

Started by terry in comp.arch.embedded19 years ago 5 replies

Hi, Could anyone give me source code example to implement FAT16/32 file system on a MMC card? I used Atmega32. Thanks!

Hi, Could anyone give me source code example to implement FAT16/32 file system on a MMC card? I used Atmega32. Thanks!


Returning from Subroute

Started by terry in comp.arch.embedded19 years ago 6 replies

Hi, I used Atmega32(DIP) in my prototype board to test part of my source code, the execution is smooth. Then I ported the code to...

Hi, I used Atmega32(DIP) in my prototype board to test part of my source code, the execution is smooth. Then I ported the code to Atmega64, only little code modifications are required. However, I found the program counter quickly goes to an unknown address when the program runs in the beginning. I then trace the program using the debugger and find the program retrieve a wrong program co...


Possible problem on Olimex ATMega32 HEADER BOARD schematic

Started by Anonymous in comp.arch.embedded19 years ago 1 reply

Hi Group, Shouldn't pin 4 on the jtag header (labeled AREF) go to Vcc? http://www.olimex.com/dev/images/avr-m16-sch.gif Matt Meerian

Hi Group, Shouldn't pin 4 on the jtag header (labeled AREF) go to Vcc? http://www.olimex.com/dev/images/avr-m16-sch.gif Matt Meerian


AVR interrupt response time

Started by Pygmi in comp.arch.embedded19 years ago 19 replies

I just started my first time critical project with AVR's. And time critical meaning interrupt response times. So far I have been using avr-gcc...

I just started my first time critical project with AVR's. And time critical meaning interrupt response times. So far I have been using avr-gcc (3.3.x) and I have been pretty happy with it. And I have written ALL code in C. I'm hoping to get some code executed within 2 us or so after external interrupt (INT0/INT1 with ATMega32). I wrote the code to be executed today and ended up to appr. 2...


Tiny ARM Development

Started by Alex McHale in comp.arch.embedded19 years ago 6 replies

We are looking at using the AT91SAM7S64 in a new project. We had previously tried the ATMEGA32, but it turned out to be underpowered for our...

We are looking at using the AT91SAM7S64 in a new project. We had previously tried the ATMEGA32, but it turned out to be underpowered for our needs. The program, however, was less than 100 lines of assembly code for the ATMEGA32. The AT91 does not seem quite as easy to get into as the AVR. I have the AT91SAM7S64-IAR development kit, and am having trouble figuring out where to go next. Most ...


Q: USB serial port give random data when.....

Started by Donald in comp.arch.embedded19 years ago 1 reply

I have a single ATMEGA32 connected to a LT1082. An external 5V supply runs that board. I am using a USB serial port adaptor to talk to my...

I have a single ATMEGA32 connected to a LT1082. An external 5V supply runs that board. I am using a USB serial port adaptor to talk to my PC. The USB serial port gives random data when connected. This happens with my laptop as well at my deskyop computers. Any suggestions of why this is doing this ??? I checked the ground line from the LT1082 to the computer chassis. I have tried ...



The 2024 Embedded Online Conference