EmbeddedRelated.com
Memfault Beyond the Launch

Using PWM as a DAC?

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

Hi, I want to learn if I can use PWM as a DAC on AT89C51AC3. I'm going to take voice from built-in ADC (has 8-bit resolution), and send it...

Hi, I want to learn if I can use PWM as a DAC on AT89C51AC3. I'm going to take voice from built-in ADC (has 8-bit resolution), and send it to speaker. But AT89C51AC3 doesn't have a built-in DAC. I have found a project from Internet that uses PWM to create analog voice. But the project is designed with ATmega8535. Thanks


key steps to get c-file debugging info into AVRStudio 4

Started by Joe in comp.arch.embedded19 years ago 12 replies

What are the key steps to getting AVRStudio 4.11 to show C source file debugging info (rather than an assembly listing of the flash...

What are the key steps to getting AVRStudio 4.11 to show C source file debugging info (rather than an assembly listing of the flash memory)? I've been trying different things for hours and nothing seems to work. I have an ATmega8535. Is there any documentation that focuses on the 20% of things that 80% of users would like to do (I'm assuming this to be something like the following): ...


ATmega8535 and USART post-initialisation delay required?

Started by Joe in comp.arch.embedded19 years ago 3 replies

Is there a requirement to delay using the USART (at least for asynchronous transmission) for a period of time after initially setting it up...

Is there a requirement to delay using the USART (at least for asynchronous transmission) for a period of time after initially setting it up and enabling interupts until transmitting the first character? I ask, because when I set it up and then immediately use it to output a character (or string of characters), they are consistently wrong. I tried outputing the following string: "sys init...


Cannot read fuses on ATMEGA8515 using STK500

Started by M.O.B. i L. in comp.arch.embedded15 years ago 8 replies

I cannot read fuses on ATMEGA8515 using STK500 (I have only tested this so far) in Linux (Kubuntu 8.04) using avrdude 5.5. I have...

I cannot read fuses on ATMEGA8515 using STK500 (I have only tested this so far) in Linux (Kubuntu 8.04) using avrdude 5.5. I have tried variations of this command such as using sudo, but nothing works. $ avrdude -c stk500v2 -p m8515 -P /dev/ttyUSB0 -U hfuse:r:high.txt -U lfuse:r:low.txt avrdude: AVR device initialized and ready to accept instructions Reading | ###################...


ATmega8515 Fuse bits newbie

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

I am a new AVR user.I am having a similar problem.I'll explain 1)My programmer is STK200 based.I am using LPT1 pins as...

I am a new AVR user.I am having a similar problem.I'll explain 1)My programmer is STK200 based.I am using LPT1 pins as below 6=SCk 7=MOSI 9=RST 10=MISO 2 and 12 shorted 3 and 11 shorted Now I have pony prog as well as Codevision's inbuilt programmer. Before flashing this IC i tried reading its flash/eeprom etc and good,both softwares read the mega8515. Now I am using external xtal 4MHz...


AVR libc device defines ?

Started by JoeyB in comp.arch.embedded17 years ago 1 reply

Here's a newbie question. I'm doing the the example program that's listed in the gcc AVR libc documentation. I'm using the STK500 dev. board...

Here's a newbie question. I'm doing the the example program that's listed in the gcc AVR libc documentation. I'm using the STK500 dev. board with a ATMEGA8515 and AVR Studio. The example provides a file iocompat.h that defines some device specific stuff. Here's a exerpt: #if defined(__AVR_AT90S2313__) # define OC1 PB3 # define OCR OCR1 # define DDROC DDRB # define TIMER1_OVF_vect TIM...


ATmega8515 power consumption

Started by Meindert Sprang in comp.arch.embedded18 years ago 16 replies

I am struggling to get the power consumption of sensor device down. According to the datasheet (page 208, top graph), the ATmega8515 I use,...

I am struggling to get the power consumption of sensor device down. According to the datasheet (page 208, top graph), the ATmega8515 I use, uses slightly less than 1mA @ 3.3V and 1MHz internal clock while active. But I measure around 2.3mA. Even when I stop all I/O and go into an endless loop, it still uses 2.1mA. Is Atmel showing off here or am I missing something? Meindert


Recommended External ROM for AVR

Started by trungnl in comp.arch.embedded19 years ago 10 replies

I am doing a project with ATmega8515. But the MCU's internal Flash memor is not enough for the firmware and I need to add an external memory...

I am doing a project with ATmega8515. But the MCU's internal Flash memor is not enough for the firmware and I need to add an external memory chip. What is the recommended EEPROM should I use in this case ? Any help could be highly appreciated ! N.L.Trung This message was sent using the comp.arch.embedded web interface o www.EmbeddedRelated.com


Problem with A/D

Started by Dado in comp.arch.embedded19 years ago 8 replies

Hello, I have problem with .C programming! (Working with Code Vision for AVR). I have set up one PCF8591 on I2C BUS. Can You help me with...

