用单片机怎么分两屏显示学号和生日,单片机怎么显示文字?求各位大神

#include <reg51.h>

#define uchar unsigned char
#define uint unsigned int

unsigned char code duan[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,
0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};

void delay (uint i)
{
uint m,n;
for(m=i;m>0;m--)
for(n=200;n>0;n--);
}

void main()
{
uint j;
while(1)
{
for(j=1;j<9;j++)
{
switch(j)
{
case 1: P2=0xfe;P1=duan[3]; break;
case 2: P2=0xfd;P1=duan[1]; break;
case 3: P2=0xfb;P1=duan[9]; break;
case 4: P2=0xf7;P1=duan[4]; break;
case 5: P2=0xef;P1=duan[0]; break;
case 6: P2=0xdf;P1=duan[3]; break;
case 7: P2=0xbf;P1=duan[0]; break;
case 8: P2=0x7f;P1=duan[6]; break;
}
delay(1);
}

这个是数码管,只能显示数字和少数字母,显示方式就是你这个程序里的方式,不停刷新。