PSC2 Ramp Mode Selection
[PSC2 Macros]

Collaboration diagram for PSC2 Ramp Mode Selection:


Detailed Description

PSC2 Ramp Mode Selection

PSC2 is configured in one ramp mode, it means that the internal counter counts from 0 up to OCR2RB.


Defines

#define Psc2_in_1_ramp_mode()   (PCNF2 &= ~( (1<<PMODE21) | (1<<PMODE20) ) )
#define Psc2_in_2_ramps_mode()
 PSC2 is configured in two ramp mode, it means that the internal counter counts from 0 up to OCR2RA then from 0 to OCR2RB.
#define Psc2_in_4_ramps_mode()
 PSC2 is configured in for ramp mode, it means that the internal counter counts from 0 up to OCR2SA then from 0 to OCR2RA then from 0 to OCR2SB then from 0 to OCR2RB.
#define Psc2_in_centered_aligned_mode()   (PCNF2 |= ( (1<<PMODE21) | (1<<PMODE20) ) )
 PSC2 is configured in for ramp mode, it means that the internal counter counts from 0 up to OCR2RB then from OCR2RB downto 0.


Define Documentation

 
#define Psc2_in_1_ramp_mode (  )     (PCNF2 &= ~( (1<<PMODE21) | (1<<PMODE20) ) )

Definition at line 528 of file psc_drv.h.

 
#define Psc2_in_2_ramps_mode (  ) 

Value:

(PCNF2 &= ~(1<<PMODE21),                                           \
            PCNF2 |=  (1<<PMODE20) )
PSC2 is configured in two ramp mode, it means that the internal counter counts from 0 up to OCR2RA then from 0 to OCR2RB.

Definition at line 532 of file psc_drv.h.

 
#define Psc2_in_4_ramps_mode (  ) 

Value:

(PCNF2 |=  (1<<PMODE21),                                           \
            PCNF2 &= ~(1<<PMODE20) )
PSC2 is configured in for ramp mode, it means that the internal counter counts from 0 up to OCR2SA then from 0 to OCR2RA then from 0 to OCR2SB then from 0 to OCR2RB.

Definition at line 537 of file psc_drv.h.

 
#define Psc2_in_centered_aligned_mode (  )     (PCNF2 |= ( (1<<PMODE21) | (1<<PMODE20) ) )

PSC2 is configured in for ramp mode, it means that the internal counter counts from 0 up to OCR2RB then from OCR2RB downto 0.

Definition at line 542 of file psc_drv.h.


Generated on Wed Jul 12 16:55:33 2006 for Atmel BLDC Sensorless on ATAVRMC100 by  doxygen 1.4.7