eZdspLF2407A 보드
아래 문서는 스펙트럼 디지털 사에서 내려 받은 자료와 Ti에서 받은 자료임
http://c2000.spectrumdigital.com/ezlf2407a/
ezDsp 에뮬레이터 설치 방법
ezDSP2407 보드 사용법
ezDsp 리얼타임 예제 설명서
리얼타임 예제파일
code composer 3.1, 3.3 버젼 설치 폴더안에 들어있는거랑 차이가 있음
jtag 관련 예제 파일
setup_sdtsrvExamples_eZdsp2000_v303003.zip
///////////////////////////////////////////////////////////////////////////////////
April 4, 2001:
“Debugging Your C24x™ DSP Design Using Code
Composer Studio™ Real-Time Monitor”
2407A 예제 파일
SPI.asm Program to output serial data through the SPI port
SCI.asm Program to check the SCI module in 240xA
PC_ECHO.asm Program to echo received characters back to the source
ADC.asm Program to check ADC of 240xA
GPIO_OUT.asm Program that checks GPIO pins of 240xA as outputs
GPIO_IN.asm Program that checks GPIO pins of 240xA as inputs
REM_ANS.asm
REM_REQ.asm
Programs that perform RTR (Remote Transmission Request) operations in the
CAN module
EV_T1INT.asm Program to check the operation of timer 1 in EVA
CAP.asm Program to check the operation of capture units in the EV modules
이 예제 파일은 아래 spru357c 파일 안의 어셈블리 소스코드를 코드콤포져에서 막바로 사용할 수 있도록
만들었다. 다 만들지는 않고 6개정도??
///////////////////////////////////////////////////////////////////////////////////
예제로 배우는 제어용 DSP 책내용 중 추천 도서
TMS320LF/LC240xA DSP Controllers Reference Guide
spru357c(240x controllers refer guide).pdf
TMS320LF2407, TMS320LF2406, TMS320LF2402 DSP CONTROLLERS
(SPRS094I)
TMS320 DSP Algorithm Standard API Reference
SPRU360B
TMS320 DSP Algorithm Standard Rules And Guidelines
SPRU352D
TMS320C2x/C2xx/C5x Optimizing C compiler User's Guide
SPRU024E
TMS320C2xx/TMS320C24x Code composer User's Guide
SPRU490
TMS320F/C24x DSP Controllers CPU and Instruction Set Reference Guide
SPRU160C
///////////////////////////////////////////////////////////////////////////////////
예제로 배우는 제어용 DSP( 성안당) 부록 CD
소스코드
개발환경설정용 파일
개발환경 설정용 파일 라이브러리중에 rts2xxF.lib는 부트로더로 프로그램을 다운로드 받을 때 필요로 함
에뮬레이터 사용시는 불필요
Boot.asm 수정하기
1.dspar -x rts.src boot.asm 해서 boot.asm 을 추출한다
2. boot.asm 소스에 수정을 한다
3. dspar -v2xx boot.asm 해서 boot.asm 파일 어셈블한다 => boot.obj 파일 생성
4. dspar -r rts2xx.lib boot.obj 실행하면 수정된 boot.asm 내용이 런타임 라이브러리에 적용된다
boot.asm 수정하여 .const 섹션 복사하기
CONST_COPY .set 0
CONST_COPY .set 1 // .const 섹션의 내용을 플래시 메모리에 가지고 있다가 프로그램 시작시에 데이터 영역에 복사해 주는 기능 수행
이렇게 수정하여 완성된 라이브러리 rts2xxF.lib
링커 커맨드 파일 수정하기
SECTIONS
{
....
.....
.const : load = FLASH PAGE 0, run = SARAM PAGE 1
{
__const_run = .;
*(.c_mark)
*(.const)
__const_length = .- __const_run;
}
....
....
}
아래는 첨부된 소스코드 예제를 테스트 해 본 영상임
이건 PWM 예제를 테스트한 동영상
30khz 듀티비는 10% 또는 20%인데
PWM1, PWM2 포트에서 위상이 반대로 출력되는걸 확인
시리얼 통신 예제 테스트한거
a 문자 누르면 led가 토글되면서 문자 전송이 되고 다른 문자는 그냥 에코만 됨
ezdsp2407a 보드에는 통신 관련 회로가 빠져있어서 너굴팬더님이 만든 usb2serial 모듈에 연결
해서 잘 사용하고 있음.