EmbeddedRelated.com
Memfault Beyond the Launch

How to define placement address of functions?

Started by in comp.arch.embedded18 years ago 4 replies

Hi all, I want to place a function in the bootload sector of my ATmega32, where I will do some writings to a flash table. How will I get...

Hi all, I want to place a function in the bootload sector of my ATmega32, where I will do some writings to a flash table. How will I get the compiler to place the function and just this one function at 0x7000 ? I have tried //Declaration void (*table_write) (float flash *table_ptr, float value2 )=0x7000; //Defenition void table_write(float flash *table_ptr, fl...


AVR-GCC ADC example source

Started by Andrew Tweddle in comp.arch.embedded18 years ago 7 replies

I have been looking on the web for AVR-GCC example sources on using the ADC converter in the ATmega32 or a related processor, to my...

I have been looking on the web for AVR-GCC example sources on using the ADC converter in the ATmega32 or a related processor, to my disappointment, I have only found the Atmel AVR465: Energy meter example, are there any other examples both simple and complex on setting up and using this peripheral? Andrew


Flicker algorithm help

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

I am just starting a small design for amateur theatre group. They want me to build a camp-fire simulator. I already have a home-built control...

I am just starting a small design for amateur theatre group. They want me to build a camp-fire simulator. I already have a home-built control box and slave units for switching practicals. The control box contains a ATmega32 and each of the slaves contains an Atmega8 with an opto-isolated solid state relay. They use a multi-drop RS 485 comms network so that any number of slaves can be connect...


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 ...


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 ...


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...


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


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...


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!


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...


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...


programming atmega48/168's

Started by Hul Tytus in comp.arch.embedded16 years ago 5 replies

comp.arch.embedded programming atmega48/168's I have been programming an atmega168 for the the last few weeks with no trouble. Today an...

comp.arch.embedded programming atmega48/168's I have been programming an atmega168 for the the last few weeks with no trouble. Today an atmega48 was put in the 168's place, and the programming failed. From a quick look, there appeared to be a timeout when polling the flash af0ter a buffer had been written. That was a quick look at the end of the day, though. Has anyone here found di...


ATmega169 Puzzle

Started by Joel in comp.arch.embedded16 years ago 3 replies

Well a few days ago I was having trouble setting up a simple spi interface. Whenever I would try to lower the chip select lines of my devices the...

Well a few days ago I was having trouble setting up a simple spi interface. Whenever I would try to lower the chip select lines of my devices the 169 would try it and then give up and reset itself. I finally figured out that the problem was the pin I was trying to use. I was using PINB0 and PINB4 as chip select lines. B4 was the one giving me trouble so I switched it to B5 and the problem wa...


AVR: Confused About an Array of Functon Pointers at Runtime

Started by the el vez in comp.arch.embedded17 years ago 9 replies

I have some code that I am running on an atmega169. I am building a static array of function pointers like so: typedef uint8_t...

I have some code that I am running on an atmega169. I am building a static array of function pointers like so: typedef uint8_t (*routine)(void); extern routine testRoutine; extern routine testRoutine2; routine routines[] = { (routine)&testRoutine, (routine)&testRoutine2 }; This compiles and links fine and at runtime


ATmega169 rev number

Started by Phil in comp.arch.embedded20 years ago 4 replies

Can anyone help with Atmel ATmega169 rev numbers, I have two chips marked code 0339 and another 0352, is thisjust week 39 and week 52 of 2003?...

Can anyone help with Atmel ATmega169 rev numbers, I have two chips marked code 0339 and another 0352, is thisjust week 39 and week 52 of 2003? How can I tell what REV number are they? They both behave different so they are either REV B & REV C or REV C & REV D. Anyone help? Phil


Getting started with AVR and C

Started by Robert Roland in comp.arch.embedded11 years ago 152 replies

I am quite used to playing with PICs and JAL v2. I use the PicKit3 for programming and debugging. Now I want to learn C and AVR. I thought it...

I am quite used to playing with PICs and JAL v2. I use the PicKit3 for programming and debugging. Now I want to learn C and AVR. I thought it may be a good idea to do both at the same time. I already have a device with an ATMEGA168 in it. I want to write my own firmware for this device. I have installed the Atmel Studio 6 and downloaded the data sheet for the '168. Now I need a progra...


Help for initializing a BW Graphic LCD module

Started by interrogativo in comp.arch.embedded15 years ago 2 replies

Hi all! I've an AVR ATmega168 connected to a G1212x02 from CCT : http://www.cct.com.my/Products/Graphic%20Module/PG58-G1212X02.pdf It embeds...

Hi all! I've an AVR ATmega168 connected to a G1212x02 from CCT : http://www.cct.com.my/Products/Graphic%20Module/PG58-G1212X02.pdf It embeds a NT7506 controller from Novatek. This chip needs alot of params: step-up voltage, resistors and so on. The LCD module datasheet doesn't explain too much. Can somebody help?


ANN: New ARM Cortex-M3 in Arduino format

Started by Tim in comp.arch.embedded15 years ago 4 replies

We have developed a board which has an ARM Cortex-M3 micro in the Arduino format. This is definitely not an official board, and by using a...

We have developed a board which has an ARM Cortex-M3 micro in the Arduino format. This is definitely not an official board, and by using a 72MHz 32-bit processor with 512KByte of Flash we guaranteed there would be a few changes from the 10MHz Atmel ATmega168 in the Arduino... But we tried to keep as close as possible to the Arduino spirit. At least the connectors are in the same places ...


ATmega168 isp programming problem

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

I've been using avr for quite some time now, but recently I encountered a problem programming atmega168 using ISP: set up- JTAG ICE mkII, ISP...

I've been using avr for quite some time now, but recently I encountered a problem programming atmega168 using ISP: set up- JTAG ICE mkII, ISP connector to atmega168 atmega168 uses internal oscillator nothing is connected to the reset pin except for the nSRST of mkII. For the first few tries, programming works fine for a fresh chip. The same code can be programmed to the chip more than on...


ATmega162V and STK500 kit

Started by Roman Mashak in comp.arch.embedded19 years ago 2 replies

Hello, All! I'm trying to program ATmega162V chip using AVR Studio 4. STK500 board is installed according to manual and i can program the...

Hello, All! I'm trying to program ATmega162V chip using AVR Studio 4. STK500 board is installed according to manual and i can program the sample chip provided with board without any errors or warning, but trying to burn the mega162v i get this error: FLASH contents differs from file Before burning I erased chip succesfully. Oscillator frequency and voltage value are setup by...



Memfault Beyond the Launch