Hello, I have problem with .C programming! (Working with Code Vision for AVR). I have set up one PCF8591 on I2C BUS. Can You help me with code, where I m doing wrong? Chip type : ATmega8515 Program type : Application Clock frequency : 4,000000 MHz Memory model : Small External SRAM size : 0 Data Stack size : 128 Communication parameters: 9600 8N1 [RS232 SPARE header] [PORT...


Warning on migrating to ATMega8515 - eeprom problem

Started by Mike Harrison in comp.arch.embedded19 years ago 13 replies

Here's a warning that may hopefully save someone else all the hassle we've just had after migrating a product to the Mega8515 - there may be a...

Here's a warning that may hopefully save someone else all the hassle we've just had after migrating a product to the Mega8515 - there may be a similar issue with other back-compatible mega parts.. We had some code that was originally written for a 90S4414. This moved to a 90S8515 a while ago when the 4414 went obsolete. We recently changed to the AtMega8515, again due to the old part going o...


Anyone seen ATMega8515 lose eeprom data?

Started by Mike Harrison in comp.arch.embedded20 years ago 1 reply

A customer of mine recently changed from using AT90S8515 to ATMega8515 as the former is obsolete. We've had a couple of units in the field lose...

A customer of mine recently changed from using AT90S8515 to ATMega8515 as the former is obsolete. We've had a couple of units in the field lose eeprom data - we're still waiting to get them back to look further but has anyone else seen anything like this ?


AVR IPS programming problems

Started by Meindert Sprang in comp.arch.embedded20 years ago 12 replies

Hi all, I have a very annoying problem: I have an existing design with an ATmega8515, with an ISP connector setup as specified in one of the...

Hi all, I have a very annoying problem: I have an existing design with an ATmega8515, with an ISP connector setup as specified in one of the Atmel appnotes about implementing an ISP connector. It uses a network on the reset line, with a 10k resistor to VCC, a 4n7 cap to ground and a diode across the resistor for protection. This has always worked on a 2313, a 8515 and a Mega8515. I recentl...


using winavr

Started by vikram.varshney in comp.arch.embedded16 years ago 1 reply

Hi all I am into using CAN FESTIVAL stack over ATMEGA64. The stack is a gcc code and I am new to gcc. I chose to work on WinAVR on windows. I...

Hi all I am into using CAN FESTIVAL stack over ATMEGA64. The stack is a gcc code and I am new to gcc. I chose to work on WinAVR on windows. I made a sample makefile using Mfile tool for testing. My first hurdle was that I couldn't add more than one source code file to the makefile. So I started with adding just one .c file. Secondly I expected it to give errors as I hadnt mentioned path for he...


Need someone to program timer function (AVR)

Started by Scott Kelley in comp.arch.embedded18 years ago 10 replies

I am working on a project & have concluded that it's never going to get finished unless I get some assistance. I need someone with...

I am working on a project & have concluded that it's never going to get finished unless I get some assistance. I need someone with considerable relevant experience, to program a timer function. Need it programmed in C (so that I can understand & modify it in the future). The device is an ATmega64 and I am using Imagecraft ICCAVR compiler. Here's what I have in mind so far: Fun...


ImageCraft ICCAVR - Startup ?

Started by Scott Kelley in comp.arch.embedded17 years ago 2 replies

The environment is an ATmega64 with a 32 KHz watch crystal running a real time clock on AVR timer0. The problem is with an occasional...

The environment is an ATmega64 with a 32 KHz watch crystal running a real time clock on AVR timer0. The problem is with an occasional watch dog reset that happens every few days or longer is resetting the AVR processor and wiping out the current real time clock values. The long term fix it to find what is causing the watchdog resets, but saving the real time clock through a watchdog re...


thread safe fat

Started by Anonymous in comp.arch.embedded17 years ago 4 replies

Hi, I'm using in a project of mine a free FAT filesystem to manage an sd card. Im' using an ATmega64 so I have not too much RAM. I also need to...

Hi, I'm using in a project of mine a free FAT filesystem to manage an sd card. Im' using an ATmega64 so I have not too much RAM. I also need to use an OS to manage different tasks and can have File system operation requests from different tasks. Is there any intrinsic free thread safe implementation of FAT or have to manage that on my own using semaphores or other synchronization tools? ...


atmega8 as twi-slave

Started by Oliver Joa in comp.arch.embedded20 years ago 1 reply

hi, i try to use the atmega8 as a slave-device on the twi (i2c) bus. i can send the slave-adress and the atmel reacts on it, but then it...

hi, i try to use the atmega8 as a slave-device on the twi (i2c) bus. i can send the slave-adress and the atmel reacts on it, but then it sends SCL to low and the bus is blocked. i have no idea whats the next step. does anyone have a working slave-implementation (example-code)? thanks regards olli


Why ATMega8 is not supported by JTagICE?

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

Hi, Do anyone know why Atmel ATMega8 is not supported by JTagICE? Thanks!

Hi, Do anyone know why Atmel ATMega8 is not supported by JTagICE? Thanks!


ImageCraft ICCAVR compile error in eeprom.h

Started by Scott Kelley in comp.arch.embedded18 years ago 1 reply

using: ImageCraft IDE v6.31 - ATMega64 One of the standard include files is "eeprom.h", included below. I am getting a compile error at the...

using: ImageCraft IDE v6.31 - ATMega64 One of the standard include files is "eeprom.h", included below. I am getting a compile error at the point marked with "#*#*". As you can see, this file does not include a test for ATMega64, so EEPROMwrite is not defined, which I assume is the problem. I'm getting into a realm that I don't understand. I need to know if either of the definitio...


AVR ATmega644 mysterious reset ?

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

Hello All, I'm having a hard time struggling with a reset of my application. The Atmega644 is used for an RFID application and handles...

Hello All, I'm having a hard time struggling with a reset of my application. The Atmega644 is used for an RFID application and handles communication + protocol and all RFID operations including an anticollision scheme. The anticollision is implemented via recursive call's. The application is written in CodeVisionAVR C compiler vers. 1.25.2. I'm debugging in AVRstudio vers. 4.12 buil...



Memfault Beyond the Launch