KL25Z_STUDY (2) 썸네일형 리스트형 [FRDM-KL25Z] Kinetis - SPI 테스트 [FRDM-KL25Z] Kinetis - SPI 테스트 KL25Z SPI 테스트를 위한 자료 정리 SPI Bus clockBus clock Up to 50 MHz Up to 4 MHz MCGOUTCLK clock divider KL25Z SPI 초기화 함수void SPI0_Init(void){SIM_SCGC5 |= SIM_SCGC5_PORTD_MASK; //Turn on clock to D module SIM_SCGC4 |= SIM_SCGC4_SPI0_MASK; //Enable SPI0 clock _SPI0_IO_INIT();/*PORTD_PCR0 = PORT_PCR_MUX(0x2); //Set PTD0 to mux 2 [SPI0_PCS0] PORTD_PCR1 = PORT_PCR_MUX(0x2); //S.. [FRDM-KL25Z] Kinetis - Timer 테스트 [FRDM-KL25Z] Kinetis - Timer 테스트 KL25Z 타이머 테스트 정리Timer-Six channel Timer/PWM (TPM)-Two 2-channel Timer/PWM (TPM)-Periodic interrupt timers-16-bit low-power timer (LPTMR)-Real-time clock KL25Z 타이머 레지스터PIT_LDVALnTimer Start ValueSets the timer start value. The timer will count down until it reaches 0, then it will generate an interrupt andload this register value again. Writing a new value to this.. 이전 1 다음