PSC1 Ramp Mode Selection
[PSC1 Macros]

Collaboration diagram for PSC1 Ramp Mode Selection:


Detailed Description

PSC1 Ramp Mode Selection

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


Defines

#define Psc1_in_1_ramp_mode()   (PCNF1 &= ~( (1<<PMODE11) | (1<<PMODE10) ) )
#define Psc1_in_2_ramps_mode()
 PSC1 is configured in two ramp mode, it means that the internal counter counts from 0 up to OCR1RA then from 0 to OCR1RB.
#define Psc1_in_4_ramps_mode()
 PSC1 is configured in for ramp mode, it means that the internal counter counts from 0 up to OCR1SA then from 0 to OCR1RA then from 0 to OCR1SB then from 0 to OCR1RB.
#define Psc1_in_centered_aligned_mode()   (PCNF1 |= ( (1<<PMODE11) | (1<<PMODE10) ) )
 PSC1 is configured in for ramp mode, it means that the internal counter counts from 0 up to OCR1RB then from OCR1RB downto 0.


Define Documentation

 
#define Psc1_in_1_ramp_mode (  )     (PCNF1 &= ~( (1<<PMODE11) | (1<<PMODE10) ) )

Definition at line 320 of file psc_drv.h.

 
#define Psc1_in_2_ramps_mode (  ) 

Value:

(PCNF1 &= ~(1<<PMODE11),                                           \
            PCNF1 |=  (1<<PMODE10) )
PSC1 is configured in two ramp mode, it means that the internal counter counts from 0 up to OCR1RA then from 0 to OCR1RB.

Definition at line 324 of file psc_drv.h.

 
#define Psc1_in_4_ramps_mode (  ) 

Value:

(PCNF1 |=  (1<<PMODE11),                                           \
            PCNF1 &= ~(1<<PMODE10) )
PSC1 is configured in for ramp mode, it means that the internal counter counts from 0 up to OCR1SA then from 0 to OCR1RA then from 0 to OCR1SB then from 0 to OCR1RB.

Definition at line 329 of file psc_drv.h.

 
#define Psc1_in_centered_aligned_mode (  )     (PCNF1 |= ( (1<<PMODE11) | (1<<PMODE10) ) )

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

Definition at line 334 of file psc_drv.h.


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