|
1. STN LCD GPG32201, 2 . ³¾ß ¸ð³ë LTD79W298L30GK,
3. ³¾ß Ä®¶ó STN-LCD(320*240) LCBA7Z211M4 (VEEÀÇ Àü¾ÐÀÇ °æ¿ì 20V~24Á¤µµ)
1.D7, 2.D6, 3.D5, 4.D4, 5.D3, 6.D2, 7.D1, 8.D0, 9.GND, 10.3.3V, 11.DIS/OFF, 12.CL2, 13.CL1, 14. FLM, 15.GND,16.VEE
ÅÍÄ¡ => 1.MX, 2.PY, 3.PX, 4.MY
*****************************************************************************************************************
1. ELM205-LV ¸ÞÄ«´ÏÁò + ÄÁÆ®·Ñ º¸µå ·Î ÀÌ·ç¾îÁ® ÀÖ´Ù.
2. ÄÁÆ®·Ñ º¸µå ÇÉ ¹øÈ£. 1.5V , 2 .5V, 3 .GND, 4.GND, 5.GND 6, TX, 7.RX, 7.RTS
1. 5V´Â ÃÖ¼Ò 1A ÀÌ»óÀ¸·Î ¿¬°áÇÏ°í, 6.TX´Â PC Åë½ÅÆ÷Æ® 3¹ø 7.RX´Â PC Åë½ÅÆ÷Æ® 2¹ø 3.GND´Â PC Åë½ÅÆ÷Æ® 5¹øÀ¸·Î
¿¬°áÇÑ´Ù.
¾Æ·¡ ÇÁ·Î±×·¥À» ½ÇÇà½ÃÄÑ Åë½Å¼Óµµ¸¦ 38400 À¸·Î ¼³Á¤ÇÏ°í ¸Þ´ºÀ§ÀÇ Test ¸¦ Ŭ¸¯ÇÏ¸é ¾Æ·¡ ±×¸² ó·³ ÇÁ¸°ÅÍ°¡ µÈ´Ù. .
¿ÞÂÊ ±×¸²Àº Thermal printer ( ELM205-LV ¸ÞÄ«´ÏÁò + ÄÁÆ®·Ñ º¸µå )¸¦ ³ªÅ¸³»°í, ¿À¸¥ÂÊÀº ÄÉÀ̽º¸¦ ¾º¿î °ÍÀÌ°í À§ÀÇ ÇÁ·Î±×·¥À» ½ÇÇà ÇØ Ãâ·ÂÇÑ °ÍÀÌ´Ù.
SnPComm.zip Åë½ÅÇÁ·Î±×·¥ ½ÇÇàÆÄÀÏ
vb-program.zip Åë½ÅÇÁ·Î±×·¥ VB ¼Ò½º ´Ù¿î¹Þ±â(1234)
ÇÁ·Î±×·¥À¸·Î ÀÛ¼ºÇÏ¿© PC Æ÷Æ® ´ë½Å ¸¶ÀÌÄÄ Åë½Å Æ÷Æ®·Î Thermal printer ¸¦ Ãâ·ÂÇÒ ¼ö ÀÖ´Ù.
¿¹ Á¦
#include <avr/io.h>
#include <stdio.h>
#include <avr/pgmspace.h>
#define CR 0x0A
#define LF 0x0D
#define NOTHING 0x00
//#define ESC 0x1B
//#define ! 0x21
//#define Baud4800 207
//#define Baud9600 71 //=>11.0592M , 16M => 103
#define Baud384000 17 //35
void TX0_char(unsigned char data) /* transmit a character by USART0 */
{
while((UCSR0A & 0x20) == 0x00); // data register empty ?
UDR0 = data;
}
void TX0_string(unsigned char *string) /* transmit a string by USART0 */
{
while(*string != '')
{ TX0_char(*string);
string++;
}
}
int main(void)
{
// unsigned char RXD;
UBRR0H = 0; // 38400 bps
UBRR0L = 71;
UCSR0A = 0x00; // asynchronous normal mode
UCSR0B = 0x18; // interrupt diable, 8 data
UCSR0C = 0x06; // no parity, 1 stop, 8 data
TX0_string(" 2010.4.19 ");
TX0_char(0x0D); TX0_char(0x0A); Delay_ms(800);
TX0_string(" Test1 ");
TX0_char(0x1B); TX0_char(0x21); TX0_char(0x20);
TX0_char(0x0D); TX0_char(0x0A); Delay_ms(800);
TX0_string(" Test2 ");
TX0_char(0x1D); TX0_char(0x42); TX0_char(0x00);
TX0_char(0x0D); TX0_char(0x0A); Delay_ms(800);
while(1){}
}
*****************************************************************************************************************
Signal.zip ¿µ»ó ÇÁ·Î±×·¥ ½ÇÇàÆÄÀÏ
wincap ÇÁ·Î±×·¥Àº VC++ ·Î ÀÛ¼ºµÇ¾î ÀÖ´Ù. USB Ä«¸Þ¶ó·Î ºÎÅÍ ¹ÞÀº À̹ÌÁö¸¦ µð½ºÇ÷¹ÀÌ ÇÑ´Ù.
*****************************************************************************************************************
ÇÚµåÆù LCD ±âÁ¾ S020xxx, PH88xxxx, L2F50xxx
À§ ±×¸²Àº "Hello World" µð½ºÇ÷¹ÀÌ
Avr Studio ¼Ò½ºÇÁ·Î±×·¥ Download
Çϵå¿þ¾î ¼± ¿¬°áÇϱâ
|