Microsoft Word - ~ doc

Size: px
Start display at page:

Download "Microsoft Word - ~ doc"

Transcription

1 RTC( 實時時鐘 ) 功能使用方法 1 適用產品 :SM59R16A5/ SM59R09A5/ SM59R05A5 2 RTC 使用說明 : 1. 建內一組 RTC, 時間具有秒 分 時 日 星期 月 年 2. RTC 晶振選用 KHz, 匹配電容建議使用 25pF, 或依實際晶振做調教 3. 二種中斷, 分別, 為 period interrupt 和 ALARM interrupt, 且共用 interrupt vector(8bh) 32768Hz devider RTC counter Second (0~59) RTC counter Minute (0~59) RTC counter Hour (0~23) RTC counter Day (1~31) RTC counter Month (1~12) RTC counter Year (00~99) RTC counter Week Alarm Reg. (Min, Hour, Day, Week, Month) Compare logic Alarm INT Periodical INT Counter (0.5 Sec) Periodical INT Counter (1 Sec) Periodical INT Counter (0.5Min) Periodical INT Counter (1 Min) Periodical INT Counter (0.5 Hour) Periodical INT Counter (1 Hour) Periodical INT 實時時鐘與相關暫存器控制圖 ( 一 ) 實時時鐘與相關暫存器控制圖 ( 二 ) ISSFA Ver.A 2010/06

2 4. RTC 功能在硬件規劃時必須注意, 依系統選用內振和外振會有差異, 如下說明 : 使用 RTC 功能, 且系統使用外部晶振時 : 使用 RTC 功能, 且系統使用內部晶振時 : RTC 晶振則使用 #16 及 #17 系統晶振腳位使用 #18 和 #19 RTC 晶振則使用 #18 及 #19 建議電路如下圖 : 建議電路如下圖 : F RTC X32OUT/WR/P3.6 X32IN/RD/P3.7 X32OUT/P5.4/XTAL2 X32IN/P5.5/XTAL RTC 相關暫存器 : Mnemonic Description Direct Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 RESET RTC RTCADDR RTC 地址 9Eh RTCADDR[3:0] 00H RTCDATA RTC 數據 9Fh RTCDATA[7:0] 00H Mnemonic Description Address Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 RESET RTC function RTCCTRL RTC 控制暫存器 00h RTCen PeriodIF ALARMInten ALARMIF PeriodIntEn INT_SEL[2:0] 00h SEC RTC 秒暫存器 01h - SEC[6:4] SEC[3:0] 00h MIN RTC 分暫存器 02h - MIN[6:4] MIN[3:0] 00h HOUR RTC 時暫存器 03h - - HOUR[5:4] HOUR[3:0] 00h DAY RTC 日暫存器 04h - - DAY[5:4] DAY[3:0] 01h WEEK RTC 星期暫存器 05h WEEK[2:0] 06h ISSFA Ver.A 2010/06

3 MONTH RTC 月暫存器 06h MONTH[4] MONTH[3:0] 01h YEAR RTC 年暫存器 07h YEAR[7:4] YEAR[3:0] 00h ALMMIN RTC 分示警 08h MINen ALMMIN[6:4] ALMMIN[3:0] 00h ALMHOUR RTC 時示警 09h HOURen - ALMHOUR[5:4] ALMHOUR[3:0] 00h ALMDAY RTC 日示警 10h DAYen - ALMDAY[5:4] ALMDAY[3:0] 00h ALMWEEK RTC 星期示警 11h WEEKen ALMWEEK[2:0] 00h ALMMONT MONTHe RTC 月示警 12h H n - - ALMMONTH[4] ALMMONTH[3:0] 00h Mnemonic: RTCCTRL Address: 00H RTCen PeriodIF ALARMInten ALARMIF PeriodIntEn INT_SEL[2:0] 00h RTCen: RTC 電路啟動位元 0: 禁止 1: 啟動 PeriodIF: 週期性中斷旗標位元 1: RTC 中斷由週期性中斷旗標位元產生. 他必須由軟體清零. ALARMInten: 示警中斷啟動位元當示警數值與 RTC 數值相等時將產生示警中斷. 0: 示警中斷禁止 1: 示警中斷啟動 ALARMIF: 示警中斷旗標位元 1: RTC 中斷由示警中斷產生. 他必須由軟體清零. PeriodIntEn: 週期性中斷啟動位元 0: 禁止 1: 啟動 INT_SEL[2:0]: RTC 週期性中斷之週期由 INT_SEL[2:0] 選擇 000: 設定為每經過 0.5 秒產生週期性中斷 001: 設定為每經過 1 秒產生週期性中斷 010: 設定為每經過 0.5 分產生週期性中斷 011: 設定為每經過 1 分產生週期性中斷 100: 設定為每經過 0.5 小時產生週期性中斷 101: 設定為每經過 1 小時產生週期性中斷附注 : 週期性中斷的計數將從 RTC 暫存器寫入的值開始計數. 舉例來說, 現在時間為 3:23, 我們設定 INT_SEL[2:0] 為 0.5 小時 ; 第一個週期性中斷將在 3:53 產生, 不是 3:30 Mnemonic: SEC Address: 01H SEC[6:4] SEC[3:0] 00H SEC[6:0]: 以 BCD 格式顯示目前秒數, 區間為 0~59 秒. SEC[6:4]: 此 3 位代表秒之十位. SEC[3:0]: 此 4 位代表秒之個位. ISSFA Ver.A 2010/06

4 Mnemonic: MIN Address: 02H MIN[6:4] MIN[3:0] 00H MIN[6:0]: 以 BCD 格式顯示目前分鐘數, 區間為 0~59 分鐘. MIN[6:4]: 此 3 位代表分鐘之十位. MIN[3:0]: 此 4 位代表分鐘之個位. Mnemonic: HOUR Address: 03H HOUR[5:4] HOUR[3:0] 00H HOUR[5:0]: 以 BCD 格式顯示目前時數, 區間為 0~23 小時. HOUR[5:4]: 此 2 位代表時之十位. HOUR[3:0]: 此 4 位代表時之個位. Mnemonic: DAY Address: 04H DAY[5:4] DAY[3:0] 00H DAY[5:0]: 以 BCD 格式顯示目前日期, 區間為 0~31 日. DAY[5:4]: 此 2 位代表日期之十位. DAY[3:0]: 此 4 位代表日期之個位. Mnemonic: WEEK Address: 05H WEEK[2:0] 00H WEEK[2:0]: 顯示目前星期. 此暫存器必須由使用者自行填入, 並不會於填入年月日後自動產生. 000: 星期日 001: 星期一 010: 星期二 011: 星期三 100: 星期四 101: 星期五 110: 星期六 Mnemonic: MONTH Address: 06H MONTH[4] MONTH[3:0] 00H MONTH[4:0]: 以 BCD 格式顯示目前月份, 區間為 1~12 月. MONTH[4]: 此位代表月之十位. MONTH[3:0]: 此 4 位代表月之個位. ISSFA Ver.A 2010/06

5 Mnemonic: YEAR Address: 07H YEAR[7:4] YEAR[3:0] 00H YEAR[7:0]: 以 BCD 格式顯示目前年份, 區間為 0~99 年. YEAR[7:4]: 此 4 位代表年之十位. YAER[3:0]: 此 4 位代表年之個位. Mnemonic: ALMMIN Address: 08H MINen ALMMIN[6:4] ALMMIN[3:0] 00H MINen: 分示警啟動位元 0: 禁止 ; ALMMIN[6:0] 填入值不需與 RTC 值比較, 也不會產生示警中斷 (ALARM INT). 1: 啟動 ; ALMMIN[6:0] 填入值需與 RTC 值比較, 並產生示警中斷 (ALARM INT). ALMMIN[6:0]: 以 BCD 格式設定示警中斷之分鐘數, 區間為 0~59 分鐘. ALMMIN[6:4]: 此 3 位設定示警中斷分鐘之十位. ALMMIN[3:0]: 此 4 位設定示警中斷分鐘之個位. Mnemonic: ALMHOUR Address: 09H HOURen ALMHOUR[5:4] ALMHOUR[3:0] 00H HOURen: 時示警啟動位元 0: 禁止 ; ALMHOUR[5:0] 填入值不需與 RTC 值比較, 也不會產生示警中斷 (ALARM INT). 1: 啟動 ; ALMHOUR[5:0] 填入值需與 RTC 值比較, 並產生示警中斷 (ALARM INT). ALMHOUR[5:0]: 以 BCD 格式設定示警中斷之時, 區間為 0~23 時. ALMHOUR[5:4]: 此 2 位代表示警中斷時之十位. ALMHOUR[3:0]: 此 4 位代表示警中斷時之個位. Mnemonic: ALMDAY Address: 10H DAYen - ALMDAY[5:4] ALMDAY[3:0] 00H DAYen: 日示警啟動位元 0: 禁止 ; ALMDAY[5:0] 填入值不需與 RTC 值比較, 也不會產生示警中斷 (ALARM INT). 1: 啟動 ; ALMDAY[5:0] 填入值需與 RTC 值比較, 並產生示警中斷 (ALARM INT). ALMDAY[5:0] 以 BCD 格式設定示警中斷之日期, 區間為 0~31 日. ALMDAY[5:4]: 此 2 位代表示警中斷日期之十位. ALMDAY[3:0]: 此 4 位代表示警中斷日期之個位. Mnemonic: ALMWEEK Address: 11H WEEKen ALMWEEK[2:0] 00H WEEKen: 星期示警啟動位元 0: 禁止 ; ALMWEEK[2:0] 填入值不需與 RTC 值比較, 也不會產生示警中斷 (ALARM INT). ISSFA Ver.A 2010/06

6 1: 啟動 ; ALMWEEK[2:0] 填入值需與 RTC 值比較, 並產生示警中斷 (ALARM INT). ALMWEEK[2:0] 示警星期設定 000: 星期日 001: 星期一 010: 星期二 011: 星期三 100: 星期四 101: 星期五 110: 星期六 Mnemonic: ALMMONTH Address: 12H MONTHen - - ALMMONTH[4] ALMMONTH[3:0] 00H MONTHen: 月示警啟動位元 0: 禁能 ; ALMMONTH[4:0] 填入值不需與 RTC 值比較, 也不會產生示警中斷 (ALARM INT). 1: 啟動 ; ALMMONTH[4:0] 填入值需與 RTC 值比較, 並產生示警中斷 (ALARM INT). ALMMONTH[4:0]: 以 BCD 格式設定示警中斷之月份, 區間為 1~12 月. ALMMONTH[4]: 此位代表示警中斷月之十位. ALMMONTH[3:0]: 此 4 位代表示警中斷月之個位. 4 RTC 中斷 4.1 中斷向量表 (Interrupt vectors table): Interrupt Request Flags Interrupt Vector Interrupt Number Address *(use Keil C Tool) IE0 External interrupt h 0 TF0 Timer 0 interrupt 000Bh 1 IE1 External interrupt h 2 TF1 Timer 1 interrupt 001Bh 3 RI0/TI0 Serial channel 0 interrupt 0023h 4 TF2/EXF2 Timer 2 interrupt 002Bh 5 PWMIF PWM interrupt 0043h 8 SPIIF SPI interrupt 004Bh 9 ADCIF A/D converter interrupt 0053h 10 KBIIF keyboard Interface interrupt 005Bh 11 LVIIF Low Voltage Interrupt 0063h 12 IICIF IIC interrupt 006Bh 13 RI1/TI1 Serial channel 1 interrupt 0083h 16 RTC/ALARM interrupt 008Bh 17 ISSFA Ver.A 2010/06

7 Comparator interrupt 0093h 18 *See Keil C about C51 User s Guide about Interrupt Function description 4.2 中斷相關暫存器 (Interrupt SFR) Mnemonic Description Direct Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 RESET Interrupt IEN0 Interrupt Enable 0 register A8h EA - ET2 ES0 ET1 EX1 ET0 EX0 00h IEN1 Interrupt Enable 1 register B8h EXEN2 - IEIIC IELVI IEKBI IEADC IESPI IEPWM 00h IEN2 Interrupt Enable 2 register 9Ah ECmpI ERTC ES1 00h IRCON Interrupt request register C0H EXF2 TF2 IICIF LVIIF KBIIF ADCIF SPIIF PWMIF 00H IRCON2 Interrupt request register 2 97H CmpIF RTCIF - 00H IP0 Interrupt priority level 0 A9h - - IP0.5 IP0.4 IP0.3 IP0.2 IP0.1 IP0.0 00h IP1 Interrupt priority level 1 B9h - - IP1.5 IP1.4 IP1.3 IP1.2 IP1.1 IP1.0 00h Interrupt Enable 0 register(ien0) Mnemonic: IEN0 Address: A8h EA - ET2 ES0 ET1 EX1 ET0 EX0 00h EA: EA = 0 : disable all interrupt. EA = 1 : enable all interrupt. ET2: ET2 = 0 : 禁能 Timer 2 溢位中斷及 Timer 2 T2EX 外部中斷 (disable Timer 2 overflow interrupt or Timer 2 external reload interrupt.) ET2 = 1 : 致能 Timer 2 溢位中斷及 Timer 2 T2EX 外部中斷 (enable Timer 2 overflow interrupt or Timer 2 external reload interrupt.) ES0: ES0=0 Disable Serial channel 0 interrupt. ES0=1 Enable Serial channel 0 interrupt. ISSFA Ver.A 2010/06

8 ET1: ET1=0 Disable Timer 1 overflow interrupt. ET1=1 Enable Timer 1 overflow interrupt. EX1: EX1=0 Disable external interrupt 1. EX1=1 Enable external interrupt 1. ET0: ET0=0 Disable Timer 0 overflow interrupt. ET0=1 Enable Timer 0 overflow interrupt. EX0: EX0=0 Disable external interrupt 0. EX0=1 Enable external interrupt 0. Interrupt Enable 2 register(ien2) Mnemonic: IE2 Address: 9Ah ECmpI ERTC ES1 00h ECmpI: ECmpI =0 Disable Comparator interrupt. ECmpI =1 Enable Comparator interrupt(include comparator_0 and comparator_1). ERTC: ERTC =0 Disable RTC interrupt. ERTC =1 Enable RTC interrupt(include Periodical and Alarm Int). ES1: ES1=0 Disable Serial channel 1 interrupt. ES1=1 Enable Serial channel 1 interrupt. Interrupt request register 2(IRCON2) Mnemonic: Address: 97h CmpIF RTCIF - 00H RTCIF RTC interrupt flag(include Periodical and Alarm Int). HW will clear this flag automatically when enter interrupt vector. SW can clear this flag also.(in case RTC INT disable) CmpIF Comparator interrupt flag, HW will clear this flag automatically when enter interrupt vector. SW can clear this flag also.(in case analog comparator INT disable) ISSFA Ver.A 2010/06

9 5 Timer 2 中斷應用參考程序及設定 : (1) 中斷致能設定 : IEN2 = 0x02; // Enable RTC_INT. EA = 1; // All interrupt enable RTCADDR = RTCCTRL; RTCDATA = 0xA8; // RTCen=1, ALARMInten=1, PeriodIntEn=1, Period=0.5 sec (2) 中斷程序表示 : void ISR_RTC(void) interrupt 17 RTCADDR = RTCCTRL; if(rtcdata & PeriodIF) // Must clear by software write "0". RTCADDR = RTCCTRL; RTCDATA &= (~PeriodIF); else if(rtcdata & ALARMIF) // Must clear by software write "0". RTCADDR = RTCCTRL; RTCDATA &= (~ALARMIF); // HW will clear this flag automatically. //IRCON2 &= (~RTCIF); ISSFA Ver.A 2010/06

10 6 RTC 範例程式說明 : 6.1 此範例可使用超機終端機做通訊, 並依據操作說明輸入選項及設定即可, 超機終端機請設定如下 : 7 RTC 應用的範例程式 ( 一 ) Description Define // 以下定義已加入 SM59R16A5.h /* RTC Define */ #define RTCCTRL 0 #define RTCSEC 1 #define RTCMIN 2 #define RTCHOUR 3 #define RTCDAY 4 #define RTCWEEK 5 #define RTCMONTH 6 #define RTCYEAR 7 #define RTCALMMIN 8 #define RTCALMHOUR 9 #define RTCALMDAY 10 #define RTCALMWEEK 11 #define RTCALMMONTH 12 #define RTCen 0x80 #define PeriodIF 0x40 #define ALARMInten 0x20 #define ALARMIF 0x10 #define PeriodIntEn 0x08 ISSFA Ver.A 2010/06

11 #define RTCIF 0X02 #define RTC_half_sec 0 #define RTC_one_sec 1 #define RTC_half_min 2 #define RTC_one_min 3 #define RTC_half_hour 4 #define RTC_one_hour 5 Main program #include <stdio.h> #include <SM59R16A5.h> xdata char CMD_001=0, CMD_002=0; xdata char RTC_BFU[13]; xdata char RTC_Period_target=5; xdata char RTC_Period_count=0; #define Pause_RTC_INT() IEN2 &= 0xFD; // Disable RTC_INT. #define Gono_RTC_INT() IEN2 = 0x02; // Enable RTC_INT. /*void delay(int dd) while(dd--); */ void Reset_MCU(void) TAKEY = 0x55; TAKEY = 0xAA; TAKEY = 0x5A; SWRES = 0xFF; void Show_BCD(char dat) putchar((dat>>4) 0x30); putchar((dat&0x0f) 0x30); void Show_Manual(void) printf ("SM59R16A5 RTC manual: \n"); printf ("1. RTC now \n"); printf ("2. SET RTC time\n"); printf ("3. SET Period \n"); printf ("4. ON/OFF Period \n"); printf ("5. SET ALARM \n"); printf ("6. ON/OFF ALARM \n"); printf ("Other. System Reset!! \n"); printf ("Enter:"); void Write_RTC_SFR(char addr, char dat) RTCADDR = addr; RTCDATA = dat; char Read_RTC_SFR(char addr) ISSFA Ver.A 2010/06

