Atmega 128 and AT25F512A flash memory problems

Started by Tumke in comp.arch.embedded10 years ago

Heya guys, I'm trying to get the AT25F512A 512kb flash chip working with an Atmega128, but unfortunately without any success thus far. I'm...

Heya guys, I'm trying to get the AT25F512A 512kb flash chip working with an Atmega128, but unfortunately without any success thus far. I'm using the AVRlib SPI and SPIFlash .c and .h files to get it going, however I had to change the SPIByte function in SPIFlash.c into SpiTransferByte and SpiSendByte where I thought appropriate. I'm using the interrupt option with #define SPI_USEINT. I...


Counterfeit ATmega328s

Started by Don McKenzie in comp.arch.embedded10 years ago 12 replies

ATmega Slugs Sparkfun just got lumbered with counterfeit ATmega328s: http://www.sparkfun.com/commerce/news.php?id=350 Makes for...

ATmega Slugs Sparkfun just got lumbered with counterfeit ATmega328s: http://www.sparkfun.com/commerce/news.php?id=350 Makes for interesting reading. Check out the comments also. Cheers Don... -- Don McKenzie Site Map: http://www.dontronics.com/sitemap E-Mail Contact Page: http://www.dontronics.com/email Web Camera Page: http://www.dontronics.com/webcam No Mo...


Why UART data is getting corrupted?

Started by T Obulesu in comp.arch.embedded10 months ago 6 replies

I'm getting a strange issue. We have a Atmega 128 controller board that keeps on polling 15 Atmega8 based ultrasonic sensors. They are...

I'm getting a strange issue. We have a Atmega 128 controller board that keeps on polling 15 Atmega8 based ultrasonic sensors. They are connected in RS 422 model where all Tx pins of 15 sensors are connected together and in-turn connected to the Rx of the Atmega 128 controller and all Rx pins of 15 sensors are connected together and finally connected to the Atmega 128..


Porting libjpeg to bare boards

Started by kunil in comp.arch.embedded14 years ago 7 replies

Hi all, I just want to ask..in theory is it possible to port algorithm only software to bare board ? I have ATMega128 connected to...

Hi all, I just want to ask..in theory is it possible to port algorithm only software to bare board ? I have ATMega128 connected to graphic LCD. I want to make an electronic picture/photo frame (so I can change the photo using SDCARD or other solid state disk). So I need to have JPEG decoder (the GPL ones..since this is just for my fun..). So I'm thinking to port libJPEG for ATMega12...


ATMega128 -- Difference between flash/eeprom

Started by Ben Nguyen in comp.arch.embedded16 years ago 2 replies

Im trying to learn microprocessors, and Im a bit confused about flash vs eeprom. 1. Does my program that I download (via ISP ribbon cable) go...

