PSC2 Mode Control
[PSC2 Macros]

Collaboration diagram for PSC2 Mode Control:


Detailed Description

PSC2 Mode Control.


Defines

#define Disable_psc2_autolock_mode()   (PCNF2 &= ~(1<<PALOCK2) )
 The update will be procced according to PLOCK2 bit.
#define Disable_psc2_fifty_percent_mode()   (PCNF2 &= ~(1<<PFIFTY2) )
 OCR2R/SAH/L and OCR2R/SBH/L are fully independant.
#define Enable_psc2_autolock_mode()   (PCNF2 |= (1<<PALOCK2) )
 OCR2R/SAH/L and OCR2R/SBH/L can be written without disturbing the PSC cycle. The update of these registers will be proceed at the end of the PSC cycle if the OCR2RB has been last written.
#define Enable_psc2_fifty_percent_mode()   (PCNF2 |= (1<<PFIFTY2) )
 PSC2 is in 50% mode: Only OCR2RBH/L and OCR2SBH/L are used. They are duplicated in OCR2R/SAH/L during the update of OCR2BH/L.
#define Lock_psc2_compare_values()   (PCNF2 |= (1<<PLOCK2) )
 Take care that the lock is active only if you have disabled the autolock mode.
#define Update_psc2_compare_values()   (PCNF2 &= ~(1<<PLOCK2) )
 The compare registers will be updated with the content of OCR2AH/L and OCR2BH.


Define Documentation

 
#define Disable_psc2_autolock_mode (  )     (PCNF2 &= ~(1<<PALOCK2) )

The update will be procced according to PLOCK2 bit.

Definition at line 473 of file psc_drv.h.

 
#define Disable_psc2_fifty_percent_mode (  )     (PCNF2 &= ~(1<<PFIFTY2) )

OCR2R/SAH/L and OCR2R/SBH/L are fully independant.

Definition at line 470 of file psc_drv.h.

 
#define Enable_psc2_autolock_mode (  )     (PCNF2 |= (1<<PALOCK2) )

OCR2R/SAH/L and OCR2R/SBH/L can be written without disturbing the PSC cycle. The update of these registers will be proceed at the end of the PSC cycle if the OCR2RB has been last written.

Definition at line 472 of file psc_drv.h.

 
#define Enable_psc2_fifty_percent_mode (  )     (PCNF2 |= (1<<PFIFTY2) )

PSC2 is in 50% mode: Only OCR2RBH/L and OCR2SBH/L are used. They are duplicated in OCR2R/SAH/L during the update of OCR2BH/L.

Definition at line 469 of file psc_drv.h.

 
#define Lock_psc2_compare_values (  )     (PCNF2 |= (1<<PLOCK2) )

Take care that the lock is active only if you have disabled the autolock mode.

Definition at line 475 of file psc_drv.h.

 
#define Update_psc2_compare_values (  )     (PCNF2 &= ~(1<<PLOCK2) )

The compare registers will be updated with the content of OCR2AH/L and OCR2BH.

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