��θ�׃N76E003���l��HIRC�������ڸ���(zh��n)�_��UART��ݔ?
N76E003��HIRC�l�ʞ�16 MHz��������ƫ����1%�ԃ�(n��i)����(d��ng)����38400����baud rate��UART��ݔ�r(sh��)����(hu��)��?y��n)?6 MHz�o�����l��38400 Hz���l�������baud rateƫ���^�����o����(w��n)����ݔ��
�˕r(sh��)�Ñ����Ը���HIRC���l�ʵ�16.588 MHz�����ܮa(ch��n)������(zh��n)��baud rate��
- ����HIRC�l�ʵIJ��E���£�
1. Trim value = RCTRIM0(HIRCTRIM[8:1]) + RCTRIM1(HIRCTRIM[0])��Trim value�C15�����{(di��o)��HIRC���l�ʞ�16.6 MHz��
2. ��Ӌ(j��)��ֵ����RCTRIM0 ��RCTRIM1�������HIRC�ĸ��ĕ�(hu��)������Ч��
3. ÿ����늺�HIRC��(hu��)�֏�(f��)��16 MHz��ʹ������Ҫͨ�^��SFR������HIRC��
4. ����16.588 MHz����Ӌ(j��)��baud rate�����O(sh��)��timer�a(ch��n)����baud rate���ܷ��Ϙ�(bi��o)��(zh��n)baud rate��
- �����������£�
sfr RCTRIM0 = 0x84;
sfr RCTRIM1 = 0x85;
bit BIT_TMP;
#define set_IAPEN BIT_TMP = EA; EA=0; TA=0xAA; TA=0x55; CHPCON |= SET_BIT0; EA= BIT_TMP
#define set_IAPGO BIT_TMP = EA; EA = 0; TA = 0xAA; TA = 0x55; IAPTRG |= SET_BIT0; EA = BIT_TMP
#define clr_IAPEN BIT_TMP = EA; EA = 0; TA = 0xAA; TA = 0x55; CHPCON &= ~SET_BIT0; EA=BIT_TMP
unsigned char hircmap0,hircmap1;
unsigned int trimvalue16bit;
void MODIFY_HIRC_VLAUE(void)
{
set_IAPEN;
IAPAL = 0x30;
IAPAH = 0x00;
IAPCN = READ_UID;
set_IAPGO;
hircmap0 = IAPFD;
IAPAL = 0x31;
IAPAH = 0x00;
set_IAPGO;
hircmap1 = IAPFD;
clr_IAPEN;
trimvalue16bit = ((hircmap0<<1)+(hircmap1&0x01));
trimvalue16bit = trimvalue16bit - 15;
hircmap1 = trimvalue16bit&0x01;
hircmap0 = trimvalue16bit>>1;
TA=0XAA;
TA=0X55;
RCTRIM0 = hircmap0;
TA=0XAA;
TA=0X55;
RCTRIM1 = hircmap1;

����admin ����ĕr(sh��)�g��2018-03-09