Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Atmega8 sound generation 19Khz

Status
Not open for further replies.

d_a_l_3

Junior Member level 1
Joined
Jun 8, 2007
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Croatia
Activity points
1,387
Hi to all

After reading all documents and tutorials still need help around 19KHz sound generation
I have Atmega8 (can be Atmega168) and flow is next
It should generate 500ms quiet and 1000ms of sound
rising edge must be under 100ms
Untitled.jpg

Can someone help me with this (I'm not so good with timers) that is main problem

Thx
 
Last edited:

Hi
you can use the CTC mode Of Avr Timers To generate a Continual 19KHz Square Wave
then you can Control This Signal By an And Gate in Output of the microcontroller
or you can control this signal by Enable or Disabling of Wave Generator Output Enable Bit
Good luck
 

Use the CMO (Compare, Match, Output) module of the ATMEGA8 for PWM and generate a signal of 19kHz with a duty cycle of 66.7%.

You can also just use software delays if the ATMEGA8 isn't doing much else.

Hope this helps.
Tahmid.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top