12 char dat; RTCADDR = addr; dat = RTCDATA; return dat; void Read_RTC_Now_Time(void) RTC_BFU[RTCYEAR] = Read_RTC_SFR(RTCYEAR); RTC_BFU[RTCMONTH] = Read_RTC_SFR(RTCMONTH); RTC_BFU[RTCDAY] = Read_RTC_SFR(RTCDAY); RTC_BFU[RTCWEEK] = Read_RTC_SFR(RTCWEEK); RTC_BFU[RTCHOUR] = Read_RTC_SFR(RTCHOUR); RTC_BFU[RTCMIN] = Read_RTC_SFR(RTCMIN); RTC_BFU[RTCSEC] = Read_RTC_SFR(RTCSEC); void Show_RTC_Now_Time(void) printf("rtc Now:\t"); Read_RTC_Now_Time(); Show_BCD( 0x20 ); // year Show_BCD( RTC_BFU[RTCYEAR] ); putchar(0x2f); // / Show_BCD( RTC_BFU[RTCMONTH] ); // month putchar(0x2f); // / Show_BCD( RTC_BFU[RTCDAY] ); // day putchar(0x20); // SPACE putchar(0x28); // ( Show_BCD( RTC_BFU[RTCWEEK] ); // week putchar(0x29); // ) printf("\t"); // tab Show_BCD( RTC_BFU[RTCHOUR] ); // hour putchar(0x3a); // : Show_BCD( RTC_BFU[RTCMIN] ); // min putchar(0x3a); // : Show_BCD( RTC_BFU[RTCSEC] ); // sec printf("\n"); void Show_RTC_ALARM_Set(void) RTCADDR = RTCCTRL; if(rtcdata&0x20) printf("alarm Status:\tON\n"); else printf("alarm Status:\tOFF\n"); printf("alarm Setting:\tYYYY/MM/DD(week)hr:min\n"); printf("\t\t"); Show_BCD( 0x20 ); // year RTCADDR = RTCYEAR; Show_BCD( RTCDATA ); putchar(0x2f); // / Show_BCD(Read_RTC_SFR(RTCALMMONTH) & 0x1F); // month putchar(0x2f); // / ISSFA Ver.A 2010/06

13 Show_BCD(Read_RTC_SFR(RTCALMDAY) & 0x3F ); putchar(0x20); // day // SPACE putchar(0x28); // ( Show_BCD(Read_RTC_SFR(RTCALMWEEK) & 0x07 ); // week putchar(0x29); // ) printf("\t"); // tab Show_BCD(Read_RTC_SFR(RTCALMHOUR) & 0x3F ); // hour putchar(0x3a); // : Show_BCD(Read_RTC_SFR(RTCALMMIN) & 0x07 ); // min printf("\n"); void SET_Period(void) // char h_dat, l_dat; Show_RTC_Now_Time(); Show_RTC_ALARM_Set(); printf ("\t"); printf ("1. 01 sec \n"); printf ("\t"); printf ("2. 05 sec \n"); printf ("\t"); printf ("3. 10 sec \n"); printf ("\t"); printf ("4. 20 sec \n"); printf ("\t"); printf ("5. 30 sec \n"); printf ("\t"); printf ("6. 60 sec \n"); printf ("\t"); printf ("other. Exit!! \n"); printf ("\t"); printf ("Enter:"); CMD_002 = getchar(); switch (CMD_002) case 0x31: RTC_Period_target= 1;// 01 sec case 0x32: RTC_Period_target= 5;// 05 sec case 0x33: RTC_Period_target=10;// 10 sec case 0x34: RTC_Period_target=20;// 20 sec case 0x35: RTC_Period_target=30;// 30 sec case 0x36: RTC_Period_target=60;// 60 sec default: // end switch void ON_OFF_Period(void) printf ("\t"); printf ("1. Set period interrupt ON \n"); printf ("\t"); printf ("other. Set period interrupt OFF \n"); printf ("\t"); printf ("Enter:"); ISSFA Ver.A 2010/06

14 CMD_002 = getchar(); RTCADDR = RTCCTRL; RTCDATA &= 0xF7; // PeriodIntEn=0 if(cmd_002==0x31) RTCDATA = 0x08; // PeriodIntEn=1 void ON_OFF_ALARM(void) printf ("\t"); printf ("1. Set ALARM ON \n"); printf ("\t"); printf ("other. Set ALARM OFF \n"); printf ("\t"); printf ("Enter:"); CMD_002 = getchar(); RTCADDR = RTCCTRL; RTCDATA &= 0xDF; // ALARMIntEn=0 if(cmd_002==0x31) RTCDATA = 0x20; // ALARMIntEn=1 void SET_RTC_Time(void) char h_dat, l_dat; while(1) Show_RTC_Now_Time(); printf ("\t"); printf ("<Which one is your choice?>\n"); printf ("\t"); printf ("1. Year \n"); printf ("\t"); printf ("2. Month \n"); printf ("\t"); printf ("3. Day \n"); printf ("\t"); printf ("4. Week \n"); printf ("\t"); printf ("5. Hour \n"); printf ("\t"); printf ("6. Minute \n"); printf ("\t"); printf ("7. Second \n"); printf ("\t"); printf ("other. Exit!!\n"); printf ("\t"); printf ("Enter:"); CMD_002 = getchar(); if(cmd_002<0x31 CMD_002>0x37) switch (CMD_002) case 0x31: printf ("\tyear:"); Write_RTC_SFR(RTCYEAR, (h_dat<<4) l_dat ); case 0x32: printf ("\tmonth:"); Write_RTC_SFR(RTCMONTH, (h_dat<<4) l_dat ); case 0x33: printf ("\tday:\n"); ISSFA Ver.A 2010/06

15 Write_RTC_SFR(RTCDAY, (h_dat<<4) l_dat ); case 0x34: printf ("\tweek:"); Write_RTC_SFR(RTCWEEK, (getchar()-0x30) 0x80); case 0x35: printf ("\thour:"); Write_RTC_SFR(RTCHOUR, (h_dat<<4) l_dat 0x80); case 0x36: printf ("\tminute:"); Write_RTC_SFR(RTCMIN, (h_dat<<4) l_dat 0x80); case 0x37: printf ("\tsecond:"); Write_RTC_SFR(RTCSEC, (h_dat<<4) l_dat 0x80); default: // end switch // end while(1) void SET_ALARM(void) char h_dat, l_dat; while(1) Show_RTC_Now_Time(); Show_RTC_ALARM_Set(); printf ("\t"); printf ("<Which one is your choice?>\n"); printf ("\t"); printf ("1. Month \n"); printf ("\t"); printf ("2. Day \n"); printf ("\t"); printf ("3. Week \n"); printf ("\t"); printf ("4. Hour \n"); printf ("\t"); printf ("5. Minute \n"); printf ("\t"); printf ("Other. Exit!!\n"); printf ("\t"); printf ("Enter:"); CMD_002 = getchar(); if(cmd_002<0x31 CMD_002>0x35) switch (CMD_002) ISSFA Ver.A 2010/06

16 case 0x31: printf ("\tmonth:"); Write_RTC_SFR(RTCALMMONTH, (h_dat<<4) l_dat 0x80); case 0x32: printf ("\tday:"); Write_RTC_SFR(RTCALMDAY, (h_dat<<4) l_dat 0x80); case 0x33: printf ("\tweek:"); Write_RTC_SFR(RTCALMWEEK, (getchar()-0x30) 0x80); case 0x34: printf ("\thour:"); Write_RTC_SFR(RTCALMHOUR, (h_dat<<4) l_dat 0x80); case 0x35: printf ("\tminute:"); Write_RTC_SFR(RTCALMMIN, (h_dat<<4) l_dat 0x80); default: // end switch // end while(1) void Init_UART(void) SCON = 0x50; //SCON: serail mode 1, 8-bit UART, enable receive TMOD = 0x20; /* TMOD: timer 1, mode 2, 8-bit reload */ PCON = 0x80; //SMOD = 1; // TH1 = 0xD0; //Baud:2400 fosc= mhz OK! // TH1 = 0xFE; //Baud:57600 fosc= mhz OK! TH1 = 0xFF; //Baud: fosc= mhz OK! // TH1 = 0xFF; //Baud:57600 fosc= mhz OK! TCON= 0x40; //timer 1 run TI = 1; /*TI: set TI to send first char of UART for Printf("")*/ // EA = 1; //all interrupt enable // ES = 1; //UART enable void Init_RTC(void) ISSFA Ver.A 2010/06

