PSC0 Ramp Mode Selection
[PSC0 Macros]

Collaboration diagram for PSC0 Ramp Mode Selection:


Detailed Description

PSC0 Ramp Mode Selection

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


Defines

#define Psc0_in_1_ramp_mode()   (PCNF0 &= ~( (1<<PMODE01) | (1<<PMODE00) ) )
#define Psc0_in_2_ramps_mode()
 PSC0 is configured in two ramp mode, it means that the internal counter counts from 0 up to OCR0RA then from 0 to OCR0RB.
#define Psc0_in_4_ramps_mode()
 PSC0 is configured in for ramp mode, it means that the internal counter counts from 0 up to OCR0SA then from 0 to OCR0RA then from 0 to OCR0SB then from 0 to OCR0RB.
#define Psc0_in_centered_aligned_mode()   (PCNF0 |= ( (1<<PMODE01) | (1<<PMODE00) ) )
 PSC0 is configured in for ramp mode, it means that the internal counter counts from 0 up to OCR0RB then from OCR0RB downto 0.


Define Documentation

 
#define Psc0_in_1_ramp_mode (  )     (PCNF0 &= ~( (1<<PMODE01) | (1<<PMODE00) ) )

Definition at line 111 of file psc_drv.h.

 
#define Psc0_in_2_ramps_mode (  ) 

Value:

(PCNF0 &= ~(1<<PMODE01),                                           \
            PCNF0 |=  (1<<PMODE00) )
PSC0 is configured in two ramp mode, it means that the internal counter counts from 0 up to OCR0RA then from 0 to OCR0RB.

Definition at line 115 of file psc_drv.h.

 
#define Psc0_in_4_ramps_mode (  ) 

Value:

(PCNF0 |=  (1<<PMODE01),                                           \
            PCNF0 &= ~(1<<PMODE00) )
PSC0 is configured in for ramp mode, it means that the internal counter counts from 0 up to OCR0SA then from 0 to OCR0RA then from 0 to OCR0SB then from 0 to OCR0RB.

Definition at line 120 of file psc_drv.h.

 
#define Psc0_in_centered_aligned_mode (  )     (PCNF0 |= ( (1<<PMODE01) | (1<<PMODE00) ) )

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

Definition at line 125 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