Gcc for AVR

Started by marco belli in comp.arch.embedded13 years ago 2 replies

Hi, I'm a Linux user and gcc fan. At work I,m programming AVR ATMEGA128 using icc-avr and then loading the program to the board using MEGALOAD...

Hi, I'm a Linux user and gcc fan. At work I,m programming AVR ATMEGA128 using icc-avr and then loading the program to the board using MEGALOAD program. I'd like to try using gcc to compile my program. I have followed the instruction found in "AVR Libc Home Page" to compile my program and I have compiled the HEX file. Can i use this file whit windows and MEGALOAD? where cai i find a good...


AVR studio4 problem

Started by Martin Griffith in comp.arch.embedded12 years ago 1 reply

I'm trying to move Studio4/GCC/winavr from my aging laptop to my desk PC I downloaded the latest versions for the PC but get the...

I'm trying to move Studio4/GCC/winavr from my aging laptop to my desk PC I downloaded the latest versions for the PC but get the following error Loaded plugin STK500 Loaded plugin AVR GCC Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\ATmega128 AVR Simulator: Please wait while configuring simulator... AVR Simulator: ATmega128 Configured OK AVR Simulator: Inval...


ATmeag128 8Mhz with Z85c30 SCC(zilog)

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

Hello. I am coding to build-up SDLC(HDLC) in z85c30 with MCU, ATmega128. I am trying to build-up SDLC(HDLC) protocal H/w environment...

Hello. I am coding to build-up SDLC(HDLC) in z85c30 with MCU, ATmega128. I am trying to build-up SDLC(HDLC) protocal H/w environment is z85c30(CMOS) with 4.91520Mhz crystal for PCLK. Also, z85c30's D0~D7 is connected with MCU in un-multiplexed mode(=direct) communication specification is as below - 38.4kbps - NRZI mode - Response time: 50ms - Address: Lower=70...


How to reset an Atmel AT90CAN128 from software?

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

Hello all. I'm looking for a relatively clean way to code a software reset for an AT90CAN128 or ATMEGA128 microcontroller using C code (or C...

Hello all. I'm looking for a relatively clean way to code a software reset for an AT90CAN128 or ATMEGA128 microcontroller using C code (or C with assemby embedded) that will compile under the avr-gcc 3.4.6 compiler chain. Essentially, I want a function softReset() that I can call from my program when appropriate that will reset and reinitialize everything, just as if a POR had occurred or t...


Implementing Real Time Clock in the ATmega128

Started by mkoswatte in comp.arch.embedded10 years ago 9 replies

Hello I am new to Atmel I am trying to make a data collecting device and send data over GPRS but problem is I need to integrate real time clock...

Hello I am new to Atmel I am trying to make a data collecting device and send data over GPRS but problem is I need to integrate real time clock calender in the device to gather information when the data is collected? There are two options 1.Use Atmega128 timer/clock 2.Use separate chip with clock calender But i need to have separate battery powered system to keep the time up to date so...


Atmel ATmega128 - would you use it in a new design?

Started by Peter in comp.arch.embedded10 years ago 8 replies

I have a product which has been running for 16 years, based on a Hitachi H8/323 (16k PROM, 48k external address space). This CPU is end of...

I have a product which has been running for 16 years, based on a Hitachi H8/323 (16k PROM, 48k external address space). This CPU is end of life though we can still buy it from Hitachi (Renesas) and countless secondhand chip dealers in the USA :) We are looking at re-doing the whole thing to get rid of the processor. One option is to stick with the H8 family, which still exists, with t...


Help to choose a new MCU

Started by abrous in comp.arch.embedded9 years ago 10 replies

Hi to all, I work in POS and cash registers design industry since 1995. I use Atmel AVR ATMega128 for almost a decade for the most of my...

Hi to all, I work in POS and cash registers design industry since 1995. I use Atmel AVR ATMega128 for almost a decade for the most of my designs. Because of lack of features but mostly because of the rising prices and availability issues recently I decided to move to another MCU (preferably from different brand). I've spent some days looking around and now I am a little bit confused. So,I'd ...


5V EPROM read/write from 3V mcu

Started by abrous in comp.arch.embedded9 years ago 10 replies

Hi guys, I have an application in which I have to read / write data to an 5V OTP EPROM (AT27c020) from an MCU. I have done this many times in...

Hi guys, I have an application in which I have to read / write data to an 5V OTP EPROM (AT27c020) from an MCU. I have done this many times in the past from 5V microcontrollers like ATmega128. Now I want to do the same from a 3V device (LM3S9B90). MCU inputs are 5V tolerant. I don't want to use 3V EPROMS since they are rare. Also I don't want to use level shifters since they increase cost and bo...


An efficient way to implement bluetooth for an embedded product?

Started by Peter in comp.arch.embedded6 years ago 19 replies

I am looking at developing an industrial product which will have BT. Obviously there are numerous ways to do it, with any microcontroller and...

I am looking at developing an industrial product which will have BT. Obviously there are numerous ways to do it, with any microcontroller and one of the BT modules. My preference is towards the Atmel ATmega128 because we have some other projects, currently using a Hitachi H8/323, which will eventually be migrated to that. Atmel, along with Microchip, seems to be the only company committe...


ATmega128 Questions

Started by Tim Wescott in comp.arch.embedded4 years ago 3 replies

So, I'm sitting here making very poor progress on some customer hardware. It's using an ATmega128, because it's an upgrade to an existing...