17 IEN2 = 0x02; // Enable RTC_INT. // IEN2 &= 0xFD; // Disable RTC_INT. EA = 1; // All interrupt enable // RTCADDR = RTCCTRL; // RTCDATA = 0x81; // RTCen=1, ALARMInten=0, PeriodIntEn=0, Period= 1 sec Write_RTC_SFR(RTCCTRL, RTCen RTC_one_sec ); Write_RTC_SFR( RTCYEAR, (0x10)); Write_RTC_SFR( RTCMONTH, (0x05)); Write_RTC_SFR( RTCDAY, (0x01)); Write_RTC_SFR( RTCWEEK, (0x06)); Write_RTC_SFR( RTCALMMONTH, (0x05)); Write_RTC_SFR( RTCALMDAY, (0x01)); Write_RTC_SFR( RTCALMWEEK, (0x06)); void ISR_RTC(void) interrupt 17 RTCADDR = RTCCTRL; if(rtcdata & PeriodIF) RTC_Period_count++; if(rtc_period_count >= RTC_Period_target) printf ("\n<rtc Period ISR occur> "); Show_RTC_Now_Time(); RTC_Period_count =0; RTCADDR = RTCCTRL; RTCDATA &= (~PeriodIF); // Must clear by software write "0". // else if(rtcdata & ALARMIF) if(rtcdata & ALARMIF) printf("\n<rtc ALARM ISR occur>"); Show_RTC_Now_Time(); Show_Manual(); RTCADDR = RTCCTRL; RTCDATA &= (~ALARMIF); // Must clear by software write "0". //IRCON2 &= (~RTCIF); //RTCIF=0;// HW will clear this flag automatically. void main(void) Init_UART(); putchar(0x31); printf("\n"); putchar(0x32); printf("\n"); putchar(0x33); printf("\n"); Init_RTC(); Show_RTC_Now_Time(); Show_RTC_ALARM_Set(); while(1) ISSFA Ver.A 2010/06

18 Show_Manual(); CMD_001 = getchar(); printf ("\n\n"); Pause_RTC_INT(); switch (CMD_001) case 0x31: Show_RTC_Now_Time(); case 0x32: SET_RTC_Time(); case 0x33: SET_Period(); case 0x34: ON_OFF_Period(); case 0x35: SET_ALARM(); case 0x36: ON_OFF_ALARM(); default: Reset_MCU(); //end switch //printf("\n"); CMD_001=0; Gono_RTC_INT(); ISSFA Ver.A 2010/06

Microsoft Word - ~ doc

Microsoft Word - ~ doc 1 適用產品 : 1.1 SM59R16A5/ SM59R09A5/ SM59R05A5/ SM59R16A3/ SM59R09A3/ SM59R05A3 1.2 SM59R16G6/ SM59R09G6/ SM59R05G6 1.3 SM59R04A2/ SM59R04A1/ SM59R03A1/ SM59R02A1 1.4 SM59R16A2/ SM59R08A2 2 UART 差異如下說明 :

More information

Microsoft Word - ~ doc

Microsoft Word - ~ doc 1 适用产品 : 1.1 SM59R16A5/ SM59R09A5/ SM59R05A5/ SM59R16A3/ SM59R09A3/ SM59R05A3 1.2 SM59R16G6/ SM59R09G6/ SM59R05G6 1.3 SM59R04A2/ SM59R04A1/ SM59R03A1/ SM59R02A1 1.4 SM59R16A2/ SM59R08A2 2 UART 差异如下说明 :

More information

6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C C C51 C51 ANSI C MCS-51 C51 ANSI C C C51 bit Byte bit sbit

6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C C C51 C51 ANSI C MCS-51 C51 ANSI C C C51 bit Byte bit sbit 6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C51 6.1 C51 6.1.1 C51 C51 ANSI C MCS-51 C51 ANSI C C51 6.1 6.1 C51 bit Byte bit sbit 1 0 1 unsigned char 8 1 0 255 Signed char 8 11 128

More information

Microsoft Word - ISSFA-0237_A_SM39R_series_EEPROM_APN_TC_.doc

Microsoft Word - ISSFA-0237_A_SM39R_series_EEPROM_APN_TC_.doc EEPROM 功能使用方法 1 適用產品 : 1.1 SM39R16A2/ SM39R12A2/ SM39R08A2 1.2 SM39R4051/ SM39R2051 1.3 SM39R04G1/ SM39R02G1 2 EEPROM 功能概述 : 2.1 使用 code flash 模擬為 Internal EEPROM, 在程序執行時, 可將 code flash 作為 data flash 儲存資料使用

More information

Microsoft Word - IRFWX-A078_A_SM59R08A2_SM59R16A2_IIC APN_SC_.doc

Microsoft Word - IRFWX-A078_A_SM59R08A2_SM59R16A2_IIC APN_SC_.doc 1 适用产品 :SM59R16A2 / SM59R08A2 2 IIC 使用概述 : 2.1 IIC module 硬件使用 SCL (clock) 及 SDA (data) 两条线 2.2 速度 :SCL 最高可达 400Kbps( 可由软件设定 SFR IICBR[2:0]) 2.3 IIC 可选择 master 或 slave 两种模式 2.4 提供中断 (RXIF, TXIF) 及两组控制地址使用

More information

Microsoft Word - ISSFA-0109_B_SM59264_WDT_ APN_TC_.doc

Microsoft Word - ISSFA-0109_B_SM59264_WDT_ APN_TC_.doc Watch Dog Timer () 功能使用說明 ( 使用內部 250KHz) 適用產品 :SM59264 SM59128 SM8954A SM8958A SM89516A SM894051 SM79108 SM79164 SM59D03/04G2 應用說明 : 1 針對使用新茂 (SyncMOS)MCU, 如有因程式設計之關係, 需防止當機之發生時, 可啟動 Watch Dog 功能, 以防止當機之發生

More information

Microsoft Word - ISSFA-0177_A_SM59R_series_SPI_APN_TC_.doc

Microsoft Word - ISSFA-0177_A_SM59R_series_SPI_APN_TC_.doc SPI 功能使用方法 1 適用產品 : 1.1 SM59R16A2/ SM59R08A2 1.2 SM59R16A5/ SM59R09A5/SM59R05A5/SM59R16A3/ SM59R09A3 /SM59R05A3 1.3 SM59R04A2/ SM59R04A1/ SM59R03A1/ SM59R02A1 2 SPI 使用概述 : SPI 通信使用 4 個引腳, 分別為 : SPI_MOSI:

More information

Microsoft Word - ~ doc

Microsoft Word - ~ doc EEPROM 功能使用方法 1 适用产品 : 1.1 SM39R16A2/ SM39R12A2/ SM39R08A2 1.2 SM39R4051/ SM39R2051 1.3 SM39R04G1/ SM39R02G1 2 EEPROM 功能概述 : 2.1 使用 code flash 仿真为 Internal EEPROM, 在程序执行时, 可将 code flash 作为 data flash 储存数据使用

More information

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File 51 C 51 51 C C C C C C * 2003-3-30 pnzwzw@163.com C C C C KEIL uvision2 MCS51 PLM C VC++ 51 KEIL51 KEIL51 KEIL51 KEIL 2K DEMO C KEIL KEIL51 P 1 1 1 1-1 - 1 Project New Project 1 2 Windows 1 3 N C test

More information

W77E58中文手册

W77E58中文手册 W77E58 77E58 8051 8051 8051 77E58 8051 1.5 3 COMS 32K EEPROM 1K SRAM 1 8 2 40M 4 3 8051 4 8051 5 4 8 I/O 6 4 I/O 44 PLCC QFP 7 16 / 8 12 9 10 11 1K 12 13 16 DPTR 14 15 DIP40 W77E58 25/40 PLCC44 W77E58P

More information

Microsoft Word - ISSFA-0227_A_SM39R_series_WDT_APN_TC_.doc

Microsoft Word - ISSFA-0227_A_SM39R_series_WDT_APN_TC_.doc 1 適用產品 : 1.1 SM39R16A2/ SM39R12A2/ SM39R08A2 1.2 SM39R04G1/ SM39R02G1 1.3 SM39R2051/ SM39R4051 2 以下說明適用 :SM39R08/12/16A2/ SM39R02/04G1/ SM39R4051/ SM39R2051: 2.1 WDT 模組之時鐘源為 MCU 內部之 250KHz RC 振盪電路產生 2.2

More information

DPJJX1.DOC

DPJJX1.DOC 8051 111 2K 1 2 3 ' ' 1 CPU RAM ROM / A/D D/A PC CPU 40 68 10 20 8 51 PIII 8051 2 MCS51 8051 8031 89C51 8051 8031 89C51? MCS51 INTEL INTEL 8031 8051 8751 8032 8052 8752 8051 8051 8051 MCS51 8031 8031

More information

P4i45GL_GV-R50-CN.p65

P4i45GL_GV-R50-CN.p65 1 Main Advanced Security Power Boot Exit System Date System Time Floppy Drives IDE Devices BIOS Version Processor Type Processor Speed Cache Size Microcode Update Total Memory DDR1 DDR2 Dec 18 2003 Thu

More information

目录

目录 ALTERA_CPLD... 3 11SY_03091... 3 12SY_03091...4....5 21 5 22...8 23..10 24..12 25..13..17 3 1EPM7128SLC.......17 3 2EPM7032SLC.......18 33HT46R47......19..20 41..20 42. 43..26..27 5151DEMO I/O...27 52A/D89C51...28

More information

Microsoft Word - IRFWX-A124_A_SM59D03G2_SM59D04G2_PCA_ APN_SC_.doc

Microsoft Word - IRFWX-A124_A_SM59D03G2_SM59D04G2_PCA_ APN_SC_.doc 可程序计数数组 (PCA) 功能使用方法 1 适用产品 :SM59D04G2,SM59D03G2 2 应用说明 : PCA 共有五组, 每组皆可工作于以下七种模式 : 捕获模式 - 正缘捕获模式 (Positive edge capture mode) 捕获模式 - 负缘捕获模式 (Negative edge capture mode) 捕获模式 - 正缘及负缘捕获模式 (Both positive

More information

C/C++ - 函数

C/C++ - 函数 C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh

More information

C/C++ - 字符输入输出和字符确认

C/C++ - 字符输入输出和字符确认 C/C++ Table of contents 1. 2. getchar() putchar() 3. (Buffer) 4. 5. 6. 7. 8. 1 2 3 1 // pseudo code 2 read a character 3 while there is more input 4 increment character count 5 if a line has been read,

More information

bingdian001.com

bingdian001.com TSM12M TSM12 STM8L152C6, STM8L152R8 MSP430F5325 whym1987@126.com! /******************************************************************************* * : TSM12.c * : * : 2013/10/21 * : TSM12, STM8L f(sysclk)

More information

51 C 51 isp 10 C PCB C C C C KEIL

51 C 51 isp 10   C   PCB C C C C KEIL http://wwwispdowncom 51 C " + + " 51 AT89S51 In-System-Programming ISP 10 io 244 CPLD ATMEL PIC CPLD/FPGA ARM9 ISP http://wwwispdowncom/showoneproductasp?productid=15 51 C C C C C ispdown http://wwwispdowncom

More information

Microsoft Word - 專題封面.doc

Microsoft Word - 專題封面.doc 逢 甲 大 學 資 訊 工 程 學 系 專 題 研 究 報 告 8051 小 遊 戲 -21 點 指 導 教 授 : 陳 德 生 學 生 : 許 博 益 中 華 民 國 九 十 六 年 六 月 I 目 錄 第 一 章 緒 論 1 1-1 研 究 背 景 1 1-2 研 究 動 機 2 1-3 研 究 目 的 3 1-3-1 21 點 源 起 3 1-3-2 21 點 規 則 3 第 二 章 微 電

More information

Microsoft Word - MSP430 Launchpad 指导书.docx

Microsoft Word - MSP430 Launchpad 指导书.docx Contents 3... 9... 14 MSP430 LAUNCHPAD 指导书 3 第一部分第一个工程 New Project File > New > CCS Project Project name: ButtonLED Device>Family: MSP430 Variant: MSP430G2553 Project templates and examples : Empty Project

More information

SH79F161B I/O 1. SH79F161B SH79F161B IO 30 I/O I/O 4 I/O SH79F161B 30 I/O Px I/O PxCRy I/O PxPCRy x = 0-3 y = IO PxCRy IO x=0-3 y=0-7

SH79F161B I/O 1. SH79F161B SH79F161B IO 30 I/O I/O 4 I/O SH79F161B 30 I/O Px I/O PxCRy I/O PxPCRy x = 0-3 y = IO PxCRy IO x=0-3 y=0-7 SH79F161B - 10 ADC 8051 V 1.0 SH79F161B I/O 1. SH79F161B 8051 8051 SH79F161B IO 30 I/O I/O 4 I/O SH79F161B 30 I/O Px I/O PxCRy I/O PxPCRy x = 0-3 y = 0-7 2. IO PxCRy IO x=0-3 y=0-7 PxPCRy IO x=0-3 y=0-7

More information

untitled

untitled www.mcudriver.cn 1.1 / 1) WinAVR20070525 2) Source Insight 3) ISP 4) PonyProg ISP 5) USB 6) 1.2. MCU ATMEGA16 1.3. AVR8 1.4 LED0~LED7 1 1.5 #include // Program 1.1 LED.C #define uchar unsigned

More information

C/C++ - 文件IO

C/C++ - 文件IO C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;

More information

C语言的应用.PDF

C语言的应用.PDF AVR C 9 1 AVR C IAR C, *.HEX, C,,! C, > 9.1 AVR C MCU,, AVR?! IAR AVR / IAR 32 ALU 1KBytes - 8MBytes (SPM ) 16 MBytes C C *var1, *var2; *var1++ = *--var2; AVR C 9 2 LD R16,-X ST Z+,R16 Auto (local

More information

2 Keil µ vision 2.1 1) Keil µ vision2 V2.34 µ vision3 2) Sino_Keil.exe Keil c:\keil\ 3) JET51 USB PC C:\Keil\ USB PC 4) S-L

2 Keil µ vision 2.1 1) Keil µ vision2 V2.34 µ vision3 2) Sino_Keil.exe   Keil c:\keil\ 3) JET51 USB PC C:\Keil\ USB PC 4) S-L 1 SH88F516 8051 64K FLASH 1024 EEPROM SH88F516 JET51 S-Lab Keil µ vision ISP51 Keil µ vision ISP51 ISP51 PC RS232 MCU SH88F516 SH88F516 1.1 SH88F516 1.1 SH88F516 SH88Fxx: QFP44, DIP40 RAM Flash E2 ADC

More information

Microsoft Word - ISSFA-0134_A_AP_User-definedDownload_SC_.doc

Microsoft Word - ISSFA-0134_A_AP_User-definedDownload_SC_.doc 自定义下载应用说明 一 适用产品 :SM59XX 系列 SM59D XX 系列 SM59R XX 系列二 应用方式 : 可以让使用者自定义 command 作为进入 ISP 刻录的通关指令, 透过 UART 连接 ISAP 软件做联机更新三 操作说明 ( 使用 SM59D04G2 为例 ): 1. ISAP 操作方式 : 1.1 先将主程序及 ISP 服务程序烧进 MCU 中 1.2 将 MCU 放至系统版上,

More information

INCF SEC1,F ; 將 SEC1+1 作查表取回對應數字 MOVF SEC1,W banksel STRING1 banksel PORTB RETFIE run_sec2: MOVF SEC2,W SUBLW.5 GOTO run_min ; 將秒個位數歸 0 CLRF SEC1 MOVL

INCF SEC1,F ; 將 SEC1+1 作查表取回對應數字 MOVF SEC1,W banksel STRING1 banksel PORTB RETFIE run_sec2: MOVF SEC2,W SUBLW.5 GOTO run_min ; 將秒個位數歸 0 CLRF SEC1 MOVL ;************************************************ ; Null Clock REV:1.0 by Jed ; www.xuan.idv.tw ;************************************************ INCLUDE P16F84A.INC LIST P=16F84A,R=Dec CONFIG _XT_OSC&_WDT_OFF

More information

PTS7_Manual.PDF

PTS7_Manual.PDF User Manual Soliton Technologies CO., LTD www.soliton.com.tw - PCI V2.2. - PCI 32-bit / 33MHz * 2 - Zero Skew CLK Signal Generator. - (each Slot). -. - PCI. - Hot-Swap - DOS, Windows 98/2000/XP, Linux

More information

untitled

untitled FBC0409 V1.0 1.0 05.06.22 SIA 2005 SIA SIA SIA SIA SIA 114 86-24-23970133 HTTP://WWW.SIA.CN YANG@SIA.CN 2 ...5...5...6 PIN...6...7 1 CPU...8 2...8 4...8 5 DMA...9 7....9 8...9 9...10 A...10 B...10...11.

More information

PIC_SERVER (11) SMTP ( ) ( ) PIC_SERVER (10) SMTP PIC_SERVER (event driven) PIC_SERVER SMTP 1. E-

PIC_SERVER (11) SMTP  ( ) ( ) PIC_SERVER (10) SMTP  PIC_SERVER (event driven)  PIC_SERVER SMTP  1.  E- (2005-02-01) (2005-04-28) PIC_SERVER (10) SMTP E-mail PIC_SERVER (event driven) E-mail PIC_SERVER SMTP E-mail 1. E-mail E-mail 1 (1) (2) (3) (4) 1 1. 2 E-mail A E-mail B E-mail SMTP(Simple Mail Transfer

More information

新・解きながら学ぶC言語

新・解きながら学ぶC言語 330!... 67!=... 42 "... 215 " "... 6, 77, 222 #define... 114, 194 #include... 145 %... 21 %... 21 %%... 21 %f... 26 %ld... 162 %lf... 26 %lu... 162 %o... 180 %p... 248 %s... 223, 224 %u... 162 %x... 180

More information

IP-Routing-05.pdf

IP-Routing-05.pdf RI P R I P - 2 RIP -1 R I P - 2 DV RIP -1 RIP-2 16... RIP-2 RIP-2 RIP -1 R I P - 2 RIP-2 RIP-2 RIP-2 V L S M disc ontiguous addr ess sp ace C I D R Cla ssless In ter -Dom ain Routing 121 1 2 2 IP RIP-2

More information

1 CPU

1 CPU 2000 Tel 82316285 82317634 Mail liuxd@buaa.edu.cn 1 CPU 2 CPU 7 72 A B 85 15 3 1/2 M301 2~17 : 3/4 1/2 323 IBM PC 1. 2. 3. 1. 2. 3. 1.1 Hardware Software 1.2 M3 M2 M1 1.2 M3 M1 M2 M2 M1 M1 M1 1.2 M3 M1

More information

TPM BIOS Infineon TPM Smart TPM Infineon TPM Smart TPM TPM Smart TPM TPM Advanced Mode...8

TPM BIOS Infineon TPM Smart TPM Infineon TPM Smart TPM TPM Smart TPM TPM Advanced Mode...8 Smart TPM Rev. 1001 Smart TPM Ultra TPM Smart TPM TPM...3 1. BIOS... 3 2. Infineon TPM Smart TPM... 4 2.1. Infineon TPM...4 2.2. Smart TPM...4 3. TPM... 5 3.1. Smart TPM TPM...5 3.2. Advanced Mode...8

More information

P4V88+_BIOS_CN.p65

P4V88+_BIOS_CN.p65 1 Main H/W Monitor Boot Security Exit System Overview System Time System Date [ 17:00:09] [Wed 12/22/2004] BIOS Version : P4V88+ BIOS P1.00 Processor Type : Intel (R) Pentium (R) 4 CPU 2.40 GHz Processor

More information

1-1 SH79F6431 A. 2( ) 9~15V ( 12V) U2 U3 3.3V SH79F B. 1(VCC/GND) SH79F6431 C. VDDIO SH79F6431 P4 P5 P0.6 P0.7 VDDIO VDDIO=5V D. 2 V 1.0

1-1 SH79F6431 A. 2( ) 9~15V ( 12V) U2 U3 3.3V SH79F B. 1(VCC/GND) SH79F6431 C. VDDIO SH79F6431 P4 P5 P0.6 P0.7 VDDIO VDDIO=5V D. 2 V 1.0 SH79F6431 1. SH79F6431 1T 8051 FLASH SH79F JET51 Keil µ vision JTAG 1.1. SH79F6431 LQFP64 1.2. (Target Board) SH79F6431 1 V 1.0 1-1 SH79F6431 A. 2( ) 9~15V ( 12V) U2 U3 3.3V SH79F6431 1 2 1 B. 1(VCC/GND)

More information

新版 明解C言語入門編

新版 明解C言語入門編 328, 4, 110, 189, 103, 11... 318. 274 6 ; 10 ; 5? 48 & & 228! 61!= 42 ^= 66 _ 82 /= 66 /* 3 / 19 ~ 164 OR 53 OR 164 = 66 ( ) 115 ( ) 31 ^ OR 164 [] 89, 241 [] 324 + + 4, 19, 241 + + 22 ++ 67 ++ 73 += 66

More information

プログラムの設計と実現II

プログラムの設計と実現II UNIX C ls mkdir man http://www.tj.chiba-u.jp/lecture/prog2/ Ctrl+x, Ctrl+s ( )..[4]% gcc Wall o hoge hoge.c..[5]%./hoge 1 : 1 2 : 2 3 : 3 4 : 0 6..[6]% (! )..[4]% gcc Wall o hoge hoge.c..[5]%!g gcc Wall

More information

SST SPAC SST SoftICE SST89C5x/SST89x554RC /564RD /SST89x516/5xRD / SoftICE SoftICE MCU SoftICE SS

SST SPAC SST SoftICE SST89C5x/SST89x554RC /564RD /SST89x516/5xRD / SoftICE SoftICE MCU SoftICE SS SST SoftICE SST89C5x/SST89x554RC /564RD /SST89x516/5xRD2 1...2 1.1...2 1.2...2 1.3 /...2 2 SoftICE...2 3 SoftICE MCU...2 4 SoftICE...3 4.1 SST BootLoader SOFTICE...3 4.2 SoftICE SST MCU...6 5 SoftICE...7

More information

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File 51 C 51 51 C C C C C C * 2003-3-30 pnzwzw@163.com C C C C KEIL uvision2 MCS51 PLM C VC++ 51 KEIL51 KEIL51 KEIL51 KEIL 2K DEMO C KEIL KEIL51 P 1 1 1 1-1 - 1 Project New Project 1 2 Windows 1 3 N C test

More information

新・明解C言語入門編『索引』

新・明解C言語入門編『索引』 !... 75!=... 48 "... 234 " "... 9, 84, 240 #define... 118, 213 #include... 148 %... 23 %... 23, 24 %%... 23 %d... 4 %f... 29 %ld... 177 %lf... 31 %lu... 177 %o... 196 %p... 262 %s... 242, 244 %u... 177

More information

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10 Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10 Ác Åé å Serial ATA ( Silicon Image SiI3114) S A T A (1) SATA (2)

More information

C/C++语言 - 运算符、表达式和语句

C/C++语言 - 运算符、表达式和语句 C/C++ Table of contents 1. 2. 3. 4. C C++ 5. 6. 7. 1 i // shoe1.c: # include # define ADJUST 7. 64 # define SCALE 0. 325 int main ( void ) { double shoe, foot ; shoe = 9. 0; foot = SCALE * shoe

More information

untitled

untitled A, 3+A printf( ABCDEF ) 3+ printf( ABCDEF ) 2.1 C++ main main main) * ( ) ( ) [ ].* ->* ()[] [][] ** *& char (f)(int); ( ) (f) (f) f (int) f int char f char f(int) (f) char (*f)(int); (*f) (int) (

More information

JLX

JLX PRODUCT:LCD MODULE. Model No.: JLX177-006 Product Type: 1.77 inch QVGA TFT Modoule. 产品规格书 晶联讯研发研发部 : Written By Checked By Approved By 客户名称 : 结构电子核准 地址 : 深圳市宝安区西乡宝安大道东华工业区 A3 栋 6 楼电话 :0755-29784961 Http://www.jlxlcd.cn

More information

775i65PE_BIOS_CN.p65

775i65PE_BIOS_CN.p65 1 Main H/W Monitor Boot Security Exit System Overview System Time System Date [ 14:00:09] [Wed 10/20/2004] BIOS Version : 775i65PE BIOS P1.00 Processor Type : Intel (R) CPU 3.20 GHz Processor Speed : 3200

More information

行业

行业 PCL-1800 PCL-1800 1.1...2 1.1.1 1K FIFO...2 1.1.2...2 1.1.3 16...3 1.1.4...3 1.1.5...3 1.1.6...3 1.2...3 1.3...4 1.4...5 2.1...5 2.2...6 2.2.1...6 2.2.2...6 2.2.3 D/A...7 2.2.4...7 2.2.5 TRIG0 GATE0...8

More information

PowerPoint Presentation

PowerPoint Presentation TOEFL Practice Online User Guide Revised September 2009 In This Guide General Tips for Using TOEFL Practice Online Directions for New Users Directions for Returning Users 2 General Tips To use TOEFL Practice

More information

行业

行业 PCL-818HD/HG/L PCL-818HD/HG/L 1.1...2 1.1.1 /...2 1.1.2 ID...2 1.2...3 1.3...3 2.1...3 2.2...3 2.2.1...4 2.2.2...4 2.2.3 DMA...5 2.2.4...5 2.2.5 D/A...5 2.2.6...6 2.2.7 EXE.trigger GATE0...6 2.2.8 FIFO

More information

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc 2 5 8 11 0 13 1. 13 2. 15 3. 18 1 23 1. 23 2. 26 3. 28 2 36 1. 36 2. 39 3. 42 4. 44 5. 49 6. 51 3 57 1. 57 2. 60 3. 64 4. 66 5. 70 6. 75 7. 83 8. 85 9. 88 10. 98 11. 103 12. 108 13. 112 4 115 1. 115 2.

More information

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco Windows RTEMS 1 Danilliu MMI TCP/IP 80486 QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos ecos Email www.rtems.com RTEMS ecos RTEMS RTEMS Windows

More information

行业

行业 PCI-1711/1711L 1.1...2 1.1.1...2 1.1.2...2 1.1.3 FIFO...2 1.1.4...2 1.1.5 16 16...3 1.2...3 2.1...3 2.2...3 2.2.1... 2.2.2...8 2.3...10 2.3.1...10 2.3.2... 11 2.3.3...12 2.3.4...13 2.4.5...14 3.1...16

More information

Microsoft PowerPoint - C_Structure.ppt

Microsoft PowerPoint - C_Structure.ppt 結構與其他資料型態 Janet Huang 5-1 結構的宣告 struct 結構名稱 struct 結構名稱變數 1, 變數 2,, 變數 m; struct 結構名稱 變數 1, 變數 2,, 變數 m; student; student; 5-2 1 結構變數初值的設定 struct 結構名稱 struct 結構名稱變數 = 初值 1, 初值 2,, 初值 n student="janet","1350901",100,95

More information

P4VM800_BIOS_CN.p65

P4VM800_BIOS_CN.p65 1 Main H/W Monitor Boot Security Exit System Overview System Time System Date [ 17:00:09] [Fri 02/25/2005] BIOS Version : P4VM800 BIOS P1.00 Processor Type : Intel (R) Pentium (R) 4 CPU 2.40 GHz Processor

More information

ebook20-7

ebook20-7 7 Catalyst 5000 Catalyst 5000 Cisco Works for Switched Internetworks (CWSI) C L I C L I G U I C L C W S I C i s c o C W S I C L I I P Te l n e t C L I 9600 8 6 7.1 Catalyst C a t a l y s t Cisco IOS C

More information

从MCS51向AVR的快速转换.PDF

从MCS51向AVR的快速转换.PDF MCS51 AVR MCS51 AVR ATMEL AVR RISC MCS51 AVR 1 MHZ 1MIPS 8MHZ AVR 224MHZ MCS51 FLASH EEPROM ISP WatchDog AVR MCS51 AT90S1200/2313 AT89C1051/2051 AT90S4414/8515 AT89C51/52 PCB / AVR C ICCAVR60 AVR C IAR

More information

AL-M200 Series

AL-M200 Series NPD4754-00 TC ( ) Windows 7 1. [Start ( )] [Control Panel ()] [Network and Internet ( )] 2. [Network and Sharing Center ( )] 3. [Change adapter settings ( )] 4. 3 Windows XP 1. [Start ( )] [Control Panel

More information

General Description: Preliminary TTP916 Consumer IC VCD/DVD LCD Green mode Stand-by mode( 1W ) Features: 2.2V-5.5V LCD RAM read condition 2.6V-5.5V RC

General Description: Preliminary TTP916 Consumer IC VCD/DVD LCD Green mode Stand-by mode( 1W ) Features: 2.2V-5.5V LCD RAM read condition 2.6V-5.5V RC General Description: IC VCD/DVD LCD Green mode Stand-by mode( 1W ) Features: 2.2V-5.5V LCD RAM read condition 2.6V-5.5V RC 15K 300pF 256KHZ default on 32 function key Built-in TT6221/TT6222 decoder Provide

More information

ch08.PDF

ch08.PDF 8-1 CCNA 8.1 CLI 8.1.1 8-2 8-3 8.1.21600 2500 1600 2500 / IOS 8-4 8.2 8.2.1 A 5 IP CLI 1600 2500 8-5 8.1.2-15 Windows 9598NT 2000 HyperTerminal Hilgraeve Microsoft Cisco HyperTerminal Private Edition (PE)

More information

a b c d e f g C2 C1 2

a b c d e f g C2 C1 2 a b c d e f g C2 C1 2 IN1 IN2 0 2 to 1 Mux 1 IN1 IN2 0 2 to 1 Mux 1 Sel= 0 M0 High C2 C1 Sel= 1 M0 Low C2 C1 1 to 2 decoder M1 Low 1 to 2 decoder M1 High 3 BCD 1Hz clk 64Hz BCD 4 4 0 1 2 to 1 Mux sel 4

More information

Microsoft Word - OPIGIMAC 譯本.doc

Microsoft Word - OPIGIMAC 譯本.doc OPISYSTEMS OPIGIMAC 系 統 使 用 說 明 使 用 者 手 冊 OPI 版 本 7.0.X 140705 翻 譯 版 本 V1.0 Table of Contents 頁 數 1. 簡 介 3 2. 系 統 需 求 4 3. 安 裝 4 4. 開 始 OPIGIMAC 5 5. 功 能 列 7 6. 功 能 圖 示 鍵 10 7. 重 點 操 作 說 明 13 7-1. 設 定

More information

2 12

2 12 SHENZHEN BRILLIANT CRYSTAL TECHNOLOGIC CO.,LTD. The specification for the following models Graphic LCM serial communication control board CB001 PROPOSED BY APPROVED Design Approved TEL:+86-755-29995238

More information

12232A LED LED LED EL EL CCFL EL CCF

12232A LED LED LED EL EL CCFL EL CCF 12232A 0 50-20 +70-30 +85 LED LED LED EL EL CCFL EL CCF 122 x 32 1/32Duty 1/5Bias 6:00 STN( ), EL LED EL/100VAC 400HZ LED/4.2VDC 1 / VDD-VSS 0 6.5 V Ta=25 LCD VDD-V0 0 12.0 V V1 0 VDD V VDD-VSS - 4.75

More information

行业

行业 PCI-1710 1.1...2 1.1.1...2 1.1.2...2 1.1.3 FIFO( )...2 1.1.4...2 1.1.5...2 1.1.6 16 16...3 1.1.7...3 1.2...3 1.3...3 2.1...3 2.2...4 2.2.1...4 2.2.2...5 2.3...9 2.3.1...10 2.3.2... 11 2.3.3...12 2.3.4...12

More information

行业

行业 PCI-1716/1716L 1.1...2 1.1.1...2 1.1.2 / /SD*/BU*...2 1.1.3 FIFO( )...2 1.1.4...2 1.1.5 16 16...3 1.1.6...3 1.1.7 ID...3 1.2...3 2.1...3 2.2...4 2.2.1...4 2.2.2...6 2.3... 11 2.3.1... 11 2.3.2...12 2.3.3...13

More information

CAUTION RISK OF ELECTRIC SHOCK DO NOT OPEN 2

CAUTION RISK OF ELECTRIC SHOCK DO NOT OPEN 2 WV-CU950/G WV-CU650/G CAUTION RISK OF ELECTRIC SHOCK DO NOT OPEN 2 S3125A 3 4 5 6 7 8 9 #9 $0 #8 $1 $2 $3 r q w e t $4 i u!0 y WV-CU950!1!3!4!7!6!5!8 @0!9 @3 @2 @1!2 o ALARM ACK ALM RESET ALM SUSPEND ALM

More information

提纲 1 2 OS Examples for 3

提纲 1 2 OS Examples for 3 第 4 章 Threads2( 线程 2) 中国科学技术大学计算机学院 October 28, 2009 提纲 1 2 OS Examples for 3 Outline 1 2 OS Examples for 3 Windows XP Threads I An Windows XP application runs as a seperate process, and each process may

More information

<4D F736F F D20B3E6B4B9A4F930365F32A443AC71C5E3A5DCBEB9B1B1A8EE2E646F63>

<4D F736F F D20B3E6B4B9A4F930365F32A443AC71C5E3A5DCBEB9B1B1A8EE2E646F63> 七段顯示器控制電路四位數 _ 使用解碼器驅動 +5 V 10 uf 8.2 k 12 MHz 20 pf 1 2 3 4 5 6 7 8 9 P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RESET 10 P3.0 11 12 13 14 15 16 17 18 19 20 P3.1 P3.2 P3.3 P3.4 P3.5 P3.6 P3.7 XTAL2 XTAL1

More information

学习MSP430单片机推荐参考书

学习MSP430单片机推荐参考书 MSP430 16 MSP430 C MSP430 C MSP430 FLASH 16 1 CPU 16 ALU 16 PC SP SR R4~R15 2 3 00-FFH 100-1FFH 4 5 1 2 51 24 27 6 1 2 3 4 5 6 4 12 SR SP SR CPU SR CPU C Z N GIE CPUOff CPU OscOff SCG0 SCG1 CPU EXIT SP

More information

内团发﹝2016﹞13号内蒙古团委脱贫攻坚部门分工方案

内团发﹝2016﹞13号内蒙古团委脱贫攻坚部门分工方案 共 青 团 内 蒙 古 自 治 区 委 员 会 文 件 内 团 发 2016 13 号 关 于 落 实 关 于 共 青 团 助 力 脱 贫 攻 坚 战 的 实 施 方 案 的 分 工 方 案 机 关 各 部 ( 室 ) 二 级 单 位, 各 盟 市 团 委, 满 洲 里 二 连 浩 特 市 团 委, 各 高 等 院 校 大 厂 矿 企 业 团 委, 自 治 区 直 属 机 关 团 工 委, 自 治

More information

FY.DOC

FY.DOC 高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主

More information

C/C++程序设计 - 字符串与格式化输入/输出

C/C++程序设计 - 字符串与格式化输入/输出 C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int

More information

TX-NR3030_BAS_Cs_ indd

TX-NR3030_BAS_Cs_ indd TX-NR3030 http://www.onkyo.com/manual/txnr3030/adv/cs.html Cs 1 2 3 Speaker Cable 2 HDMI OUT HDMI IN HDMI OUT HDMI OUT HDMI OUT HDMI OUT 1 DIGITAL OPTICAL OUT AUDIO OUT TV 3 1 5 4 6 1 2 3 3 2 2 4 3 2 5

More information

ICD ICD ICD ICD ICD

ICD ICD ICD ICD ICD MPLAB ICD2 MPLAB ICD2 PIC MPLAB-IDE V6.0 ICD2 usb PC RS232 MPLAB IDE PC PC 2.0 5.5V LED EEDATA MPLAB ICD2 Microchip MPLAB-IDE v6.0 Windows 95/98 Windows NT Windows 2000 www.elc-mcu.com 1 ICD2...4 1.1 ICD2...4

More information

untitled

untitled MODBUS 1 MODBUS...1 1...4 1.1...4 1.2...4 1.3...4 1.4... 2...5 2.1...5 2.2...5 3...6 3.1 OPENSERIAL...6 3.2 CLOSESERIAL...8 3.3 RDMULTIBIT...8 3.4 RDMULTIWORD...9 3.5 WRTONEBIT...11 3.6 WRTONEWORD...12

More information

1 TPIS TPIS 2 2

1 TPIS TPIS 2 2 1 1 TPIS TPIS 2 2 1. 2. 3. 4. 3 3 4 5 4 TPIS TPIS 6 5 350 Mark Coil F3/F6 350 M 150 M 25 M 7.12M 8 M F3 F6 F4 F7 F8 8M AA 7 350 28V 5V IC HCPL2731 0.5mA 6 8 (TPIS) TPIS 9 7 IC AT89C2051 AT89C2051 CMOS8

More information

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2 Terminal Mode No User User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2 Mon1 Cam-- Mon- Cam-- Prohibited M04 Mon1 Cam03 Mon1 Cam03

More information

專業式報告

專業式報告 IP POWER 9258 1U IP POWER 9258IU 說 : V1.38 : 2006. 08-1 - VER. X.X, FCC CE 1. IP POWER 9258. 2. 9258 3. 9258-2 - 1....4... 9258... 2....5...... 3....6 4....8...... 5....9... PC WINDOWS... 6.... 11 7. IE...

More information

nooog

nooog C : : : , C C,,, C, C,, C ( ), ( ) C,,, ;,, ; C,,, ;, ;, ;, ;,,,, ;,,, ; : 1 9, 2 3, 4, 5, 6 10 11, 7 8, 12 13,,,,, 2008 1 1 (1 ) 1.1 (1 ) 1.1.1 ( ) 1.1.2 ( ) 1.1.3 ( ) 1.1.4 ( ) 1.1.5 ( ) 1.2 ( ) 1.2.1

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,

More information

P4Dual-915GL_BIOS_CN.p65

P4Dual-915GL_BIOS_CN.p65 1 Main H/W Monitor Boot Security Exit System Overview System Time System Date Total Memory DIMM 1 DIMM 2 [ 14:00:09] [Wed 01/05/2005] BIOS Version : P4Dual-915GL BIOS P1.00 Processor Type : Intel (R) Pentium

More information

C/C++ - 字符串与字符串函数

C/C++ - 字符串与字符串函数 C/C++ Table of contents 1. 2. 3. 4. 1 char C 2 char greeting [50] = " How " " are " " you?"; char greeting [50] = " How are you?"; 3 printf ("\" Ready, go!\" exclaimed John."); " Ready, go!" exclaimed

More information

C/C++语言 - C/C++数据

C/C++语言 - C/C++数据 C/C++ C/C++ Table of contents 1. 2. 3. 4. char 5. 1 C = 5 (F 32). 9 F C 2 1 // fal2cel. c: Convert Fah temperature to Cel temperature 2 # include < stdio.h> 3 int main ( void ) 4 { 5 float fah, cel ;

More information

C 1

C 1 C homepage: xpzhangme 2018 5 30 C 1 C min(x, y) double C // min c # include # include double min ( double x, double y); int main ( int argc, char * argv []) { double x, y; if( argc!=

More information

C/C++ 语言 - 循环

C/C++ 语言 - 循环 C/C++ Table of contents 7. 1. 2. while 3. 4. 5. for 6. 8. (do while) 9. 10. (nested loop) 11. 12. 13. 1 // summing.c: # include int main ( void ) { long num ; long sum = 0L; int status ; printf

More information

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor 1 4.1.1.1 (Load) 14 1.1 1 4.1.1.2 (Save) 14 1.1.1 1 4.1.2 (Buffer) 16 1.1.2 1 4.1.3 (Device) 16 1.1.3 1 4.1.3.1 (Select Device) 16 2 4.1.3.2 (Device Info) 16 2.1 2 4.1.3.3 (Adapter) 17 2.1.1 CD-ROM 2 4.1.4

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 9 [P.11] : Dev C++ [P.12] : http://c.feis.tw [P.13] [P.14] [P.15] [P.17] [P.23] Dev C++ [P.24] [P.27] [P.34] C / C++ [P.35] 10 C / C++ C C++ C C++ C++ C ( ) C++

More information

定時器/計數器

定時器/計數器 定時器 / 計數器 LED 應用 STC12C5410AD 系列單片機有 6 個計時器, 其中計時器 0 和計時器 1 兩個 16 位計時器, 與傳統 8051 的計時器完全相容, 也可以設置為 1T 模式, 當在計時器 1 做串列傳輸速率發生器時, 計時器 0 可以當兩個 8 位計時器用 ( 另外 4 路 PCA/PWM 可以再實現 4 個 16 位計時器 ) 當計時器 / 計數器工作在定時模式時,

More information

audiogram3 Owners Manual

audiogram3 Owners Manual USB AUDIO INTERFACE ZH 2 AUDIOGRAM 3 ( ) * Yamaha USB Yamaha USB ( ) ( ) USB Yamaha (5)-10 1/2 AUDIOGRAM 3 3 MIC / INST (XLR ) (IEC60268 ): 1 2 (+) 3 (-) 2 1 3 Yamaha USB Yamaha Yamaha Steinberg Media

More information

DR2010.doc

DR2010.doc DR/2010 HACH 11-8-96-2 HACH. DR/2010, / UL E79852 CSA C22.223 LR 58275 VDE GS 1015-92 FCC"A" 15 : AMADOR CORP, HACH. EN50 011/CISPR 11 "B" (EMI)/89/336/EEC/EMC: AMADOR CORP, HACH.. EN50 082-1( )/89/226/EEC

More information

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023)

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023) ( CIP) /. :, 2005. 2 ( ) ISBN 7-5624-3339-9.......... TP311. 1 CIP ( 2005) 011794 : : : : * : : 174 ( A ) :400030 : ( 023) 65102378 65105781 : ( 023) 65103686 65105565 : http: / /www. cqup. com. cn : fxk@cqup.

