Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
BigBang12
PostPosted: Apr 15, 2012 - 08:58 PM
Newbie


Joined: Apr 15, 2012
Posts: 2


Short question about the analog digital converter on ATmega 328p. What does the ACIC bit in the the Analog Comparator Control and Status Register (ACSR) do? I don't understand the explanation in the manual and i don't find any answers on the internet.

Thank you for your answers in advance!
 
 View user's profile Send private message  
Reply with quote Back to top
jgmdesign
PostPosted: Apr 15, 2012 - 09:06 PM
Raving lunatic


Joined: Apr 20, 2007
Posts: 6063
Location: Long Island New York

Right out of the datasheet:

Quote:
• Bit 2 – ACIC: Analog Comparator Input Capture Enable
When written logic one, this bit enables the input capture function in Timer/Counter1 to be triggered
by the Analog Comparator. The comparator output is in this case directly connected to the
input capture front-end logic, making the comparator utilize the noise canceler and edge select
features of the Timer/Counter1 Input Capture interrupt. When written logic zero, no connection
between the Analog Comparator and the input capture function exists. To make the comparator
trigger the Timer/Counter1 Input Capture interrupt, the ICIE1 bit in the Timer Interrupt Mask
Register (TIMSK1) must be set.


What do you not understand?
The key explanation is:
Quote:
When written logic one, this bit enables the input capture function in Timer/Counter1 to be triggered
by the Analog Comparator.

_________________
Jim

I have decided that I am no longer going to plan anything in advance. In a court of law this is called Pre-Meditated, and does not look good for the defense.....

Timer function not working properly? Check CLKDIV8 Fuse first Wink
 
 View user's profile Send private message  
Reply with quote Back to top
theusch
PostPosted: Apr 15, 2012 - 09:09 PM
10k+ Postman


Joined: Feb 19, 2001
Posts: 25891
Location: Wisconsin USA

Quote:

Analog comparator question

Quote:

the analog digital converter

Which subsystem are you interested in?

OK, I've reviewed the ACIC bit description. Indeed, I've used it in the past. It allows input capture at other than logic 0/1 but rather at analog comparator voltage "trip" level. What don't you understand? What has piqued your interest in this particular feature?
 
 View user's profile Send private message  
Reply with quote Back to top
BigBang12
PostPosted: Apr 15, 2012 - 09:33 PM
Newbie


Joined: Apr 15, 2012
Posts: 2


lol I got it now...it's so obvious. I feel kinda stupid...
thank's for your answer
 
 View user's profile Send private message  
Reply with quote Back to top
jgmdesign
PostPosted: Apr 15, 2012 - 11:12 PM
Raving lunatic


Joined: Apr 20, 2007
Posts: 6063
Location: Long Island New York

Well would you like to share your revalation with the rest of us? Someone else may have the same question in the future and see this post

_________________
Jim

I have decided that I am no longer going to plan anything in advance. In a court of law this is called Pre-Meditated, and does not look good for the defense.....

Timer function not working properly? Check CLKDIV8 Fuse first Wink
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits