[TI]/LuminaryMicro2008. 11. 6. 16:55

Luminary Micro 클럭설정 관련 자료

Luminary Micro 클럭설정 관련 자료

ex) Lib함수 이용 클럭 설정
// Set the clocking to run directly from the crystal.
SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_8MHZ);


RCGC2 (Run Mode Clock Gating Control Register 2 , offset 0x108)
ex) GPIO 클럭 설정
    SYSCTL_RCGC2_R = SYSCTL_RCGC2_GPIOF;
 
 
 
 
 
//*****************************************************************************
// The following are defines for the bit fields in the SYSCTL_RCGC2 register.
//*****************************************************************************
#define SYSCTL_RCGC2_GPIOH      0x00000080  // Port H Clock Gating Control.
#define SYSCTL_RCGC2_GPIOG      0x00000040  // Port G Clock Gating Control.
#define SYSCTL_RCGC2_GPIOF      0x00000020  // Port F Clock Gating Control.
#define SYSCTL_RCGC2_GPIOE      0x00000010  // Port E Clock Gating Control.
#define SYSCTL_RCGC2_GPIOD      0x00000008  // Port D Clock Gating Control.
#define SYSCTL_RCGC2_GPIOC      0x00000004  // Port C Clock Gating Control.
#define SYSCTL_RCGC2_GPIOB      0x00000002  // Port B Clock Gating Control.
#define SYSCTL_RCGC2_GPIOA      0x00000001  // Port A Clock Gating Control.
Posted by nexp

댓글을 달아 주세요