EmbeddedRelated.com

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


using winavr

Started by vikram.varshney in comp.arch.embedded15 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...


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


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!


PAL SIGNAL

Started by palli in comp.arch.embedded18 years ago 16 replies

I am doing a PAL signal generation project using atmega8.I need to know exact timing chart.ie Where do I give sync pulse,vertical pulse...

I am doing a PAL signal generation project using atmega8.I need to know exact timing chart.ie Where do I give sync pulse,vertical pulse and other things??


baud rate autodetection on AVR 8-bit?

Started by Ivan Shmakov in comp.arch.embedded11 years ago 104 replies

BTW, is there an easy way to autodetect the baud rate while using an AVR UART? (Preferably something that works with ATmega8, given that...

BTW, is there an easy way to autodetect the baud rate while using an AVR UART? (Preferably something that works with ATmega8, given that those MCU's are such a cheap thing nowadays.) There're some ideas (and 8051 code) for that on [1], but I'd like to know if there could be any better techniques. TIA. [1] http://www.pjrc.com/tech/8051/autobaud.html PS. It seems that I'm sl...


AVR Assembler Problem with DB (ATMega8)

Started by Serafin in comp.arch.embedded15 years ago 1 reply

Hello people. I'm sorry, before all, because I write a little of English. I need to calculate the sinus (trigonometric function). This...

Hello people. I'm sorry, before all, because I write a little of English. I need to calculate the sinus (trigonometric function). This way: -The angle will be entered by the PortB, and the sinus come back by the PortD (multiply per 100) -The calculation will be make with a table. -The table must have in de flash memory ( Z ?) This is de table (DB?): 0 10 20 30 40 50 60 70 80 90 0 17...


SPI noise, shielded cable required?

Started by dohzer in comp.arch.embedded16 years ago 13 replies

I've got an SPI master/slave test circuit set up between two Atmel ATmega8 microcontrollers, with the master on an STK500 development board and...

I've got an SPI master/slave test circuit set up between two Atmel ATmega8 microcontrollers, with the master on an STK500 development board and the slave on a breadboard. I noticed that sometimes I would get noisy communications and other times I would not get any noise at all, but it seems to depend on how the wires are positioned. The cables I'm using to connect master and slave are some "ran...


AVR Assembler - Data from a table in program memory (ATMega8)

Started by Mike Warren in comp.arch.embedded16 years ago 6 replies

I have a table in program memory and want to store a byte at a given location into register R16. (This is just example data for...

I have a table in program memory and want to store a byte at a given location into register R16. (This is just example data for testing) MyTable: ; 256 bytes .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0A,$0B,$0C,$0D,$0E,$0F .db $10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$1A,$1B,$1C,$1D,$1E,$1F .db $F0,$F1,$F2,$F3,$F4,$F5,$F6,$F7,$F8,$F9,$FA,$FB,$FC,$FD,$FE,$FF R17 conta


Atmega8-L at 8MHz internal oscíllator not stable?

Started by Antti in comp.arch.embedded11 years ago 8 replies

Hi I am not believing what I see, but I have a board where ATmega8L doesnt want to work with 8MHz internal oscillator setting - the datasheet...

Hi I am not believing what I see, but I have a board where ATmega8L doesnt want to work with 8MHz internal oscillator setting - the datasheet does not say its invalid setting, and I think I have used it before, but now this board only works at 4MHz or at 8MHz when the OSCCAL is written to lower value


AVR and dim LEDs.

Started by artswan in comp.arch.embedded17 years ago 14 replies

Hello all. I have been working with PIC microcontrollers for over 2 years now and I am familiar with and like them. However, recently I have...

Hello all. I have been working with PIC microcontrollers for over 2 years now and I am familiar with and like them. However, recently I have started dabbling with Atmel AVR microcontrollers to see what they have to offer. Especially, since they seem quite popular these days and are showing up in more open-source products. I have done some simple flashing LED circuits with the ATmega8 and 48, ...


Improving timing accuracy with ATmega8

Started by Mike Warren in comp.arch.embedded17 years ago 12 replies

I need to blank out a VGA monitor during startup but want to show the user that something is happening. To achieve this I thought I could use...

I need to blank out a VGA monitor during startup but want to show the user that something is happening. To achieve this I thought I could use the 16Mhz ATmega8 I already have in the system to display something similar to a progress bar. I have assigned 3 pins to this. one each for HSync, VSync and video. The video is split to the red and green channels to give a yellow bar. I need to m...


Using a 4mhz clock with AVR problems

Started by David Nolen in comp.arch.embedded18 years ago 2 replies

Just getting to know embedded programming with the atmega8. I've had some experience using the PIC chip with MicroCode Studio and...

Just getting to know embedded programming with the atmega8. I've had some experience using the PIC chip with MicroCode Studio and have switched to using the avr-gcc tool chain with the atmega8 chip. I've been spending a good few weeks getting up to speed on transferring my knowledge of the PIC to the avr, looking over the docs and all. I'm using a atmega8 development board from sparkfun w...


AVR, ATMega8, who is running his code on mine?

Started by sap in comp.arch.embedded20 years ago 2 replies

Hi, I am wondering what happens here, like if code would run in the background :-) If I run this code (initialisation part being removed...

Hi, I am wondering what happens here, like if code would run in the background :-) If I run this code (initialisation part being removed to clarify), PortB.2 remains low: Timer0Overflow: reti Reset: ... sei cbi PORTB, 2 Main: rjmp Main And if I run following, PortB.2 goes low but immediatly after, et goes high again (seen on my scope): Timer0Overflow: cbi ...


Atmega8 Sleep mode doesn't work with USART

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

Hi. I'd like to use sleep operation with USART but when I use USART with sleep operation, the system was crashed. my code like...

Hi. I'd like to use sleep operation with USART but when I use USART with sleep operation, the system was crashed. my code like this. #include #include #include #include void Uart_Put_Char(unsigned char data) { while ( !( UCSRA & (1 <


I/O-ing Frequencies on ATMega8

Started by forTe in comp.arch.embedded18 years ago 12 replies

So I recently acquired some ATMega8's for a project. My biggest need right now is for somebody to point me in the direction of some guides and...

So I recently acquired some ATMega8's for a project. My biggest need right now is for somebody to point me in the direction of some guides and code for specific programming on the ATMega8. Most specifically I am using these to output a frequency (Highs and lows and 5 and 0 Volts) using a circuit to process the signal and send it back to the microcontroller where the incoming frequency will be...


programming atmega48

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

comp.arch.embedded programming atmega48 The code below is intended to detect a rising transition on the external interput pin by sampling...

comp.arch.embedded programming atmega48 The code below is intended to detect a rising transition on the external interput pin by sampling the flag register but it doesn't work on an atmega48. With the ei-mask bit set (no sei), the code didn't detect a transition either. On an atmega162 this does work, however, and the documentation describes the functioning of the flags in the same...