Im trying to learn microprocessors, and Im a bit confused about flash vs eeprom. 1. Does my program that I download (via ISP ribbon cable) go into the EEPROM or the FLASH? 2. Can my user program use the EEPROM at run-time or must it be programmed ahead of time? 3. How does a bootloader work? (If I store a bootloader in flash, will I need the ISP connector to program the chip anymore...


UART commn using parallel port

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

I am programming the ATMEGA128 using the parallel port of my PC. The pins from the programmer go to the UART RX / TX of the MCU for downloading...

I am programming the ATMEGA128 using the parallel port of my PC. The pins from the programmer go to the UART RX / TX of the MCU for downloading the program. I want to send debug info from the MCU to the PC using the same UART. I have code with me to send data using this UART . --The question is that is there a way that the PC can intepret this data and display it correctly. I am using redhat ...


ATmega128L programming problem

Started by Daniel Hanczewski in comp.arch.embedded16 years ago 1 reply

Dear all, This is my first time to use ATmeg128L (3.3V version) and I'm having problem with programming it via SPI. I'm using STK200 with...

Dear all, This is my first time to use ATmeg128L (3.3V version) and I'm having problem with programming it via SPI. I'm using STK200 with HC244 on board so theoreticaly this should work. But it is not. The programmer STK200 works fine with ATmega128 (5V version) either with PonyProg or WinAVR. I have also made STK200 with LCV244 but it also did not help. Has anyone had a problem like...


IIM7010A 3.3v connected directly to 5V AVR?

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

I'd like to connect a Wiznet IIM7010A ethernet module (W3100A chip) to a 5V ATmega128 microcontroller's parallel bus. The IIM7010A operates...

I'd like to connect a Wiznet IIM7010A ethernet module (W3100A chip) to a 5V ATmega128 microcontroller's parallel bus. The IIM7010A operates at 3.3v bus has 5V tolerant I/Os. I've seen some mention of connecting it directly to a 5V microcontroller's memory bus, and it seems that there would be no problem for the uC's 5V outputs connected to the IIM7010A. But the minimum high level for...


FRAM FM3808 interfacing

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

I'm trying to design a circuit with Ramtron's non-volatile parallel FRAM with built-in RTC - the FM3808. The datasheet states that the FRAM...

I'm trying to design a circuit with Ramtron's non-volatile parallel FRAM with built-in RTC - the FM3808. The datasheet states that the FRAM works differently than SRAM, in that it needs the chip enable CE/ to toggle between each access and not stay low. This is because it is needed for the necessary precharge period. I'm using an Atmel ATmega128's external memory bus, and will be ...


C struct Alignement avr-gcc / Linux

Started by Martial Chateauvieux in comp.arch.embedded15 years ago 3 replies

Hi, I am building a small GUI on Linux to enter paramters for control loops runnning on an ATMega128. As the protocol is bi-directionnal I...

Hi, I am building a small GUI on Linux to enter paramters for control loops runnning on an ATMega128. As the protocol is bi-directionnal I thought I could use the same C functions on both sides to serialize/deserialize the data. The way I send the data over the UART is that I just copy byte per byte the struct containing the data. Unfortunately, the alignement on the PC is different...


Scripting engine

Started by Pierre de Vos in comp.arch.embedded15 years ago 9 replies

Hi I'm looking for a small scripting engine to embed on typically a Mega128 processor. I'm only looking for something simple, maybe a simple...

Hi I'm looking for a small scripting engine to embed on typically a Mega128 processor. I'm only looking for something simple, maybe a simple C-type interpreter that allows rudimantary constructs: loops, function calls, etc. Here's what I want to do: we have an instrument based on an ATMega128, with a LCD, keypad and MMC flash disk. I would like to implement user defined data captur...


3V <-> 5V Level shifter ?

Started by Martial Chateauvieux in comp.arch.embedded15 years ago 15 replies

Hi, I want to connect a GPS Smart antenna SAM LS from u-blox, to the UART of an atmega128 running under 5V. ...

Hi, I want to connect a GPS Smart antenna SAM LS from u-blox, to the UART of an atmega128 running under 5V. Unfortunately the GPS runs in 3V and has 3V compatible IOs. I set up a 3V regulator already for the power supply. Can someone explain how to build a level shifter from 3V to 5V with a transistor ? (How do I choose it, how to...


Davicom DM9000 programming problem

Started by Piotr Golabek in comp.arch.embedded15 years ago 2 replies

Hi, I'm prototyping ATMEGA128 + DM9000 hardware. I have run into strange problem, creating the driver for DM9000. I can read the registers,...

Hi, I'm prototyping ATMEGA128 + DM9000 hardware. I have run into strange problem, creating the driver for DM9000. I can read the registers, but cannot write them. More specifically: I cannot write the DATA (CMD pin = 1) location, although there is no problem with writing the INDEX (CMD pin = 0) location - I can read the default values of the registers and this requires succesful write op...


C Library for Graphic LCD Displays

Started by Anton Erasmus in comp.arch.embedded15 years ago 1 reply

Hi, Can anyone recommend a C source library for basic routines to drive smallish graphic LCD displays. (128x64). The library should be...

Hi, Can anyone recommend a C source library for basic routines to drive smallish graphic LCD displays. (128x64). The library should be small enough for 8-bit MCUs - e.g. ATMega128. Basic support for multiple viewports. Scalable fonts etc. So far the only library I have found is the one from RAMTEX. Regards Anton Erasmus


TCP/IP stack for GPRS

Started by Jesper in comp.arch.embedded15 years ago 5 replies

Hey Any of you had any experience with running tcp/ip stack on 8051 for GPRS purpose?? Which 8051 uC and TCP/IP stack did you use?? Free...

Hey Any of you had any experience with running tcp/ip stack on 8051 for GPRS purpose?? Which 8051 uC and TCP/IP stack did you use?? Free ones preferred :-) Or should I use a different uC like AVR ATMega128 og an ARM7 like Phillips LPC21XX. I've only got experience with 8051 uC.... It's my first GPRS project, any suggestions on my choice of TCP/IP stack?? Regards Jesper Denmark ...


Design Advice

Started by BarryS in comp.arch.embedded15 years ago 5 replies

Hi All: I would like some design advice from those that have 'been there / done that'. We are designing a fairly simple data logger. In...

Hi All: I would like some design advice from those that have 'been there / done that'. We are designing a fairly simple data logger. In essence, this device will connect via serial to an industrial machine and log the data to a database via a standard ethernet port. We are currently evaluating two different paths to accomplish this: (1) ATMega128 controller and use the Nut/OS sui...


AVR + Ethernet TCP - performance??

Started by Marek Garwolinski in comp.arch.embedded15 years ago 6 replies

Hello Anyone has used a TCP/IP on AVR?? I'm planning to build a system consisting of ATMega128 + external SRAM + RTL 8019. I'm thinking of...

Hello Anyone has used a TCP/IP on AVR?? I'm planning to build a system consisting of ATMega128 + external SRAM + RTL 8019. I'm thinking of use "uIP TCP/IP Stack". It will be sending about 200-500 bytes of data to the server on TCP, doing 8 A/C conversion, checking state of


Pointer to memory location in Atmega128

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

hi good day, We are using codevision AVR as compiler for atmega128 , and bootloader(upper 2K) for loading application...

hi good day, We are using codevision AVR as compiler for atmega128 , and bootloader(upper 2K) for loading application firmware(start from 0x0000 , size nearly 70K) and a separate data structure(start from 0xB400, size nearly 20K). Now we want to access that data structure from our application firmware.Actually we failed to access the upper 64k area by declaring a pointer to...


AVARICE under windows 2000 question.

Started by CW Thomas in comp.arch.embedded15 years ago 1 reply

Thanks for reading this; I'm using Averice 2.3 under win 2000 pro. I attempting to invoke it with the following : avarice --program...

Thanks for reading this; I'm using Averice 2.3 under win 2000 pro. I attempting to invoke it with the following : avarice --program --file demo.bin --part atmega128 --jtag /dev/ttyS0 :4242 IT sees the JTAG pod but I get the following error: tcp protocol unknown (oops?). I've tried different port settings, tried adding localhost:4242 etc to no avail. Does anybody have any ideas?...


wake up from the sleep mode atmega128

Started by Tamilmaran S in comp.arch.embedded15 years ago 4 replies

hi, Good Day, I want to put my controller Atmega128 into the sleep mode, it is going well but it is not waking up from the idle mode for...

hi, Good Day, I want to put my controller Atmega128 into the sleep mode, it is going well but it is not waking up from the idle mode for any interrupt occure. The actual asm code is as below: ; 3591 sleep_enable(); CALL _sleep_enable ; 3592 idle(); CALL _idle _sleep_enable: in r30,mcucr sbr r30,__se_bit out mcucr,r30 ret _sleep_disable: ...