Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Programming Atmel Atmega 8L

Status
Not open for further replies.

mesfet

Full Member level 2
Joined
Jan 4, 2002
Messages
131
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
1,111
programming atmega8

Anyone have experience in programming Atmel Atmega 8L for serial data communication? What I want to do is just programming the Atmega to receive and send data to the serial port of a computer. I have already written a pc program to send data to serial port but I don't have any idea in programming the Atnega.

Any ideas are welcome. It is great if there are sample codes.
 

revolt

Full Member level 2
Joined
Feb 3, 2002
Messages
121
Helped
4
Reputation
6
Reaction score
1
Trophy points
1,298
Activity points
1,008
atmega8 programming

hi,

what do you want to use ?

C Compiler or Assembler

TX/RX via interrupts or polling mode?
 

mesfet

Full Member level 2
Joined
Jan 4, 2002
Messages
131
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
1,111
programming in atmega8

I prefer Assembler, and I have to comparing using interrupts and polling mode operation.

I have downloaded AVR Studio 4.0 from the website of atmel. Is it the right tool for developing program for atmega8L??
 

revolt

Full Member level 2
Joined
Feb 3, 2002
Messages
121
Helped
4
Reputation
6
Reaction score
1
Trophy points
1,298
Activity points
1,008
atmega8 interrupts

take a look at the application notes from atmel

Interrupt driven UART:

http://www.atmel.com/dyn/resources/prod_documents/DOC0952.PDF

Source:
http://www.atmel.com/dyn/resources/prod_documents/avr304.asm

Polled Mode:
http://www.atmel.com/dyn/resources/prod_documents/DOC0952.PDF

Source:
http://www.atmel.com/dyn/resources/prod_documents/avr305.asm

With the AVR Studio u can develop our program and test it with the simulator

i think you'll get good information
on http://www.avrfreaks.org
 

mesfet

Full Member level 2
Joined
Jan 4, 2002
Messages
131
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
1,111
ntc atmega

Thanks revolt. Your information is really useful!!
 

revolt

Full Member level 2
Joined
Feb 3, 2002
Messages
121
Helped
4
Reputation
6
Reaction score
1
Trophy points
1,298
Activity points
1,008
uart programming for atmega8

i can also offer some code with C and UART. are you interested ... ?
 

sc/mp

Full Member level 2
Joined
Feb 10, 2002
Messages
128
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,298
Activity points
1,054
atmega8 interrupt driven usart

Not a direct answer to your post , but I suggest to links :

www.microsyl.com (free bootloader Megaload V.20 for mega series)
www.avrfreaks.net

Regards
 

mesfet

Full Member level 2
Joined
Jan 4, 2002
Messages
131
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
1,111
serial port atmega8 programming

Hi Revolt,

Of course, could you please PM me or send me e-mail about the code.

Thanks.

mesfet+
 

mesfet

Full Member level 2
Joined
Jan 4, 2002
Messages
131
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
1,111
atmega8 uart asm

Hi SC/MP,

Your information is helpful. I am now studying the boot loader.

mesfet+
 

vasia_uvi

Junior Member level 1
Joined
Apr 4, 2006
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,426
atmega assembler

I want to transmit with the serial communication(UART) the data providet by the NTC and/or light sensor from my AVR Butterfly to the PC. Anyone have or know the asm or C code to do that?I have to use AVR Studio4 or CodeVision?
10x
 

felipe_montoya

Newbie level 1
Joined
Mar 30, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
atmega8 uart assembler code

hi guys i need your help

i have a ATMEGA8-16PI already programmed, and i want to extract from it the corresponding code because i want another PIC with the same code and features for a college project.

how i could extract the code from it in order to program another ATMEGA8-16PI 28 pins?

any suggestion will be welcome
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top