Enable all 6 PSC outputs
[PSC Macros]

set all enable in POC register More...

Collaboration diagram for Enable all 6 PSC outputs:


Modules

 Enable all 6 PSC outputs
 set all enable in POC register
 lock the update of duty registers
 unauthorize the update of PSC registers
 unlock the update of duty registers
 authorize the update of PSC registers
 configure the PMIC0 register
 authorize the update of PSC registers
 configure the PMIC1 register
 authorize the update of PSC registers
 configure the PMIC2 register
 authorize the update of PSC registers
 PSC Low Level Fucntions
 PSC Low Level Functions.

Defines

#define PSC_ASYNCHRONOUS_OUTPUT_CONTROL   0
#define PSC_CLOCK_SOURCE_EQ_CLKIO   0
#define PSC_CLOCK_SOURCE_EQ_PLL   1
#define Psc_complete_and_stop()
#define PSC_DISACTIVATE_ALL_OUTPUTS   4
#define PSC_DISACTIVATE_OUTPUT_A   1
#define PSC_DISACTIVATE_OUTPUT_AB   3
#define PSC_DISACTIVATE_OUTPUT_B   2
#define PSC_DIV_CLOCK_BY_256   3
#define PSC_DIV_CLOCK_BY_32   2
#define PSC_DIV_CLOCK_BY_4   1
#define Psc_enable_all_outputs()
#define PSC_INPUT_FILTER_DISABLE   0
#define PSC_INPUT_FILTER_ENABLE   1
#define PSC_INPUT_HALT   6
#define PSC_INPUT_NO_ACTION   0
#define PSC_MODE_CENTERED   1
#define PSC_MODE_ONE_RAMP   0
#define PSC_NODIV_CLOCK   0
#define PSC_OUTPUT_HIGH   1
#define PSC_OUTPUT_LOW   0
#define PSC_OVERLAP_DISABLE   0
#define PSC_OVERLAP_ENABLE   1
#define Psc_run()
#define Psc_select_outputs(val2B, val2A, val1B, val1A, val0B, val0A)
#define Psc_stop()
#define PSC_SYNCHRONOUS_OUTPUT_CONTROL   1
#define PSC_USE_COMPARATOR   1
#define PSC_USE_HIGH_LEVEL   1
#define PSC_USE_LOW_LEVEL   0
#define PSC_USE_PIN   0

Detailed Description

set all enable in POC register

Define Documentation

#define PSC_ASYNCHRONOUS_OUTPUT_CONTROL   0

Definition at line 227 of file psc_drv.h.

#define PSC_CLOCK_SOURCE_EQ_CLKIO   0

Definition at line 206 of file psc_drv.h.

#define PSC_CLOCK_SOURCE_EQ_PLL   1

Definition at line 207 of file psc_drv.h.

 
#define Psc_complete_and_stop (  ) 

Value:

PCTL = (PSC_PRESCALER<<PPRE0)| \
          (PSC_CLOCK_SOURCE<<PCLKSEL)| \
            (1<<PCCYC)| \
          (0<<PRUN);

Definition at line 124 of file psc_drv.h.

#define PSC_DISACTIVATE_ALL_OUTPUTS   4

Definition at line 234 of file psc_drv.h.

#define PSC_DISACTIVATE_OUTPUT_A   1

Definition at line 231 of file psc_drv.h.

#define PSC_DISACTIVATE_OUTPUT_AB   3

Definition at line 233 of file psc_drv.h.

#define PSC_DISACTIVATE_OUTPUT_B   2

Definition at line 232 of file psc_drv.h.

#define PSC_DIV_CLOCK_BY_256   3

Definition at line 212 of file psc_drv.h.

#define PSC_DIV_CLOCK_BY_32   2

Definition at line 211 of file psc_drv.h.

#define PSC_DIV_CLOCK_BY_4   1

Definition at line 210 of file psc_drv.h.

 
#define Psc_enable_all_outputs (  ) 

Value:

POC = (1<<POEN2B)| \
         (1<<POEN2A)| \
           (1<<POEN1B)| \
           (1<<POEN1A)| \
         (1<<POEN0B)| \
         (1<<POEN0A);

Definition at line 77 of file psc_drv.h.

#define PSC_INPUT_FILTER_DISABLE   0

Definition at line 224 of file psc_drv.h.

#define PSC_INPUT_FILTER_ENABLE   1

Definition at line 225 of file psc_drv.h.

Referenced by PSC_Init().

#define PSC_INPUT_HALT   6

Definition at line 235 of file psc_drv.h.

#define PSC_INPUT_NO_ACTION   0

Definition at line 230 of file psc_drv.h.

Referenced by PSC_Init().

#define PSC_MODE_CENTERED   1

Definition at line 201 of file psc_drv.h.

#define PSC_MODE_ONE_RAMP   0

Definition at line 200 of file psc_drv.h.

#define PSC_NODIV_CLOCK   0

Definition at line 209 of file psc_drv.h.

#define PSC_OUTPUT_HIGH   1

Definition at line 204 of file psc_drv.h.

#define PSC_OUTPUT_LOW   0

Definition at line 203 of file psc_drv.h.

#define PSC_OVERLAP_DISABLE   0

Definition at line 215 of file psc_drv.h.

#define PSC_OVERLAP_ENABLE   1

Definition at line 216 of file psc_drv.h.

Referenced by PSC_Init().

 
#define Psc_run (  ) 

Value:

PCTL = (PSC_PRESCALER<<PPRE0)| \
          (PSC_CLOCK_SOURCE<<PCLKSEL)| \
            (0<<PCCYC)| \
          (1<<PRUN);

Definition at line 104 of file psc_drv.h.

Referenced by PSC_Init().

#define Psc_select_outputs ( val2B,
val2A,
val1B,
val1A,
val0B,
val0A   ) 

Value:

POC = (val2B<<POEN2B)| \
         (val2A<<POEN2A)| \
           (val1B<<POEN1B)| \
           (val1A<<POEN1A)| \
         (val0B<<POEN0B)| \
         (val0A<<POEN0A);

Definition at line 91 of file psc_drv.h.

 
#define Psc_stop (  ) 

Value:

PCTL = (PSC_PRESCALER<<PPRE0)| \
          (PSC_CLOCK_SOURCE<<PCLKSEL)| \
            (0<<PCCYC)| \
          (0<<PRUN);

Definition at line 114 of file psc_drv.h.

#define PSC_SYNCHRONOUS_OUTPUT_CONTROL   1

Definition at line 228 of file psc_drv.h.

Referenced by PSC_Init().

#define PSC_USE_COMPARATOR   1

Definition at line 219 of file psc_drv.h.

Referenced by PSC_Init().

#define PSC_USE_HIGH_LEVEL   1

Definition at line 222 of file psc_drv.h.

Referenced by PSC_Init().

#define PSC_USE_LOW_LEVEL   0

Definition at line 221 of file psc_drv.h.

Referenced by PSC_Init().

#define PSC_USE_PIN   0

Definition at line 218 of file psc_drv.h.

Referenced by PSC_Init().


Generated on Wed Oct 22 15:04:01 2008 for AVR172 : Atmel BLDC control on ATAVRMC310 with ATmega32M1 by  doxygen 1.5.7.1