More information

版本说明书

版本说明书 i CHGM-36M * CHGM-36C * CHGM-130M CHGM-130C CHGM-120M * CHGM-120C * CHGC-120M CHGC-120C CHGC-300M CHGC-300C CHGM-530M-1 CHGM-530C-1 CHGM-600C CHGM-600M-1 * CHGM-600M CHGC-30M CHGC-30C CHGM-230 CHGM-230C

More information

<49434F415220B0EABBDAB4BCBC7AABACBEF7BEB9A448AFE0A44FBB7BC3D24C6576656C2031AFC5BEC7ACECC344AE772E786C73>

<49434F415220B0EABBDAB4BCBC7AABACBEF7BEB9A448AFE0A44FBB7BC3D24C6576656C2031AFC5BEC7ACECC344AE772E786C73> 3 2 IOR 國 際 智 慧 型 機 器 人 能 力 認 證 Level 1 級 學 科 題 庫 2013.10.14. 公 佈 答 案 題 號 考 題 1 P 型 半 導 體 中 之 少 數 載 子 為 () 電 子 () 電 洞 () 正 離 子 () 負 離 子 2 P 型 半 導 體 與 N 型 半 導 體 結 合 時, 會 在 PN 接 合 面 上 形 成 空 乏 區, 則 空 乏 區

More information

PIC16F F MPLAB 08 16F LED 15 LED

PIC16F F MPLAB 08 16F LED 15 LED PIC16F877 PIC16F877 03 16F877 05 06 MPLAB 08 16F877 13 LED 15 LED 17 20 24 2 PIC16F877 PIC16F877 DIP VDD VSS CLOCK CPU :,AND,OR,XOR ROM: CPU ROM RAM: CPU,CPU I/O:CPU, CPU,, 16F877 RAM 512 128 Bank Bank

More information

USB解决方案.ppt

USB解决方案.ppt USB USB? RS232 USB USB HID U modem ADSL cable modem IrDA Silabs USB CP210x USB UART USB RS-232 USB MCU 15 USB 12 FLASH MCU 3 USB MCU USB MCU C8051F32x 10 ADC 1.5%, Vref CPU 25MIPS 8051 16KB Flash -AMUX

More information

P3B-F Pentium III/II/Celeron TM

P3B-F Pentium III/II/Celeron TM P3B-F Pentium III/II/Celeron TM 1999 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 13 R PS2 KBMS USB COM1 COM2 JTPWR ATXPWR PWR_FAN CPU_FAN Row 0 1 2 3 4 5 6 7 DSW JP20

More information

1.1 ML_ONOFF = 1 Q 3 Q 8 C 0.3V M 2 L 1 ML_ONOFF = 0 Q 3 Q 8 C 1. + R31 VCC R21 10K ML_ONOFF R15 0:off 1:on 1K Green Light VCC=5V L1 Q VDD=12V C

1.1 ML_ONOFF = 1 Q 3 Q 8 C 0.3V M 2 L 1 ML_ONOFF = 0 Q 3 Q 8 C 1. + R31 VCC R21 10K ML_ONOFF R15 0:off 1:on 1K Green Light VCC=5V L1 Q VDD=12V C AUTOMATIC TROLLEY H K Hwang K K Chen J-S Lin S-C Wang M-L Li C-C Lin W-B Lin Dept. Of Electrical Engineering Far East College ABSTRACT This paper proposes an automatic trolley which can move automatically

More information

Microsoft PowerPoint - os_4.ppt

Microsoft PowerPoint - os_4.ppt 行 程 資 科 系 林 偉 川 行 程 概 念 行 程 與 程 式 主 要 的 不 同 點 : 程 式 是 被 放 在 外 部 的 儲 存 裝 置 如 磁 碟 上, 而 行 程 則 被 放 在 記 憶 體 中 程 式 在 儲 存 裝 置 中 是 靜 態 的, 而 行 程 在 記 憶 體 中 是 動 態 的, 它 會 隨 著 一 些 事 件 的 發 生 而 產 生 相 對 的 改 變 行 程, 就 是

More information