So, I'm sitting here making very poor progress on some customer hardware. It's using an ATmega128, because it's an upgrade to an existing product. I'm having NO END of trouble trying to get this damned thing working. I think that I need some suggestions from someone who's been down this road before. So, in no particular order, because I'm lost, here: * Toolset is Atmel Studio 7, u...


What is the best communication mechanism with collision detection/avoidance for my topology?

Started by Anonymous in comp.arch.embedded2 years ago 7 replies

Hello All, Here is my sensor topology.. _____________ _____________ | ...

Hello All, Here is my sensor topology.. _____________ _____________ | | | | Tx |------------|---------> | Rx | | | | | | |ATMEGA128 | | | ATMEGA8 | | | | | | | Rx |-------


How to program AVR or 8051 with Serial Port?

Started by xelon in comp.arch.embedded14 years ago 20 replies

Hi, I'm working on my final year project. I'm going to use AT89C51AC3 or ATmega1280. Last term in Embedded Systems course, we used an...

Hi, I'm working on my final year project. I'm going to use AT89C51AC3 or ATmega1280. Last term in Embedded Systems course, we used an evaluation board(uses MSC1200Y3) that can be programmed over USB. I searched web site of Texas Instruments and find a application note that explains how to make it(In-System Serially Programming). I'm wondering that can I make it too with Atmel's microcont...


Atmel Atmega128L and Macgraigor Wiggler

Started by Pat Barlow in comp.arch.embedded15 years ago 8 replies

We are regularly programming an Atmeg128l board with the Atmel JTAGICE + AVRStudio with no problems, but in production it would be useful to use...

We are regularly programming an Atmeg128l board with the Atmel JTAGICE + AVRStudio with no problems, but in production it would be useful to use a MacGraigor Wiggler to program the Atmel, as we already have one in our test/programming jig. MacGraigor don't support the Atmel AVR devices, but I reckon there should be a software solution to this, does anyone know what it might look like? TIA. ...


linking imagecraft compiler with assember file

Started by fabrizio in comp.arch.embedded16 years ago 5 replies

Hi, I am using the IMAGECRAFT compiler to program the ATMEGA16 device. I'm trying to write a PC program, using Delphi, to make a monitor...

Hi, I am using the IMAGECRAFT compiler to program the ATMEGA16 device. I'm trying to write a PC program, using Delphi, to make a monitor that will be able to manipulate SRAM memory on the ATMEGA16 device. The PC is connected via RS232 to the Device. For example: Command entered on the PC : D 0060 10 Meaning: Display 10H Bytes starting from SRAM address 0060H ...


IAR C-compiler for AVR: Array of pointers to strings in flash

Started by Erik Cato in comp.arch.embedded16 years ago 20 replies

Hi group! Looking for help from someone with experience with IAR?s C-compiler for AVR (ATmega16/32) I want to declare an array with...

Hi group! Looking for help from someone with experience with IAR?s C-compiler for AVR (ATmega16/32) I want to declare an array with pointers to constant text. And both of the should be in flash-memory, like this. __flash char * __flash textTab[] = { "Text1", "Text2", "Text3", "Text4", "Text5", "Text6", "Text7", "Text8", "Text9", }; The array is easy to make in flash but th...


Atmel AVR, too slow encoder tics counting

Started by Umpa in comp.arch.embedded16 years ago 30 replies

Hello, I have problem with counting ticks of an encoder. I can achieve about 5 kHz without errors. Above this frequency, I loose ticks. I...

Hello, I have problem with counting ticks of an encoder. I can achieve about 5 kHz without errors. Above this frequency, I loose ticks. I use second AVR processor as the generator of two signals -- I just test my device, without real encoder. What to do to improve frequency ? Below, I present my program. Processor: AVR ATmega16 You should connect an Encoder in the way: Canal A : ...


AVR, UART

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

Hello, I have got AVR ATmega16. I attached 11059000 Hz oscilator to XTAL1 and XTAL2 (+capacitors). I can send data to the processor (UART)...

Hello, I have got AVR ATmega16. I attached 11059000 Hz oscilator to XTAL1 and XTAL2 (+capacitors). I can send data to the processor (UART) but got wrong characters. Probably, I haven`t set frequency parameters correctly. Do I have to set some extra things in the code to use external oscilator for UART? What to do to make AVR's UART working with 11,059MHz oscilator? Piece o...


Atmel Retailer

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

hi people, Does anybody know where I can get ATMega16-16PC/PI in India ??? I need retailer - I need only one - some one pleaseeeeeeee help me...

hi people, Does anybody know where I can get ATMega16-16PC/PI in India ??? I need retailer - I need only one - some one pleaseeeeeeee help me out yours, Ashwin


Fuse bits in atmega16

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

Hi, Do anyone know whether I can set the fuse bits in atmega16 so that the application flash rom cannot be read out but can write in? Thanks!

Hi, Do anyone know whether I can set the fuse bits in atmega16 so that the application flash rom cannot be read out but can write in? Thanks!


Atmega16 and MMC

Started by terry in comp.arch.embedded15 years ago 3 replies

In ATMega16, I want to ask how to use SPI with a MMC card. I have seen that there are 4 pins in ATMega16 which implements SPI. They are SS,...

In ATMega16, I want to ask how to use SPI with a MMC card. I have seen that there are 4 pins in ATMega16 which implements SPI. They are SS, MOSI, MISO, SCK. For a MMC card, the 4 pin assignments are 1 CS 2 Din 5 SCK 7 Dout Is the SS pin of ATmega16 connected to CS of MMC or else? Thanks!