07-12-2011, 11:21 PM | #1 |
Nhập môn đệ tử
Tham gia ngày: Mar 2011
Bài gửi: 5
: |
Avr convert ccs sử dụng cho pic 16f877a
có ai dịch dùm mình đoạn Code này sang ccs k??
#include <mega128.h> #include <delay.h> // Alphanumeric LCD Module functions #asm .equ __lcd_port=0x15 ;PORTC #endasm #include <lcd.h> void main(void) { PORTA=0x00; DDRA=0xFF; // Port C initialization // Func7=Out Func6=Out Func5=Out Func4=Out Func3=Out Func2=Out Func1=Out Func0=Out // State7=1 State6=1 State5=1 State4=0 State3=1 State2=0 State1=1 State0=0 PORTC=0x00; DDRC=0x00; // LCD module initialization lcd_init(16); lcd_clear(); lcd_putsf("Chay"); delay_ms(1000); lcd_clear(); lcd_putsf("PORT C xai dc"); while (1) { }; } |
|
|