BÀI TẬP LẬP TRÌNH CHO DSPIC

5 430 3
BÀI TẬP LẬP TRÌNH CHO DSPIC

Đang tải... (xem toàn văn)

Thông tin tài liệu

2. Chương trình include p30fxxxx.h include define Fcy 4000000 unsigned int dem=0,enco = 25; unsigned int temp=0,td,count; _FOSC(CSW_FSCM_OFF HS); _FWDT(WDT_OFF); Turn off the WatchDog Timer. _FBORPOR(MCLR_EN PWRT_OFF); Enable MCLR reset pin and turn off the define LED1 PORTDbits.TRISD0 define LED2 PORTDbits.TRISD1 define LED3 PORTDbits.TRISD2 define LED4 PORTDbits.TRISD3 unsigned int LED_CODE10 = {0x00C0,0xF9,0x00A4,0x00B0,0x0099,0x0092,0x0082,0x00F8,0x0080,0x0090}; void delay_ms() ham tre mot khoang thoi gian { int i,j; for(i=0;i

Ngày đăng: 01/07/2014, 09:59

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan