#include<msp430x14x.h>
const char char_tab[42]={'0','1','2','3','4','5','6','7','8','9',
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R',
'S','T','U','V','W','X','Y','Z','$','*',',','.',' '};
//从上之下后从左到右,垂直反转,水平反转
const char zi_fu2[]={
/* [ 0 ] 0 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x0F, 0xE0, 0x10, 0x10, 0x20, 0x08,
0x20, 0x08, 0x10, 0x10, 0x0F, 0xE0, 0x00, 0x00,
/* [ 1 ] 1 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00,
0x3F, 0xF8, 0x20, 0x10, 0x20, 0x10, 0x00, 0x00,
/* [ 2 ] 2 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x30, 0x70, 0x21, 0x88, 0x22, 0x08,
0x24, 0x08, 0x28, 0x08, 0x30, 0x70, 0x00, 0x00,
/* [ 3 ] 3 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x0E, 0x30, 0x11, 0x48, 0x20, 0x88,
0x20, 0x88, 0x20, 0x08, 0x18, 0x30, 0x00, 0x00,
/* [ 4 ] 4 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x24, 0x00, 0x3F, 0xF8, 0x24, 0x10,
0x24, 0x20, 0x04, 0xC0, 0x07, 0x00, 0x00, 0x00,
/* [ 5 ] 5 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x0E, 0x08, 0x11, 0x08, 0x20, 0x88,
0x20, 0x88, 0x21, 0x08, 0x19, 0xF8, 0x00, 0x00,
/* [ 6 ] 6 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x0E, 0x00, 0x11, 0x18, 0x20, 0x88,
0x20, 0x88, 0x11, 0x10, 0x0F, 0xE0, 0x00, 0x00,
/* [ 7 ] 7 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x08, 0x00, 0x38, 0x00, 0xC8,
0x3F, 0x08, 0x00, 0x08, 0x00, 0x38, 0x00, 0x00,
/* [ 8 ] 8 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x1C, 0x70, 0x22, 0x88, 0x21, 0x08,
0x21, 0x08, 0x22, 0x88, 0x1C, 0x70, 0x00, 0x00,
/* [ 9 ] 9 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x0F, 0xE0, 0x11, 0x10, 0x22, 0x08,
0x22, 0x08, 0x31, 0x10, 0x00, 0xE0, 0x00, 0x00,
/* [ A ] 字体:宋体 8*16点阵 编码4 */
0x20, 0x00, 0x38, 0x00, 0x27, 0x00, 0x02, 0xE0,
0x02, 0x38, 0x23, 0xC0, 0x3C, 0x00, 0x20, 0x00,
/* [ B ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x0E, 0x00, 0x11, 0x70, 0x20, 0x88,
0x20, 0x88, 0x20, 0x88, 0x3F, 0xF8, 0x20, 0x08,
/* [ C ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x08, 0x38, 0x10, 0x08, 0x20, 0x08,
0x20, 0x08, 0x20, 0x08, 0x18, 0x30, 0x07, 0xC0,
/* [ D ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x0F, 0xE0, 0x10, 0x10, 0x20, 0x08,
0x20, 0x08, 0x20, 0x08, 0x3F, 0xF8, 0x20, 0x08,
/* [ E ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x18, 0x10, 0x20, 0x08, 0x23, 0xE8,
0x20, 0x88, 0x20, 0x88, 0x3F, 0xF8, 0x20, 0x08,
/* [ F ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x03, 0xE8,
0x00, 0x88, 0x20, 0x88, 0x3F, 0xF8, 0x20, 0x08,
/* [ G ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x02, 0x00, 0x1E, 0x38, 0x22, 0x08,
0x20, 0x08, 0x20, 0x08, 0x18, 0x30, 0x07, 0xC0,
/* [ H ] 字体:宋体 8*16点阵 编码4 */
0x20, 0x08, 0x3F, 0xF8, 0x21, 0x08, 0x01, 0x00,
0x01, 0x00, 0x21, 0x08, 0x3F, 0xF8, 0x20, 0x08,
/* [ I ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x00, 0x20, 0x08, 0x20, 0x08,
0x3F, 0xF8, 0x20, 0x08, 0x20, 0x08, 0x00, 0x00,
/* [ J ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x7F, 0xF8,
0x80, 0x08, 0x80, 0x08, 0x80, 0x00, 0xC0, 0x00,
/* [ K ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x20, 0x08, 0x38, 0x18, 0x26, 0x28,
0x01, 0xC0, 0x20, 0x88, 0x3F, 0xF8, 0x20, 0x08,
/* [ L ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x30, 0x00, 0x20, 0x00, 0x20, 0x00,
0x20, 0x00, 0x20, 0x08, 0x3F, 0xF8, 0x20, 0x08,
/* [ M ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x20, 0x08, 0x3F, 0xF8, 0x00, 0xF8,
0x3F, 0x00, 0x00, 0xF8, 0x3F, 0xF8, 0x20, 0x08,
/* [ N ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x08, 0x3F, 0xF8, 0x18, 0x08, 0x07, 0x00,
0x00, 0xC0, 0x20, 0x30, 0x3F, 0xF8, 0x20, 0x08,
/* [ O ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x0F, 0xE0, 0x10, 0x10, 0x20, 0x08,
0x20, 0x08, 0x20, 0x08, 0x10, 0x10, 0x0F, 0xE0,
/* [ P ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0xF0, 0x01, 0x08, 0x01, 0x08,
0x01, 0x08, 0x21, 0x08, 0x3F, 0xF8, 0x20, 0x08,
/* [ Q ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x4F, 0xE0, 0x50, 0x10, 0x38, 0x08,
0x24, 0x08, 0x24, 0x08, 0x18, 0x10, 0x0F, 0xE0,
/* [ R ] 字体:宋体 8*16点阵 编码4 */
0x20, 0x00, 0x30, 0x70, 0x0C, 0x88, 0x03, 0x88,
0x00, 0x88, 0x20, 0x88, 0x3F, 0xF8, 0x20, 0x08,
/* [ S ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x1C, 0x38, 0x22, 0x08, 0x21, 0x08,
0x21, 0x08, 0x20, 0x88, 0x38, 0x70, 0x00, 0x00,
/* [ T ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x18, 0x00, 0x08, 0x20, 0x08,
0x3F, 0xF8, 0x20, 0x08, 0x00, 0x08, 0x00, 0x18,
/* [ U ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x08, 0x1F, 0xF8, 0x20, 0x08, 0x20, 0x00,
0x20, 0x00, 0x20, 0x08, 0x1F, 0xF8, 0x00, 0x08,
/* [ V ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x08, 0x00, 0x38, 0x01, 0xC8, 0x0E, 0x00,
0x38, 0x00, 0x07, 0x88, 0x00, 0x78, 0x00, 0x08,
/* [ W ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x03, 0xF8, 0x3C, 0x08, 0x07, 0x00,
0x00, 0xF8, 0x07, 0x00, 0x3C, 0x08, 0x03, 0xF8,
/* [ X ] 字体:宋体 8*16点阵 编码4 */
0x20, 0x08, 0x30, 0x18, 0x2C, 0x68, 0x03, 0x80,
0x03, 0x80, 0x2C, 0x68, 0x30, 0x18, 0x20, 0x08,
/* [ Y ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x08, 0x00, 0x38, 0x20, 0xC8,
0x3F, 0x00, 0x20, 0xC8, 0x00, 0x38, 0x00, 0x08,
/* [ Z ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x18, 0x08, 0x20, 0x38, 0x20, 0xC8,
0x21, 0x08, 0x26, 0x08, 0x38, 0x08, 0x20, 0x10,
/* [ $ ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x00, 0x1E, 0x30, 0x21, 0x08,
0xFF, 0xFC, 0x20, 0x88, 0x18, 0x70, 0x00, 0x00,
/* [ * ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x02, 0x40, 0x02, 0x40, 0x01, 0x80,
0x0F, 0xF0, 0x01, 0x80, 0x02, 0x40, 0x02, 0x40,
/* [ , ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x70, 0x00, 0xB0, 0x00, 0x80, 0x00,
/* [ . ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00,
/* [ ] 字体:宋体 8*16点阵 编码4 */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
const char zi_fu3[]={
/* 0v 0 */
0x00,0xF8,0x08,0x08,0x08,0x08,0x08,0x08,
0x08,0x08,0x08,0x08,0x08,0x38,0x20,0xe0,
0x00,0x1F,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x1c,0x04,0x07,
/* 1v 0 */
0x00,0xF8,0xf8,0x08,0x08,0x08,0x08,0x08,
0x08,0x08,0x08,0x08,0x08,0x38,0x20,0xe0,
0x00,0x1F,0x1f,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x1c,0x04,0x07,
/* 2v 0 */
0x00,0xF8,0xf8,0xf8,0x08,0x08,0x08,0x08,
0x08,0x08,0x08,0x08,0x08,0x38,0x20,0xe0,
0x00,0x1F,0x1f,0x1f,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x1c,0x04,0x07,
/* 3v 0 */
0x00,0xF8,0xf8,0xf8,0xf8,0x08,0x08,0x08,
0x08,0x08,0x08,0x08,0x08,0x38,0x20,0xe0,
0x00,0x1F,0x1f,0x1f,0x1f,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x1c,0x04,0x07,
/* 4v 0 */
0x00,0xF8,0xf8,0xf8,0xf8,0xf8,0x08,0x08,
0x08,0x08,0x08,0x08,0x08,0x38,0x20,0xe0,
0x00,0x1F,0x1f,0x1f,0x1f,0x1f,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x1c,0x04,0x07,
/* 5v 0 */
0x00,0xF8,0xf8,0xf8,0xf8,0xf8,0xf8,0x08,
0x08,0x08,0x08,0x08,0x08,0x38,0x20,0xe0,
0x00,0x1F,0x1f,0x1f,0x1f,0x1f,0x1f,0x10,
0x10,0x10,0x10,0x10,0x10,0x1c,0x04,0x07,
/* 6v 0 */
0x00,0xF8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,
0x08,0x08,0x08,0x08,0x08,0x38,0x20,0xe0,
0x00,0x1F,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,
0x10,0x10,0x10,0x10,0x10,0x1c,0x04,0x07,
/* 7v 0 */
0x00,0xF8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,
0xf8,0x08,0x08,0x08,0x08,0x38,0x20,0xe0,
0x00,0x1F,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,
0x1f,0x10,0x10,0x10,0x10,0x1c,0x04,0x07,
/* 8v 0 */
0x00,0xF8,0xf8,0xf8,0xf8,0xf8,0