LCD.c |
#include "LCD.h"
GPIOG_BRR = LCD_EN ; //EN clear for(iCnt = 0; LCD_DELAY - LCD_DELAY1> iCnt; ++iCnt); //시간지연 GPIOG_BSRR = LCD_EN ; //EN set for(iCnt = 0; LCD_DELAY - LCD_DELAY2 > iCnt; ++iCnt); //시간지연 GPIOG_BRR = (0xFF << LCD_BS); // BUS clear GPIOG_BSRR = (ucdata<<LCD_BS); // BUS data input for(iCnt = 0; LCD_DELAY - LCD_DELAY3 > iCnt; ++iCnt); //시간지연 GPIOG_BRR = LCD_EN ; //EN clear for(iCnt = 0; LCD_DELAY - LCD_DELAY4 > iCnt; ++iCnt); //시간지연
GPIOG_BRR = LCD_EN ; //EN clear for(iCnt = 0; LCD_DELAY - LCD_DELAY1> iCnt; ++iCnt); //시간지연 GPIOG_BSRR = LCD_EN ; //EN set for(iCnt = 0; LCD_DELAY - LCD_DELAY2 > iCnt; ++iCnt); //시간지연 GPIOG_BRR = (0xFF << LCD_BS); // BUS clear GPIOG_BSRR = (ucdata<<LCD_BS); // BUS data input for(iCnt = 0; LCD_DELAY - LCD_DELAY3 > iCnt; ++iCnt); //시간지연 GPIOG_BRR = LCD_EN ; //EN clear for(iCnt = 0; LCD_DELAY - LCD_DELAY4 > iCnt; ++iCnt); //시간지연
void LCD_String(void *vp) while(1) return;
|
LCD.h |
#ifndef _LCD_H_ #define IOPG (8) //GPIOG(0x40012000) #define GPIOG_CRL (*((volatile unsigned int *)(0x40012000)))
#define LCD_CLEAR 0x01 //0000 0001, P13, 화면 클리어
void LCD_Cmd_write (unsigned char); void LCD_Data_write (unsigned char); void LCD_String(void *); void LCD_Number(unsigned int, unsigned short); #endif //_LCD_H_ |
'코스웨어 > 13년 스마트컨트롤러' 카테고리의 다른 글
bitmap(HSCROLL)전체 소스입니다. (0) | 2013.10.25 |
---|---|
bimap(HSCROLL)파일입니다. (0) | 2013.10.25 |
Cortex-ARM USART_BRR 값 구하는 과정 (0) | 2013.10.25 |
비트맵 색 이래저래 바꾸어 출력하기 - 조유진 (0) | 2013.10.23 |
소코반 - 손초롱 (1) | 2013.10.22 |
Cortex-M3 LED 깜빡이기 (0) | 2013.10.22 |
Cortex-M3 LED 켜기 (0) | 2013.10.22 |
WndProc (0) | 2013.10.21 |