본문 바로가기

[MODULE]/MP3

[STR711-S EVM] MP3 Module [VS1003 EVM] 테스트 예제





VS1003 MP3 모듈과 ST ARM7 STR711을 이용한 MP3 Player 테스트 예제 소스코드 이다.


#define VS1003_DREQ_BIT      BIT14
#define VS1003_DREQ_INIT()     GPIO_Config(GPIO1, BIT15, GPIO_IN_TRI_CMOS);
#define VS1003_DREQ()        GPIO_BitRead(GPIO1, 15)

#define VS1003_CS_INIT()     GPIO_Config(GPIO1, BIT14, GPIO_OUT_PP)
#define VS1003_CS_H()      GPIO_BitWrite(GPIO1, 14, 1)
#define VS1003_CS_L()      GPIO_BitWrite(GPIO1, 14, 0)

#define vs1003_enable()      VS1003_CS_L()
#define vs1003_disable()     VS1003_CS_H()

#define VS1003_XDCS_INIT()     GPIO_Config(GPIO1, BIT10, GPIO_OUT_PP)
#define VS1003_XDCS_H()      GPIO_BitWrite(GPIO1, 10, 1)
#define VS1003_XDCS_L()      GPIO_BitWrite(GPIO1, 10, 0)

#define VS1003_RESET_BIT     BIT9
#define VS1003_RESET_INIT()     GPIO_Config(GPIO1, BIT9, GPIO_OUT_PP)
#define VS1003_RESET_H()     GPIO_BitWrite(GPIO1, 9, 1)
#define VS1003_RESET_L()     GPIO_BitWrite(GPIO1, 9, 0)




VS1003 테스트 동영상

반응형