an_compare.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  over_current_t

Functions

void AN_compare_init (void)
 variable used to monitor over-current conditions an_compare_init() initate the analog comparator to detect Over-currents Initialize Analog comparator:
  • Disable AIN0 and AIN1 (resp. PD6 and PD7) digital input buffers
  • Enable analog comparator to generates output toggle interrupts


Variables

over_current_t over_current


Function Documentation

void AN_compare_init ( void   ) 

variable used to monitor over-current conditions an_compare_init() initate the analog comparator to detect Over-currents Initialize Analog comparator:

Definition at line 53 of file an_compare.c.

Referenced by main().

00054 {
00055   DIDR1 = (1<<AIN1D) | (1<<AIN0D);  // Disable digital buffers on AIN1 and AIN0
00056                                     // to reduce power consumption
00057   ACSR  = (1<<ACIE);                // Enable Analog comparator interrupts
00058                                     // on compare output toggle
00059 }


Variable Documentation

over_current_t over_current

Definition at line 44 of file an_compare.c.


Generated on Wed Mar 14 10:53:32 2007 for Mega88_&_ATA6824_High_temperature_H-Bridge_system by  doxygen 1.4.7