SM59R09A5 與 W77E58 應用差異說明一 適用產品 :SM59R09A5

Size: px
Start display at page:

Download "SM59R09A5 與 W77E58 應用差異說明一 適用產品 :SM59R09A5"

Transcription

1 SM59R09A5 與 W77E58 應用差異說明一 適用產品 :SM59R09A5 二 應用範圍 : 針對 SM59R09A5 SM59R09A3 與 W77E58 之應用差異, 僅需對特殊功能暫存器定義做小幅度修改即可. 三 功能說明 :SM59R09A5 SM59R09A3 與 W77E58 各個 MCU 規格比較 ( 表 1): Feature SM59R09A5 SM59R09A3 W77E58 工作電壓 (V) 2.7~ ~ ~5.5 I DD (Power Down) 3.5uA at VDD=5.0V 3.5uA at VDD=5.0V 50uA at V DD =5.5V System clock(mhz) 1T:up to 25 (1T,2T can change on fly) 1T:up to 25 (1T,2T can change on fly) 4-T:up to 40 內部 RC 震盪器有 ( 最大 24MHz) 有 ( 最大 24MHz) 有 ( 約 2~4MHz) Program Flash ( byte) 36K 36K 32K RAM( byte) Interrupt WDT 有有有 16-bit Dual DPTR 有 有 有 Timer UART EEPROM 有 有 無 ICP/ISP/IAP 有 有 無 PCA 有 (4 路 ), 中斷向量有 (4 路 ), 中斷向量 0x2BH 0x2BH 無 PWM 有 (4 路,10 位 ), 有 (4 路,10 位 ), 中斷向量 0x43H 中斷向量 0x43H 無 MDU 有 有 無 ADC 有 有 無 SPI interface 有 有 無 IIC interface 有 有 無 KBI interface 有 有 無 Port 4.4~4.7(40-pin PDIP) &four I/O type 有 有 無 內置復位 有 ( 可調復位時間 ) 有 ( 可調復位時間 ) 無 低壓復位 有 有 無 即時時鐘 (RTC) 有 無 無 OP & Compartor 有 無 無 ISSFA Ver. A 2010/06

2 四 特殊功能暫存器比較表 : SM59R09A5( 表 2): Hex\Bin X000 X001 X010 X011 X100 X101 X110 X111 Bin/Hex F8 IICS IICCTL IICA1 IICA2 IICRWD IICS2 Cmp0CON Cmp1CON FF F0 B SPIC1 SPIC2 SPITXD SPIRXD SPIS OpPin TAKEY F7 E8 P4 MD0 MD1 MD2 MD3 MD4 MD5 ARCON EF E0 ACC ISPFAH ISPFAL ISPFD ISPFC LVC SWRES E7 D8 P5 P3M0 P3M1 P4M0 P4M1 P5M0 P5M1 DF D0 PSW CCEN2 P0M0 P0M1 P1M0 P1M1 P2M0 P2M1 D7 C8 T2CON CCCON CRCL CRCH TL2 TH2 PWMMDH PWMMDL CF C0 IRCON CCEN CCL1 CCH1 CCL2 CCH2 CCL3 CCH3 C7 B8 IEN1 IP1 S0RELH S1RELH PWMD0H PWMD0L PWMD1H PWMD1L BF B0 P3 PWMD2H PWMD2L PWMD3H PWMD3L PWMC WDTC WDTK B7 A8 IEN0 IP0 S0RELL ADCC1 ADCC2 ADCDH ADCDL ADCCS AF A0 P2 A7 98 S0CON S0BUF IEN2 S1CON S1BUF S1RELL RTCADDR RTCDATA 9F 90 P1 AUX AUX2 KBLS KBE KBF KBD IRCON TCON TMOD TL0 TL1 TH0 TH1 IFCON 8F 80 P0 SP DPL DPH DPL1 DPH1 RCON PCON 87 SM59R09A3( 表 3): Hex\Bin X000 X001 X010 X011 X100 X101 X110 X111 Bin/Hex F8 IICS IICCTL IICA1 IICA2 IICRWD IICS2 FF F0 B SPIC1 SPIC2 SPITXD SPIRXD SPIS TAKEY F7 E8 P4 MD0 MD1 MD2 MD3 MD4 MD5 ARCON EF E0 ACC ISPFAH ISPFAL ISPFD ISPFC LVC SWRES E7 D8 P5 P3M0 P3M1 P4M0 P4M1 P5M0 P5M1 DF D0 PSW CCEN2 P0M0 P0M1 P1M0 P1M1 P2M0 P2M1 D7 C8 T2CON CCCON CRCL CRCH TL2 TH2 PWMMDH PWMMDL CF C0 IRCON CCEN CCL1 CCH1 CCL2 CCH2 CCL3 CCH3 C7 B8 IEN1 IP1 S0RELH S1RELH PWMD0H PWMD0L PWMD1H PWMD1L BF B0 P3 PWMD2H PWMD2L PWMD3H PWMD3L PWMC WDTC WDTK B7 A8 IEN0 IP0 S0RELL ADCC1 ADCC2 ADCDH ADCDL ADCCS AF A0 P2 A7 98 S0CON S0BUF IEN2 S1CON S1BUF S1RELL 9F 90 P1 AUX AUX2 KBLS KBE KBF KBD TCON TMOD TL0 TL1 TH0 TH1 IFCON 8F 80 P0 SP DPL DPH DPL1 DPH1 RCON PCON 87 ISSFA Ver. A 2010/06

3 W77E58( 表 3): Hex\Bin X000 X001 X010 X011 X100 X101 X110 X111 Bin/Hex F8 EIP FF F0 B F7 E8 EIE EF E0 ACC E7 D8 WDCON DF D0 PSW D7 C8 T2CON T2MOD RCAP2L RCAP2H TL2 TH2 CF C0 SCON1 SBUF1 ROMMAP PMR STATUS TA C7 B8 IP SADEN SADEN1 BF B0 P3 B7 A8 IE SADDR SADDR1 AF A0 P2 P4 A7 98 S0CON S0BUF 9F 90 P1 EXIF TCON TMOD TL0 TL1 TH0 TH1 CKCON 8F 80 P0 SP DPL DPH DPL1 DPH1 DPS PCON 87 五 特殊功能差異說明 : 特殊功能 SM59R09A5/SM59R09A3 Addr. W77E58 Addr. 雙數據指針於 AUX.DPS 設定 91H.0 於 DPS.DPS 設定 86H.0 P4 8 Bits 可位元定址 E8H 4 Bits 不可位元定址 A6H 看門狗 - TAKEY F7H IE1.EWDI(WDT interrupt enable, E8H.4 1. 時脈源不同 2. 預分頻不同 WDTC WDTK 1. 時脈源由內部 250KHz 產生, 溢出時 B6H B7H interrupt vector at 0x63H) CKCON WDCON 8EH D8H 3. 設定及清除 間固定 1. 時脈源由外部晶振產生, 溢出時 計時方式不 2. 由 WDTC[3:0] 設定, 預分頻由 間不固定 同 1~32768 分 16 階 : 2. 由 CKCON[7:6] 設定, 預分頻 4 Period = 1.02 m sec ~ sec 3. 須先設定 KEY(TAKEY) 後, 才可對 階, 產生中斷信號後 512 時脈產生重置信號 WDTC 設定 ; 清除 WDT 於 WDTK 寫 WD1:WD0 Interrupt Reset ISSFA Ver. A 2010/06

4 入 0x55 参考附件一 沒有 KEY 的設計, 可直接改 WDCON 及 CKCON 輔助記憶體 有 2048 Bytes 有 1024 Bytes Embedded IFCON.EMEN 8FH.1 PMR.DEM0 C4H.0 RAM =1, 禁能 =1, 致能 =0, 致能 (default) =0, 禁能 (default) 中斷致能及優先 共提供 15/13 組中斷源及 4 階中斷優先 共提供 12 組中斷源及 2 階中斷優先權 權設定不同 權設定 設定 IEN0 A8H IE A8H IEN1 B8H EIE E8H IEN2 9AH IP B8H IP A9H EIP F8H IP1 B9H EIF 91H 参考附件二 雙串口 IEN0.ES0(UART0 interrupt enable, A8H.4 IE.ES(UART0 interrupt enable, A8H.4 (Dual UART) interrupt vector at 0x23H) IEN2.ES1(UART1 interrupt enable, 9AH.0 interrupt vector at 0x23H) IE.ES1(UART1 interrupt enable, A8H.6 interrupt vector at 0x83H) interrupt vector at 0x3BH) PCON.SMOD 87H.7 PCON.SMOD 87H.7 AUX.P4UR1 91H.4 SCON 98H =0, UART1 at P1. SBUF 99H =1, UART1 at P4 SCON1 C0H TxD1 change from P1.3 to P4.3 SBUF1 C1H RxD1 change from P1.2 to P4.2 SADDR1 AAH S0CON 98H SADEN1 BAH ISSFA Ver. A 2010/06

5 S0BUF 99H STATUS C5H S0RELL AAH WDCON D8H S0RELH BAH S1CON 9BH S1RELL 9DH S1RELH BBH S1BUF 9CH 参考附件三 計時器 2 IEN0.ET2(Timer2 interrupt enable, A8H.5 IE.ET2(Timer 2 interrupt enable, A8H.5 (Timer 2) interrupt vector at 0x2BH) T2CON C8H interrupt vector at 0x2BH) T2CON C8H CRCL CAH T2MOD C9H CRCH CBH RCAP2L CAH TL2 CCH RCAP2H CBH TH2 CDH TL2 CCH 参考附件四 TH2 CDH ISSFA Ver. A 2010/06

6 附件一 : 看門狗設定不同說明 1. SM59R09A5/SM59R09A3 與 W77E58 看門狗功能比較 : SM59R09A5/SM59R09A3 W77E58 時鐘源 內部獨立之 250KHz RC 震盪器, 復位時間固定 與外部晶振共用, 復位時間不固定 復位階數 分 16 階, 方便使用 分 4 階 復位時間 1.02 m sec ~ sec 需依公式計算復位時間 2. SM59R09A5/SM59R09A3 與 W77E58 看門狗特殊功能暫存器比較 : 特殊功能暫存器名稱 SM59R09A5/SM59R09A3 名稱及位址 W77E58 名稱及位址 看門狗功能設定 WDTC (0xB6H) WDCON (0xD8H);CKCON(0X8EH) 看門狗功能重置 WDTK (0xB7H) WDCON (0xD8H) 功能致能暫存器保護 TAKEY (0xF7H) 於此暫存器連續填入 0x55H, 0xAAH 及 0x5AH 以啟動功能 無 3. SM59R09A5/SM59R09A3 與 W77E58 看門狗之特殊功能暫存器說明 : a. SM59R09A5/SM59R09A3 看門狗功能使用之暫存器說明 : Mnemonic: WDTC Address: B6h WDTF - WDTE - WDTM [3:0] 04H WDTF: Watchdog timer reset flag. When MCU is reset by watchdog, WDTF flag will be set to one by hardware. This flag clear by software or external reset or power on reset. WDTE: Control bit used to enable Watchdog timer. The WDTE bit can be used only if WDTEN is 0. If the WDTEN bit is 0, then WDT can be disabled / enabled by the WDTE bit. 0: Disable WDT. 1: Enable WDT. The WDTE bit is not used if WDTEN is 1. That is, if the WDTEN bit is 1, WDT is always disabled no matter what the WDTE bit status is. The WDTE bit can be read and written. WDTM [3:0]: WDT clock source divider bit. Please see below table to reference the WDT time-out period. ISSFA Ver. A 2010/06

7 Mnemonic: WDTK Address: B7h WDTK[7:0] 00h WDTK: Watchdog timer refresh key. A programmer must write 0x55 into WDTK register, and then the watchdog timer will be cleared to zero. Mnemonic: TAKEY Address: F7h TAKEY [7:0] 00H 範例程式 : 於使用看門狗功能時需先使用 ISP 或 ICP 方式啟動看門狗功能, 再於程式中再次啟動看門狗, 看門狗功能才能正常使用 MOV TAKEY, #55h MOV TAKEY, #0AAh MOV TAKEY, #5Ah ; 啟動 WDTC 寫入功能. MOV WDTC, #28h ; 設定看門狗復位時間為 毫秒, 並啟動看門狗功能... MOV WDTK, #55h ; 清除看門狗計數器. WDTM [3:0] Divider (250 KHz RC oscillator in) Time 250KHz ms ms ms ms ms (default) ms ms ms ms ms s s s s s s ISSFA Ver. A 2010/06

8 b. W77E58 看門狗功能使用之暫存器說明 : Mnemonic: WDCON Address: D8h SMOD_1 POR - - WDIF WTRF EWT RWT 0x0x0xx0B SMOD_1: This bit Doubles the Serial Port 1 baud rate in mode 1,2 and 3 when set to 1 POR: Power-on reset flag. Hardware will set this flag on a power up condition. This flag can be read or written by software. A write by software is the only way to clear this bit once it is set. WDIF: Watchdog Timer Interrupt Flag. If the watchdog interrupt is enabled, hardware will set this bit to indicate that the watchdog interrupt has occurred. If the interrupt is not enabled, then this bit indicates that the time-out period has elapsed. This bit must be cleared by software. WTRF: Watchdog Timer Reset Flag. Hardware will set this bit when the watchdog timer causes a reset. Software can read it but must clear it manually. A power-fail reset will also clear the bit. This bit helps software in determining the cause of a reset. If EWT = 0, the watchdog timer will have no affect on this bit. EWT: Enable Watchdog timer Reset. Setting this bit will enable the Watchdog timer Reset function. RWT: Reset Watchdog Timer. This bit helps in putting the watchdog timer into a know state. It also helps in resetting the watchdog timer before a time-out occurs. Failing to set the RWT before time-out will cause an interrupt, if EWDI (EIE.4) is set and 512 clocks after that a watchdog timer reset will be generated if EWT is set. This bit is self-clearing by hardware. The WDCON SFR is set to a 0x0x0xx0b on an external reset. WTRF is set to a 1 on a Watchdog timer reset, but to a 0 on power on/down resets. WTRF is not altered by an external reset. POR is set to 1 by a power-on reset. EWT is set to 0 on a Power-on reset and unaffected by other resets. All the bits in this SFR have unrestricted read access. POR, EWT, WDIF and RWT require Timed Access procedure to write. The remaining bits have unrestricted write accesses. Mnemonic: CKCON Address: 8Eh WD1 WD0 T2M T1M T0M MD2 MD1 MD0 04H WD1-0: Watchdog timer mode select bits: These bits determine the time-out period for the watchdog timer. In all four time-out options the reset time-out is 512 clocks more than the interrupt timeout period. WD1 WD0 Interrupt time-out Reset time-out T2M: Timer 2 clock select: When T2M is set to 1, timer 2 uses a divide by 4 clock, and when set to 0 it uses a divide by 12 clock. T1M: Timer 1 clock select: When T1M is set to 1, timer 1 uses a divide by 4 clock, and when set to 0 it uses a divide by 12 clock. T0M: Timer 0 clock select: When T0M is set to 1, timer 0 uses a divide by 4 clock, and when ISSFA Ver. A 2010/06

9 set to 0 it uses a divide by 12 clock. MD2-0: Stretch MOVX select bits: These three bits are used to select the stretch value for the MOVX instruction. Using a variable MOVX length enables the user to access slower external memory devices or peripherals without the need for external circuits. The RD or WR strobe will be stretched by the selected interval. When accessing the on-chip SRAM, the MOVX instruction is always in 2 machine cycles regardless of the stretch setting. By default, the stretch has value of 1. If the user needs faster accessing, then a stretch value of 0 should be selected. MD2 MD1 MD0 Stretch value MOVX duration machine cycles machine cycles (Default) machine cycles machine cycles machine cycles machine cycles machine cycles machine cycles Time-out values for the watchdog timer WD1 WD0 Watchdog Interval Number of Clocks MHz 25MHz ms ms 5.24 ms ms ms ms ms ms ms ms ms ms The Watchdog timer will de disabled by a power-on/fail reset. The Watchdog timer reset does not disable the watchdog timer, but will restart it. In general, software should restart the timer to put it into a known state. The default Watchdog time-out is 2 17 clocks, which is the shortest time-out period. The EWT, WDIF and RWT bits are protected by the Timed Access procedure. This prevents software from accidentally enabling or disabling the watchdog timer. More importantly, it makes it highly improbable that errant code can enable or disable the watchdog timer. ISSFA Ver. A 2010/06

10 附件二 : 中斷致能及優先權設定不同說明 1. SM59R09A5/SM59R09A3 與 W77E58 中斷功能比較 : 新茂 SM59R09A5 提供 15 組中斷源 SM59R09A3 提供 13 組中斷源,W77E58 只有 12 組 新茂提供 4 階中斷優先權設定,W77E58 只有 2 階 中斷源旗標 SM59R09A5 之中斷向量 SM59R09A3 之中斷向量 W77E58 之中斷向量 IE0 External interrupt 0 0x03H 0x03H 0x03H TF0 Timer 0 interrupt 0x0BH 0x0BH 0x0BH IE1 External interrupt 1 0x13H 0x13H 0x13H TF1 Timer 1 interrupt 0x1BH 0x1BH 0x1BH RI0/TI0 Serial channel 0 interrupt 0x23H 0x23H 0x23H TF2/EXF2 Timer 2 interrupt 0x2BH 0x2BH 0x2BH PWMIF PWM interrupt 0x43H 0x43H 無 SPIIF SPI interrupt 0x4BH 0x4BH 無 ADCIF A/D converter interrupt 0x53H 0x53H 無 KBIIF keyboard Interface interrupt 0x5BH 0x5BH 無 LVIIF Low Voltage Interrupt 0x63H 0x63H 無 IICIF IIC interrupt 0x6BH 0x6BH 無 RI1/TI1 Serial channel 1 interrupt 0x83H 0x83H 0x3BH RTC/ALARM interrupt 008Bh 無 無 Comparator interrupt 0093h 無無 PCA Same as TF2 Same as TF2 無 IE2 External interrupt 2 無無 0x43H IE3 External interrupt 3 無無 0x4BH IE4 External interrupt 4 無無 0x53H IE5 External interrupt 5 無無 0x5BH Watchdog Timer 無無 0x63H 2. SM59R09A5/SM59R09A3 與 W77E58 中斷特殊功能暫存器比較 : 特殊功能暫存器名稱 SM59R09A5/SM59R09A3 名稱及位址 W77E58 名稱及位址 中斷致能 0 IEN0 (0xA8H) IE (0xA8H) 中斷致能 1 IEN1 (0xB8H) EIE(0xE8H) 中斷致能 2 IEN2 (0x9AH) 無 中斷優先設定 0 IP0 (0xA9H) IP (0xB8H) 中斷優先設定 1 IP1 (0xB9H) EIP(0xF8H) ISSFA Ver. A 2010/06

11 3. SM59R09A5/SM59R09A3 與 W77E58 中斷之特殊功能暫存器說明 : a. SM59R09A5/SM59R09A3 中斷功能使用之暫存器說明 : 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 Disable Timer 2 overflow or external reload interrupt. ET2=1 Enable Timer 2 overflow or external reload interrupt. ES0: ES0=0 Disable Serial channel 0 interrupt. ES0=1 Enable Serial channel 0 interrupt. 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. Mnemonic: IEN1 Address: B8h EXEN2 - IEIIC IELVI IEKBI IEADC IESPI IEPWM 00h EXEN2: Timer 2 reload interrupt enable. EXEN2 = 0 Disable Timer 2 external reload interrupt. EXEN2 = 1 Enable Timer 2 external reload interrupt. IEIIC: IIC interrupt enable. IEIICS = 0 Disable IIC interrupt. IEIICS = 1 Enable IIC interrupt. IELVI: LVI interrupt enable. IELVI = 0 Disable LVI interrupt. IELVI = 1 Enable LVI interrupt. IEKBI: KBI interrupt enable. IEKBI = 0 Disable KBI interrupt. IEKBI = 1 Enable KBI interrupt. IEADC: A/D converter interrupt enable IEADC = 0 Disable ADC interrupt. IEADC = 1 Enable ADC interrupt. IESPI: SPI interrupt enable. IESPI = 0 Disable SPI interrupt. IESPI = 1 Enable SPI interrupt. IEPWM: PWM interrupt enable. IEPWM = 0 Disable PWM interrupt. IEPWM = 1 Enable PWM interrupt. ISSFA Ver. A 2010/06

12 Mnemonic: IEN2 Address: 9Ah ECmpI ERTC ES1 00h ECmpI: (only SM59R09A5 have) ECmpI =0 Disable Comparator interrupt. ECmpI =1 Enable Comparator interrupt (include comparator_0 and comparator_1). ERTC: (only SM59R09A5 have) 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. Mnemonic: IP0 Address: A9h - - IP0.5 IP0.4 IP0.3 IP0.2 IP0.1 IP0.0 00h Mnemonic: IP1 Address: B9h - - IP1.5 IP1.4 IP1.3 IP1.2 IP1.1 IP1.0 00h SM59R09A5/SM59R09A3 Priority levels IP1.x IP0.x Priority Level 0 0 Level0 (lowest) 0 1 Level1 1 0 Level2 1 1 Level3 (highest) SM59R09A5/SM59R09A3 Groups of priority Bit Group IP1.0, IP0.0 External interrupt 0 Serial channel 1 interrupt PWM interrupt IP1.1, IP0.1 Timer 0 interrupt RTC/ALARM interrupt (only SM59R09A5 have) SPI interrupt IP1.2, IP0.2 External interrupt 1 Comparator interrupt (only SM59R09A5 have) ADC interrupt IP1.3, IP0.3 Timer 1 interrupt - KBI interrupt IP1.4, IP0.4 Serial channel 0 interrupt - LVI interrupt IP1.5, IP0.5 Timer 2 interrupt - IIC interrupt ISSFA Ver. A 2010/06

13 SM59R09A5/SM59R09A3 Polling sequence Interrupt source External interrupt 0 Serial channel 1 interrupt PWM interrupt Timer 0 interrupt RTC/ALARM interrupt (only SM59R09A5 have) SPI interrupt External interrupt 1 Comparator interrupt (only SM59R09A5 have) ADC interrupt Timer 1 interrupt KBI interrupt Serial channel 0 interrupt LVI interrupt Timer 2 interrupt IIC interrupt Sequence Polling sequence b. W77E58 中斷功能使用之暫存器說明 : Mnemonic: IE Address: A8h EA ES1 ET2 ES0 ET1 EX1 ET0 EX0 00h EA: EA=0 Disable all interrupt. EA=1 Enable all interrupt. ES1: ES1=0 Disable Serial Port 1 interrupt. ES1=1 Enable Serial Port 1 interrupt. ET2: ET2=0 Disable Timer 2 overflow or external reload interrupt. ET2=1 Enable Timer 2 overflow or external reload interrupt. ES0: ES0=0 Disable Serial channel 0 interrupt. ES0=1 Enable Serial channel 0 interrupt. 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. ISSFA Ver. A 2010/06

14 Mnemonic: EIE Address: E8h EWDI EX5 EX4 EX3 EX2 00h EWDI: Watchdog timer interrupt enable. EWDI = 0 Disable Watchdog timer interrupt. EWDI = 1 Enable Watchdog timer interrupt. EX5: External Interrupt 5 enable. EX5 = 0 Disable External Interrupt 5. EX5 = 1 Enable External Interrupt 5. EX4: External Interrupt4 enable EX4 = 0 Disable External Interrupt4. EX4 = 1 Enable External Interrupt4. EX3: External Interrupt3 enable. EX3 = 0 Disable External Interrupt3. EX3 = 1 Enable External Interrupt3. EX2: External Interrupt2 enable. EX2 = 0 Disable External Interrupt2. EX2 = 1 Enable External Interrupt2. Mnemonic: IP Address: B8h - PS1 PT2 PS0 PT1 PX1 PT0 PX0 00h PS1: This bit defines the Serial port 1 interrupt priority. PS = 1 sets it to higher priority level. PT2: This bit defines the Timer 2 interrupt priority. PT2 = 1 sets it to higher priority level. PS0: This bit defines the Serial port 0 interrupt priority. PS = 1 sets it to higher priority level. PT1: This bit defines the Timer 1 interrupt priority. PT1 = 1 sets it to higher priority level. PX1: This bit defines the External interrupt 1 priority. PX1 = 1 sets it to higher priority level. PT0: This bit defines the Timer 0 interrupt priority. PT0 = 1 sets it to higher priority level. PX0: This bit defines the External interrupt 0 priority. PX0 = 1 sets it to higher priority level. Mnemonic: EIP Address: F8h PWDI PX5 PX4 PX3 PX2 00h PWDI: Watchdog timer interrupt priority. PX5: External Interrupt 5 Priority. = 0 - Low priority = 1 - High priority PX4: External Interrupt 4 Priority. = 0 - Low priority = 1 - High priority PX3: External Interrupt 3 Priority. ISSFA Ver. A 2010/06

15 = 0 - Low priority = 1 - High priority PX2: External Interrupt 2 Priority. = 0 - Low priority = 1 - High priority W77E58 Priority structure of interrupts Source Flag Priority Level External Interrupt 0 IE0 1(Highest) Timer 0 Overflow TF0 2 External Interrupt 1 IE1 3 Timer 1 Overflow TF1 4 Serial Port RI+TI 5 Timer 2 Overflow TF2+EXF2 6 Serial Port 1 RI_1+TI_1 7 External Interrupt 2 IE2 8 External Interrupt 3 IE3 9 External Interrupt 4 IE4 10 External Interrupt 5 IE5 11 Watchdog Timer WDIF 12(Lowest) ISSFA Ver. A 2010/06

16 附件三 : 雙串口設定不同說明 1. SM59R09A5/SM59R09A3 與 W77E58 雙串口功能比較 : 新茂 SM59R09A5/ SM59R09A 之第二組串口接腳與 W77E58 同樣位於 P1.2 及 P1.3, 但新茂還可將第 二組串口接腳切換至 P4.2 及 P4.3 新茂第二組串口中斷向量位於 0x83H,W77E58 第二組串口中斷向量位於 0x3BH 2. SM59R09A5/SM59R09A3 與 W77E58 雙串口特殊功能暫存器比較 : 特殊功能暫存器名稱 SM59R09A5/SM59R09A3 名稱及位址 W77E58 名稱及位址 串口 0 控制 S0CON (0x98H) SCON (0x98H) 串口 0 資料暫存器 S0BUF (0x99H) SBUF(0x99H) 串口 0 重載低位元暫存器 S0RELL(0xAAH) 無 串口 0 重載高位元暫存器 S0RELH(0xBAH) 無 串口 1 腳位控制暫存器 AUX(0x91H) 無 串口 1 控制 S1CON (0x9BH) SCON1(0xC0H) 串口 1 資料暫存器 S1BUF (0x9CH) SBUF1 (0xC1H) 串口 1 重載低位元暫存器 S1RELL(0x9DH) 無 串口 1 重載高位元暫存器 S1RELH(0xBBH) 無 串口 0 從機位址 無 SADDR(0xA9H) 串口 0 從機位址致能 無 SADEN(0xB9H) 串口 1 從機位址 無 SADDR1(0xAAH) 串口 1 從機位址致能 無 SADEN1(0xBAH) 3. SM59R09A5/SM59R09A3 與 W77E58 雙串口之特殊功能暫存器說明 : a. SM59R09A5/SM59R09A3 雙串口功能使用之暫存器說明 : Mnemonic: PCON Address: 87h SMOD MDUF STOP IDLE 40h SMOD: This bit doubles the serial port baud rate in mode 1, 2, and 3 when set to 1. Mnemonic: AUX Address: 91h BRS - P4SPI P4UR1 P4IIC P0KBI P2PWM DPS 00H ISSFA Ver. A 2010/06

17 BRS: Baud rate generator at Serial interface 0 modes 1 and 3 SMOD 2 FOSC BRS = 0; Baud Rate = TH1 ( ) SMOD 2 FOSC BRS = 1; Baud Rate = ( 2 S0REL) P4UR1: P4UR1 = 0 Serial interface 1 function on P1. P4UR1 = 1 Serial interface 1 function on P4. P4UR1 RXD1 TXD1 0 P1.2 P1.3 1 P4.2 P4.3 Mnemonic: S0CON Address: 98h SM0 SM1 SM20 REN0 TB80 RB80 TI0 RI0 00h SM0,SM1: Serial Port 0 mode selection. SM0 SM1 Mode Description Board Rate Shift register Fosc/ bit UART Variable bit UART Fosc/32 or Fosc/ bit UART Variable SM20: Enables multiprocessor communication feature REN0: If set, enables serial reception. Cleared by software to disable reception. TB80: The 9 th transmitted data bit in modes 2 and 3. Set or cleared by the CPU depending on the function it performs such as parity check, multiprocessor communication etc. RB80: In modes 2 and 3, it is the 9 th data bit received. In mode 1, if SM20 is 0, RB80 is the stop bit. In mode 0, this bit is not used. Must be cleared by software. TI0: Transmit interrupt flag, set by hardware after completion of a serial transfer. Must be cleared by software. RI0: Receive interrupt flag, set by hardware after completion of a serial reception. Must be cleared by software. Mnemonic: S1CON Address: 9Bh SM - SM21 REN1 TB81 RB81 TI1 RI1 00h SM: Serial Port 1 mode select. SM Mode Description Baud Rate 0 A 9-bit UART Variable 1 B 8-bit UART Variable FOSC Baud rate generator at Serial interface 1; Baud Rate = ( 2 S1REL) SM21: Enables multiprocessor communication feature. REN1: If set, enables serial reception. Cleared by software to disable reception. TB81: The 9 th transmitted data bit in mode A. Set or cleared by the CPU depending ISSFA Ver. A 2010/06

18 on the function it performs such as parity check, multiprocessor communication etc. RB81: In mode A, it is the 9 th data bit received. In mode B, if SM21 is 0, RB81 is the stop bit. Must be cleared by software. TI1: Transmit interrupt flag, set by hardware after completion of a serial transfer. Must be cleared by software. RI1: Receive interrupt flag, set by hardware after completion of a serial reception. Must be cleared by software. b. W77E58 雙串口功能使用之暫存器說明 : Mnemonic: PCON Address: 87h SMOD SMOD STOP IDLE 00h SMOD: This bit doubles the serial port baud rate in mode 1, 2, and 3 when set to 1. SMOD0: Framing Error Detection Enable: When SMOD0 is set to 1, then SCON.7 (SCON1.7) indicates a Frame Error and acts as the FE(FE_1) flag. When SMOD0 is 0, then SCON.7(SCON1.7) acts as per the standard 8052 function. Mnemonic: SCON Address: 98h SM0/FE SM1 SM2 REN TB8 RB8 TI RI 00h SM0/FE: Serial port 0, Mode 0 bit or Framing Error Flag: The SMOD0 bit in PCON SFR determines whether this bit acts as SM0 or as FE. The operation of SM0 is described below. When used as FE, this bit will be set to indicate an invalid stop bit. This bit must be manually cleared in software to clear the FE condition. SM0,SM1: Serial Port 0 mode selection. SM0 SM1 Mode Description Length Board Rate Synchronous 8 4/12 Tclk Asynchronous 10 Variable Asynchronous 11 Fosc/32 or Fosc/ Asynchronous 11 Variable SM2: Multiple processors communication. Setting this bit to 1 enables the multiprocessor communication feature in mode 2 and 3. In mode 2 or 3, if SM2 is set to 1, then RI will not be activated if the received 9th data bit (RB8) is 0. In mode 1, if SM2 = 1, then RI will not be activated if a valid stop bit was not received. In mode 0, the SM2 bit controls the serial port clock. If set to 0, then the serial port runs at a divide by 12 clock of the oscillator. This gives compatibility with the standard When set to 1, the serial clock become divide by 4 of the oscillator clock. This results in faster synchronous serial communication. REN: Receive enable: When set to 1 serial reception is enabled, otherwise reception is disabled. TB8: This is the 9th bit to be transmitted in modes 2 and 3. This bit is set and cleared by software as desired. RB8: In modes 2 and 3 this is the received 9th data bit. In mode 1, if SM2 = 0, RB8 is the stop bit that was received. In mode 0 it has no function. TI: Transmit interrupt flag: This flag is set by hardware at the end of the 8th bit time in mode 0, or at the beginning of the stop bit in all other modes during serial ISSFA Ver. A 2010/06

19 transmission. This bit must be cleared by software. RI: Receive interrupt flag: This flag is set by hardware at the end of the 8th bit time in mode 0, or halfway through the stop bits time in the other modes during serial reception. However the restrictions of SM2 apply to this bit. This bit can be cleared only by software. Mnemonic: SADDR Address: A9h 00h SADDR: The SADDR should be programmed to the given or broadcast address for serial port 0 to which the slave processor is designated. Mnemonic: SADDR1 Address: AAh 00h SADDR1: The SADDR1 should be programmed to the given or broadcast address for serial port 1 to which the slave processor is designated. Mnemonic: SADEN Address: B9h 00h SADEN: This register enables the Automatic Address Recognition feature of the Serial port 0. When a bit in the SADEN is set to 1, the same bit location in SADDR will be compared with the incoming serial data. When SADEN.n is 0, then the bit becomes a "don't care" in the comparison. This register enables the Automatic Address Recognition feature of the Serial port 0. When all the bits of SADEN are 0, interrupt will occur for any incoming address. Mnemonic: SADEN1 Address: BAh 00h SADEN1: This register enables the Automatic Address Recognition feature of the Serial port 1. When a bit in the SADEN1 is set to 1, the same bit location in SADDR1 will be compared with the incoming serial data. When SADEN1.n is 0, then the bit becomes a "don't care" in the comparison. This register enables the Automatic Address Recognition feature of the Serial port 1. When all the bits of SADEN1 are 0, interrupt will occur for any incoming address. ISSFA Ver. A 2010/06

20 Mnemonic: SCON1 Address: C0h SM0_1/FE_1 SM1_1 SM2_1 REN_1 TB8_1 RB8_1 TI_1 RI_1 00h SM0_1/FE_1: Serial port 1, Mode 0 bit or Framing Error Flag 1: The SMOD0 bit in PCON SFR determines whether this bit acts as SM0_1 or as FE_1. the operation of SM0_1 is described below. When used as FE_1, this bit will be set to indicate an invalid stop bit. This bit must be manually cleared in software to clear the FE_1 condition. SM0_1,SM1_1: Serial Port 1 mode selection. SM0_1 SM1_1 Mode Description Length Board Rate Synchronous 8 4/12 Tclk Asynchronous 10 Variable Asynchronous 11 Fosc/32 or Fosc/ Asynchronous 11 Variable SM2_1: Multiple processors communication. Setting this bit to 1 enables the multiprocessor communication feature in mode 2 and 3. In mode 2 or 3, if SM2_1 is set to 1, then RI_1 will not be activated if the received 9th data bit (RB8_1) is 0. In mode 1, if SM2_1 = 1, then RI_1 will not be activated if a valid stop bit was not received. In mode 0, the SM2_1 bit controls the serial port 1 clock. If set to 0, then the serial port 1 runs at a divide by 12 clock of the oscillator. This gives compatibility with the standard When set to 1, the serial clock become divide by 4 of the oscillator clock. This results in faster synchronous serial communication. REN_1: Receive enable: When set to 1 serial reception is enabled, otherwise reception is disabled. TB8_1: This is the 9th bit to be transmitted in modes 2 and 3. This bit is set and cleared by software as desired. RB8_1: In modes 2 and 3 this is the received 9th data bit. In mode 1, if SM2_1 = 0, RB8_1 is the stop bit that was received. In mode 0 it has no function. TI_1: Transmit interrupt flag: This flag is set by hardware at the end of the 8th bit time in mode 0, or at the beginning of the stop bit in all other modes during serial transmission. This bit must be cleared by software. RI_1: Receive interrupt flag: This flag is set by hardware at the end of the 8th bit time in mode 0, or halfway through the stop bits time in the other modes during serial reception. However the restrictions of SM2_1 apply to this bit. This bit can be cleared only by software. ISSFA Ver. A 2010/06

21 附件四 : 計時器 2 設定不同說明 1. SM59R09A5/SM59R09A3 與 W77E58 計時器 2 功能比較 : 新茂 SM59R09A5/ SM59R09A3 之計時器 2 除了可當 16 位元之計時器, 還有 4 個通道之比較 捕獲及 重載之功能, 類似於可編程計數器陣列 (PCA) W77E58 之計時器 2 只可當 16 位元之計時器用 2. SM59R09A5/SM59R09A3 與 W77E58 計時器 2 之特殊功能暫存器比較 : 特殊功能暫存器名稱 SM59R09A5/SM59R09A3 名稱及位址 W77E58 名稱及位址 計時器 2 控制暫存器 T2CON (0xA8H) T2CON (0xA8H) 計時器 2 模式控制暫存器 T2MOD(0xA9H) 計時器 2 捕獲重載低位元 CRCL(0xCAH) RCAP2L(0xCAH) 計時器 2 捕獲重載高位元 CRCH(0xCBH) RCAP2H(0xCBH) 計時器 2 低位元 TL2(0xCCH) TL2(0xCCH) 計時器 2 高位元 TH2(0xCDH) TH2(0xCDH) CKCON(0xA8H) 比較及補獲通道選擇暫存器 AUX2(0x92H) 比較及補獲控制暫存器 CCCON(0xC9H) 比較及補獲致能暫存器 1 CCEN(0xC1H) 比較及補獲致能暫存器 2 CCEN2(0xD1H) 比較 捕獲及重載通道 1 低位元 CCL1(0xC2H) 比較 捕獲及重載通道 1 高位元 CCH1(0xC3H) 比較 捕獲及重載通道 2 低位元 CCL2(0xC4H) 比較 捕獲及重載通道 2 高位元 CCH2(0xC5H) 比較 捕獲及重載通道 3 低位元 CCL3(0xC6H) 比較 捕獲及重載通道 3 高位元 CCH3(0xC7H) 3. SM59R09A5/SM59R09A3 與 W77E58 計時器 2 之特殊功能暫存器說明 : a. SM59R09A5/SM59R09A3 計時器 2 功能使用之暫存器說明 : Mnemonic: T2CON Address: C8h T2PS[2:0] T2R[1:0] - T2I[1:0] 00H T2PS[2:0]: Prescaler select bit: T2PS = 000 timer 2 is clocked with the oscillator frequency. T2PS = 001 timer 2 is clocked with 1/2 of the oscillator frequency. ISSFA Ver. A 2010/06

22 T2PS = 010 timer 2 is clocked with 1/4 of the oscillator frequency. T2PS = 011 timer 2 is clocked with 1/6 of the oscillator frequency. T2PS = 100 timer 2 is clocked with 1/8 of the oscillator frequency. T2PS = 101 timer 2 is clocked with 1/12 of the oscillator frequency. T2PS = 110 timer 2 is clocked with 1/24 of the oscillator frequency. T2R[1:0]: Timer 2 reload mode selection T2R[1:0] = 0X Reload disabled T2R[1:0] = 10 Mode 0 T2R[1:0] = 11 Mode 1 T2I[1:0]: Timer 2 input selection T2I[1:0] = 00 Timer 2 stop T2I[1:0] = 01 Input frequency f/12 or f/24 T2I[1:0] = 10 Timer 2 is incremented by external signal at pin T2 T2I[1:0] = 11 internal clock input is gated to the Timer 2 Mnemonic: AUX2 Address: 92h P42CC[1: 0] 00H P42CC[1: 0] 00: Capture/Compare function on Port1. 01: Capture/Compare function on Port2 10: Capture/Compare function on Port4 11: reserved P42CC[1: 0] CC0 CC1 CC2 CC3 00 P1.0 P1.1 P1.3 P P2.0 P2.1 P2.2 P P4.0 P4.1 P4.2 P4.3 Mnemonic: CCCON Address: C9h CCI3 CCI2 CCI1 CCI0 CCF3 CCF2 CCF1 CCF0 00H CCI3: Compare/Capture 3 interrupt control bit. 1 is enable. CCI2: Compare/Capture 2 interrupt control bit. 1 is enable. CCI1: Compare/Capture 1 interrupt control bit. 1 is enable. CCI0: Compare/Capture 0 interrupt control bit. 1 is enable. CCF3: Compare/Capture 3 flag set by hardware. This flag can be cleared by software. CCF2: Compare/Capture 2 flag set by hardware. This flag can be cleared by software. CCF1: Compare/Capture 1 flag set by hardware. This flag can be cleared by software. CCF0: Compare/Capture 0 flag set by hardware. This flag can be cleared by software. Compare/Capture interrupt share T2 interrupt vector. ISSFA Ver. A 2010/06

23 Mnemonic: CCEN Address: C1h -- COCAM1[2:0] -- COCAM0[2:0] 00H COCAM1[2:0]: 000: Compare/Capture disable 001: Compare enable but no output on Pin 010: Compare mode 0 011: Compare mode 1 100: Capture on rising edge at pin CC1 101: Capture on falling edge at pin CC1 110: Capture on both rising and falling edge at pin CC1 111: Capture on write operation into register CC1 COCAM0[2:0]: 000: Compare/Capture disable 001: Compare enable but no output on Pin 010: Compare mode 0 011: Compare mode 1 100: Capture on rising edge at pin CC0 101: Capture on falling edge at pin CC0 110: Capture on both rising and falling edge at pin CC0 111: Capture on write operation into register CC0 Mnemonic: CCEN2 Address: D1h -- COCAM3[2:0] -- COCAM2[2:0] 00H COCAM3[2:0]: 000: Compare/Capture disable 001: Compare enable but no output on Pin 010: Compare mode 0 011: Compare mode 1 100: Capture on rising edge at pin CC3 101: Capture on falling edge at pin CC3 110: Capture on both rising and falling edge at pin CC3 111: Capture on write operation into register CC3 COCAM2[2:0]: 000: Compare/Capture disable 001: Compare enable but no output on Pin 010: Compare mode 0 011: Compare mode 1 100: Capture on rising edge at pin CC2 101: Capture on falling edge at pin CC2 110: Capture on both rising and falling edge at pin CC2 111: Capture on write operation into register CC2 b. W77E58 計時器 2 功能使用之暫存器說明 : Mnemonic: T2CON Address: C8h TF2 EXF2 RCLK TCLK EXEN2 TR2 C / T2 CP / RL2 00H TF2: Timer 2 overflow flag: This bit is set when Timer 2 overflows. It is also set when the count is equal to the capture register in down count mode. It can be set only if RCLK and TCLK are both 0. It is cleared only by software. Software can also set or clear this bit. ISSFA Ver. A 2010/06

24 EXF2: Timer 2 External Flag: A negative transition on the T2EX pin (P1.1) or timer 2 overflow will cause this flag to set based on the CP / RL2, EXEN2 and DCEN bits. If set by a negative transition, this flag must be cleared by software. Setting this bit in software or detection of a negative transition on T2EX pin will force a timer interrupt if enabled. RCLK: Receive Clock Flag: This bit determines the serial port 0 time-base when receiving data in serial modes 1 or 3. If it is 0, then timer 1 overflow is used for baud rate generation, otherwise timer 2 overflow is used. Setting this bit forces timer 2 in baud rate generator mode. TCLK: Transmit Clock Flag: This bit determines the serial port 0 time-base when transmitting data in modes 1 and 3. If it is set to 0, the timer 1 overflow is used to generate the baud rate clock otherwise timer 2 overflow is used. Setting this bit forces timer 2 in baud rate generator mode. EXEN2: Timer 2 External Enable. This bit enables the capture/reload function on the T2EX pin if Timer 2 is not generating baud clocks for the serial port. If this bit is 0, then the T2EX pin will be ignored, otherwise a negative transition detected on the T2EX pin will result in capture or reload. TR2: Timer 2 Run Control. This bit enables/disables the operation of timer 2. Clearing this bit will halt the timer 2 and preserve the current count in TH2, TL2. C/T2: Counter/Timer Select. This bit determines whether timer 2 will function as a timer or a counter. Independent of this bit, the timer will run at 2 clocks per tick when used in baud rate generator mode. If it is set to 0, then timer 2 operates as a timer at a speed depending on T2M bit (CKCON.5), otherwise it will count negative edges on T2 pin. CP/RL2: Capture/Reload Select. This bit determines whether the capture or reload function will be used for timer 2. If either RCLK or TCLK is set, this bit will be ignored and the timer will function in an auto-reload mode following each overflow. If the bit is 0 then auto-reload will occur when timer 2 overflows or a falling edge is detected on T2EX pin if EXEN2 = 1. If this bit is 1, then timer 2 captures will occur when a falling edge is detected on T2EX pin if EXEN2 =1. Mnemonic: T2MOD Address: C9h HC5 HC4 HC3 HC2 T2CR T2OE DCEN 00H HC5: Hardware Clear INT5 flag. Setting this bit allows the flag of external interrupt 5 to be automatically cleared by hardware while entering the interrupt service routine. HC4: Hardware Clear INT4 flag. Setting this bit allows the flag of external interrupt 4 to be automatically cleared by hardware while entering the interrupt service routine. HC3: Hardware Clear INT3 flag. Setting this bit allows the flag of external interrupt 3 to be automatically cleared by hardware while entering the interrupt service routine. HC2: Hardware Clear INT2 flag. Setting this bit allows the flag of external interrupt 3 to be automatically cleared by hardware while entering the interrupt service routine. T2CR: Timer 2 Capture Reset. In the Timer 2 Capture Mode this bit enables/disables hardware automatically reset Timer 2 while the value in TL2 and TH2 have been transferred into the capture register. T2OE: Timer 2 Output Enable. This bit enables/disables the Timer 2 clock out function. DCEN: Down Count Enable: This bit, in conjunction with the T2EX pin, controls the direction that timer 2 counts in 16-bit auto-reload mode. ISSFA Ver. A 2010/06

25 Mnemonic: CKCON Address: 8Eh WD1 WD0 T2M T1M T0M MD2 MD1 MD0 04H WD1-0: Watchdog timer mode select bits: These bits determine the time-out period for the watchdog timer. In all four time-out options the reset time-out is 512 clocks more than the interrupt timeout period. WD1 WD0 Interrupt time-out Reset time-out T2M: Timer 2 clock select: When T2M is set to 1, timer 2 uses a divide by 4 clock, and when set to 0 it uses a divide by 12 clock. T1M: Timer 1 clock select: When T1M is set to 1, timer 1 uses a divide by 4 clock, and when set to 0 it uses a divide by 12 clock. T0M: Timer 0 clock select: When T0M is set to 1, timer 0 uses a divide by 4 clock, and when set to 0 it uses a divide by 12 clock. MD2-0: Stretch MOVX select bits: These three bits are used to select the stretch value for the MOVX instruction. Using a variable MOVX length enables the user to access slower external memory devices or peripherals without the need for external circuits. The RD or WR strobe will be stretched by the selected interval. When accessing the on-chip SRAM, the MOVX instruction is always in 2 machine cycles regardless of the stretch setting. By default, the stretch has value of 1. If the user needs faster accessing, then a stretch value of 0 should be selected. MD2 MD1 MD0 Stretch value MOVX duration machine cycles machine cycles (Default) machine cycles machine cycles machine cycles machine cycles machine cycles machine cycles ISSFA Ver. A 2010/06

20uA at VDD=5.5V 5uA at VDD=3.6V. 1T up to 20 (1T~8T can change on fly) RC ( 24MHz) Program Flash ( byte) 4K 4K RAM( byte)

20uA at VDD=5.5V 5uA at VDD=3.6V. 1T up to 20 (1T~8T can change on fly) RC ( 24MHz) Program Flash ( byte) 4K 4K RAM( byte) SM894051 SM39R4051 SM39R4051 SM39R4051 SM894051 SM894051 SM39R4051 MCU ( 1) Feature SM894051 SM39R4051 (V) 3.0~5.5 2.7~5.5 I DD (Power Down) 20uA at VDD=5.5V 5uA at VDD=3.6V 3.5uA at VDD=5.0V System clock(mhz)

More information

7.2.1 Timer 2 Capture LSB... 24

7.2.1 Timer 2 Capture LSB... 24 Data Sheet 8-BIT MICROCONTROLLER Table of Contents-. GENERAL DESCRIPTION... 3 2. FEATURES... 3 3. PIN CONFIGURATIONS... 4 4. PIN DESCRIPTION... 5 5. FUNCTIONAL DESCRIPTION... 6 6. MEMORY ORGANIZATION...

More information

SPI 功能使用方法 Application Note

SPI 功能使用方法 Application Note 1 適用產品 :SM59R16A2 / SM59R08A2 2 SPI 使用概述 : SPI 通信使用 4 個引腳, 分別為 SPI_: 當 master 時資料輸出 ; 當 slave 時資料輸入 SPI_: 當 master 時資料輸入 ; 當 slave 時資料輸出 SPI_SCK: SPI 的時脈信號由 master 主控產生 ; 資料 ( 輸出及輸入 ) 和時脈同步 SPI_SS: 此引腳功能唯有當作

More information

Preliminary W77E58 8 BIT MICROCONTROLLER. Table of Contents-- Publication Release Date: March Revision A1

Preliminary W77E58 8 BIT MICROCONTROLLER. Table of Contents-- Publication Release Date: March Revision A1 8 BIT MICROCONTROLLER Table of Contents-- GENERAL DESCRIPTION...2 FEATURES...2 PIN CONFIGURATION...3 PIN DESCRIPTION...4 BLOCK DIAGRAM...6 FUNCTIONAL DESCRIPTION...7 MEMORY ORGANIZATION...8 INSTRUCTION...29

More information

W77E058A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

W77E058A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- Data Sheet 8-BIT MICROCONTROLLER Table of Contents-. GENERAL DESCRIPTION... 3 2. FEATURES... 3 3. PIN CONFIGURATIONS... 4 4. PIN DESCRIPTION... 5 5. FUNCTIONAL DESCRIPTION... 7 6. MEMORY ORGANIZATION...

More information

W77IE58 8-BIT MICROCONTROLLER. Table of Contents-- Publication Release Date: December Revision A2

W77IE58 8-BIT MICROCONTROLLER. Table of Contents-- Publication Release Date: December Revision A2 8-BIT MICROCONTROLLER Table of Contents-- GENERAL DESCRIPTION... 2 FEATURES... 2 PIN CONFIGURATIONS... 3 PIN DESCRIPTION... 4 BLOCK DIAGRAM... 6 FUNCTIONAL DESCRIPTION... 7 MEMORY ORGANIZATION... 8 Instruction...

More information

Preliminary W77C32 8 BIT MICROCONTROLLER GENERAL DESCRIPTION FEATURES

Preliminary W77C32 8 BIT MICROCONTROLLER GENERAL DESCRIPTION FEATURES GENERAL DESCRIPTION 8 BIT MICROCONTROLLER The W77C32 is a fast 805 compatible microcontroller with a redesigned processor core without wasted clock and memory cycles. As a result, it executes every 805

More information

W77LE58/W77L058A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- Publication Release Date: April 17, Revision A7

W77LE58/W77L058A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- Publication Release Date: April 17, Revision A7 Data Sheet 8-BIT MICROCONTROLLER Table of Contents-. GENERAL DESCRIPTION... 2 2. FEATURES... 2 3. PIN CONFIGURATIONS... 3 4. PIN DESCRIPTION... 4 5. FUNCTIONAL DESCRIPTION... 5 6. MEMORY ORGANIZATION...

More information

High-Speed Microcontroller User s Guide

High-Speed Microcontroller User s Guide Rev: 338 High-Speed Microcontroller User s Guide Maxim Integrated Products 1 TABLE OF CONTENTS High-Speed Microcontroller User s Guide 1. INTRODUCTION...9 2. ORDERING INFORMATION...1 3. ARCHITECTURE...11

More information

High-Speed Microcontroller User s Guide

High-Speed Microcontroller User s Guide . www.maxim-ic.com High-Speed Microcontroller User s Guide TABLE OF CONTENTS. INTRODUCTION...6 2. ORDERING INFORMATION...7 3. ARCHITECTURE...8 3. ALU... 8 3.2 SPECIAL FUNCTION REGISTERS (SFRS)... 8 4.

More information

SM59R16A2/SM59R08A2 8-Bit Micro-controller 64KB/32KB ISP Flash & 2KB RAM embedded. Product List

SM59R16A2/SM59R08A2 8-Bit Micro-controller 64KB/32KB ISP Flash & 2KB RAM embedded. Product List Product List SM59R16A2L25, SM59R16A2C25 SM59R08A2L25, SM59R08A2C25 Description The SM59R16A2/SM59R08A2 is a 1T (one machine cycle per clock) single-chip 8-bit microcontroller. It has 64K/32K-byte embedded

More information

SM39R16A3 8-Bit Micro-controller with 16KB ISP Flash & 512B RAM embedded

SM39R16A3 8-Bit Micro-controller with 16KB ISP Flash & 512B RAM embedded Product List... 3 Description... 3 Ordering Information... 3 Features... 3 Pin Configuration... 4 Block Diagram... 6 Pin Description... 7 Special Function Register (SFR)... 8 Function Description... 12

More information

SM39R16A2/SM39R12A2/SM39R08A2 8-Bit Micro-controller 16KB/12KB/8KB with ISP Flash & 256B RAM embedded

SM39R16A2/SM39R12A2/SM39R08A2 8-Bit Micro-controller 16KB/12KB/8KB with ISP Flash & 256B RAM embedded Table of Contents Description...3 Features...3 Pin Configuration...4 28 Pin PDIP/SOP...4 24 Pin PDIP/SOP...5 20 Pin PDIP/SOP/SSOP...5 Block Diagram...6 Pin Description...7 Special Function Register (SFR)...10

More information

W77L516A DATA SHEET 8-BIT MICROCONTROLLER. Table of Contents-

W77L516A DATA SHEET 8-BIT MICROCONTROLLER. Table of Contents- DATA SHEET 8-BIT MICROCONTROLLER Table of Contents-. GENERAL DESCRIPTION... 2 2. FEATURES... 2 3. PIN CONFIGURATIONS... 3 4. PIN DESCRIPTION... 4 5. FUNCTIONAL DESCRIPTION... 6 6. MEMORY ORGANIZATION...

More information

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52 Features Compatible with MCS -51 Products 8K Bytes of In-System Programmable (ISP) Flash Memory Endurance: 10,000 Write/Erase Cycles 4.0V to 5.5V Operating Range Fully Static Operation: 0 Hz to 33 MHz

More information

W79E201 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

W79E201 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- Data Sheet Table of Contents- 8-BIT MICROCONTROLLER. GENERAL DESCRIPTION... 3 2. FEATURES... 3 3. PIN CONFIGURATION...4 4. PIN DESCRIPTION... 5 5. BLOCK DIAGRAM... 6 6. FUNCTIONAL DESCRIPTION... 7 7. MEMORY

More information

W77E532/W77E532A DATA SHEET 8-BIT MICROCONTROLLER. Table of Contents-

W77E532/W77E532A DATA SHEET 8-BIT MICROCONTROLLER. Table of Contents- DATA SHEET 8-BIT MICROCONTROLLER Table of Contents-. GENERAL DESCRIPTION...2 2. FEATURES...2 3. PIN CONFIGURATIONS...3 4. PIN DESCRIPTION...4 5. FUNCTIONAL DESCRIPTION...6 6. MEMORY ORGANIZATION...8 7.

More information

8.1.1 External Data Memory Access Timing...32

8.1.1 External Data Memory Access Timing...32 Data Sheet 8-BIT MICROCONTROLLER Table of Contents- 1. GENERAL DESCRIPTION... 3 2. FEATURES... 3 3. PIN CONFIGURATIONS... 4 4. PIN DESCRIPTION... 5 5. BLOCK DIAGRAM... 7 6. FUNCTIONAL DESCRIPTION... 8

More information

Chapter Addressing Modes

Chapter Addressing Modes Chapter 5 8051 Addressing Modes 1 Sections 5.1 Immediate and register addressing modes 5.2 Accessing memory using various address modes 2 Objective 程式中的資料可能是放在 Register 中, 或在 RAM 中某一位址上, 或在 ROM 一塊特殊區域放置資料,

More information

DS89C420 Ultra High-Speed Microcontroller User s Guide

DS89C420 Ultra High-Speed Microcontroller User s Guide DS89C42 Ultra High-Speed Microcontroller User s Guide www.maxim-ic.com SECTION 1: INTRODUCTION The Dallas Semiconductor DS89C42 is an 851-compatible microcontroller that provides improved performance and

More information

SECTION 1: INTRODUCTION 5 SECTION 2: ORDERING INFORMATION 5 SECTION 3: ARCHITECTURE 5

SECTION 1: INTRODUCTION 5 SECTION 2: ORDERING INFORMATION 5 SECTION 3: ARCHITECTURE 5 Rev: 6, 2/4 Ultra-High-Speed Flash 6kB FLASH MEMORY kb SRAM 33 DUAL DATA POINTERS WITH AUTO- SELECT INCREMENT/ DECREMENT HIGH-SPEED ONE CLOCK-CYCLE 85 MICROPROCESSOR FOUR 8-BIT PARALLEL PORTS MIPS 25 5

More information

Rev. No. History Issue Date Remark

Rev. No. History Issue Date Remark Preliminary Bar Code Reader Document Title Bar Code Reader Revision History Rev. No. History Issue Date Remark 0.0 Initial issue June 5, 2000 Preliminary 0.1 Change document title from Bar Code Reader

More information

Chapter 7. Digital Arithmetic and Arithmetic Circuits. Signed/Unsigned Binary Numbers

Chapter 7. Digital Arithmetic and Arithmetic Circuits. Signed/Unsigned Binary Numbers Chapter 7 Digital Arithmetic and Arithmetic Circuits Signed/Unsigned Binary Numbers Signed Binary Number: A binary number of fixed length whose sign (+/ ) is represented by one bit (usually MSB) and its

More information

Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 4199

Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 4199 Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 4199 Keywords: 8051,single-cycle,upgrade,flash,high speed,performance APPLICATION NOTE 4199 Porting Applications

More information

SM59R16G6/SM59R09G6/SM59R05G6 8-Bit Micro-controller 64KB/36KB/20KB with ISP Flash & 1KB RAM embedded

SM59R16G6/SM59R09G6/SM59R05G6 8-Bit Micro-controller 64KB/36KB/20KB with ISP Flash & 1KB RAM embedded Description... 3 Features... 3 Pin Configuration... 4 Block Diagram... 8 Pin Description... 9 Special Function Register (SFR)... 11 Function Description... 14 1. General Features... 14 1.1. Embedded Flash...

More information

8XC51RA RB RC Hardware Description

8XC51RA RB RC Hardware Description 8XC51RA RB RC Hardware Description February 1995 Order Number 272668-001 Information in this document is provided in connection with Intel products Intel assumes no liability whatsoever including infringement

More information

W77E532 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

W77E532 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- Data Sheet Table of Contents- 8-BIT MICROCONTROLLER GENERAL DESCRIPTION FEATURES 3 PIN CONFIGURATIONS 3 4 PIN DESCRIPTION 4 5 BLOCK DIAGRAM 6 6 FUNCTIONAL DESCRIPTION 7 7 MEMORY ORGANIZATION 8 8 INSTRUCTION

More information

Lecture 9. Timer Operations and Programming

Lecture 9. Timer Operations and Programming Lecture 9 Timer Operations and Programming Timer Operations and Programming Introduction Summary of timers Timer programming sequence Summary of timer SFRs Timer 0-1: 8-bit auto-reload mode (mode 2) Programming

More information

Distributed by: www.jameco.com 1-800-831-4242 The content and copyrights of the attached material are the property of its owner. 8051 8052 and 80C51 Hardware Description December 1992 Order Number 270252-006

More information

DS87C520/DS83C520 EPROM/ROM High-Speed Micro

DS87C520/DS83C520 EPROM/ROM High-Speed Micro EPROM/ROM High-Speed Micro www.dalsemi.com FEATURES 80C52-compatible - 8051 pin- and instruction set-compatible - Four 8-bit I/O ports - Three 16-bit timer/counters - 256 bytes scratchpad RAM Large on-chip

More information

ULTRA-HIGH-SPEED FLASH MICROCONTROLLER USER S GUIDE

ULTRA-HIGH-SPEED FLASH MICROCONTROLLER USER S GUIDE ULTRA-HIGH-SPEED FLASH MICROCONTROLLER USER S GUIDE 33 FLASH MEMORY SRAM 25 MIPS DECREMENT 851 MICROPROCESSOR 5 PORTS 1 ORIGINAL 851 ULTRA-HIGH-SPEED FLASH MICROCONTROLLER The Ultra-High-Speed Flash should

More information

MEGAWIN MPC89L516X2. 8-bit micro-controller. Features

MEGAWIN MPC89L516X2. 8-bit micro-controller. Features MPC89L516X2 8-bit micro-controller Features 8-bit 80C52-compatible Microcontroller Fully instruction set compatible Pin-to-pin package compatible Power voltage range: V CC = 2.4V ~ 3.6V Optional 12 clocks

More information

SM59R16A5/SM59R09A5/SM59R05A5 8-Bit Micro-controller 64KB/36KB/20KB with ISP Flash & 2KB RAM embedded

SM59R16A5/SM59R09A5/SM59R05A5 8-Bit Micro-controller 64KB/36KB/20KB with ISP Flash & 2KB RAM embedded Description... 3 Features... 3 Pin Configuration... 4 Block Diagram... 8 Pin Description... 9 Special Function Register (SFR)... 11 Function Description... 15 1. General Features... 15 1.1. Embedded Flash...

More information

PC Link Mode. Terminate PC Link? Esc. [GO]/[Esc] - - [GO]/[Esc] 轉接座未放滿. Make auto accord with socket mounted? [GO]/[Esc] Copy to SSD E0000

PC Link Mode. Terminate PC Link? Esc. [GO]/[Esc] - - [GO]/[Esc] 轉接座未放滿. Make auto accord with socket mounted? [GO]/[Esc] Copy to SSD E0000 Start SU-6808 EMMC Programmer V.0bd7 [ ]Link PC / [ ]Menu [ ] >.Select project.make new project.engineer mode.reset counter 5.Link to PC [ ] PC disconnected PC connected Select project SEM0G9C_A.prj Terminate

More information

8-bit Microcontroller with 12K Bytes Flash and 2K Bytes EEPROM AT89S8253

8-bit Microcontroller with 12K Bytes Flash and 2K Bytes EEPROM AT89S8253 Features Compatible with MCS -51 Products 12K Bytes of In-System Programmable (ISP) Flash Program Memory SPI Serial Interface for Program Downloading Endurance: 10,000 Write/Erase Cycles 2K Bytes EEPROM

More information

8-bit Microcontroller with 12K Bytes Flash and 2K Bytes EEPROM AT89S8253. Preliminary

8-bit Microcontroller with 12K Bytes Flash and 2K Bytes EEPROM AT89S8253. Preliminary Features Compatible with MCS -51 Products 12K Bytes of In-System Programmable (ISP) Flash Program Memory SPI Serial Interface for Program Downloading Endurance: 10,000 Write/Erase Cycles 2K Bytes EEPROM

More information

SM5964B 8-Bit Micro-controller 64KB with ISP Flash & 1KB RAM embedded

SM5964B 8-Bit Micro-controller 64KB with ISP Flash & 1KB RAM embedded Product List... 3 Description... 3 Ordering Information... 3 Features... 3 Pin Configuration... 4 Block Diagram... 7 Special Function Register (SFR)... 9 Function Description... 12 1. General Features...

More information

DS87C520/DS83C520. EPROM/ROM High Speed Micro PRELIMINARY PACKAGE OUTLINE FEATURES

DS87C520/DS83C520. EPROM/ROM High Speed Micro PRELIMINARY PACKAGE OUTLINE FEATURES PRELIMINARY DS87C520/DS83C520 EPROM/ROM High Speed Micro FEATURES 80C52 compatible 8051 pin and instruction set compatible Four 8 bit I/O ports Three 16 bit timer/counters 256 bytes scratchpad RAM Large

More information

P89V52X2. 1. General description. 2. Features. 8-bit 80C51 low power 8 kb flash microcontroller with 256 B RAM, 192 B data EEPROM

P89V52X2. 1. General description. 2. Features. 8-bit 80C51 low power 8 kb flash microcontroller with 256 B RAM, 192 B data EEPROM 8-bit 80C51 low power 8 kb flash microcontroller with 256 B RAM, 192 B data EEPROM Rev. 01 7 June 2007 Preliminary data sheet 1. General description The is an 80C51 microcontroller with 8 kb flash, 256

More information

ISSI. IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH ISSI IS89C51 NOVEMBER 1998 FEATURES GENERAL DESCRIPTION

ISSI. IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH ISSI IS89C51 NOVEMBER 1998 FEATURES GENERAL DESCRIPTION IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH NOVEMBER 1998 FEATURES 80C51 based architecture 4-Kbytes of on-chip Reprogrammable Flash Memory 128 x 8 RAM Two 16-bit Timer/Counters

More information

SSL VPN User Manual (SSL VPN 連線使用手冊 )

SSL VPN User Manual (SSL VPN 連線使用手冊 ) SSL VPN User Manual (SSL VPN 連線使用手冊 ) 目錄 前言 (Preface) 1. ACMICPC 2018 VPN 連線說明 -- Pulse Secure for Windows ( 中文版 ):... 2 2. ACMICPC 2018 VPN 連線說明 -- Pulse Secure for Linux ( 中文版 )... 7 3. ACMICPC 2018

More information

TDA General description. 2. Features. Low power single card reader

TDA General description. 2. Features. Low power single card reader Rev. 03 22 February 2005 Product data sheet 1. General description The is a complete one chip, low cost, low power, robust smart card reader. Its different power reduction modes and its wide supply voltage

More information

W78ERD2/W78ERD2A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

W78ERD2/W78ERD2A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- Data Sheet Table of Contents- 8-BIT MICROCONTROLLER GENERAL DESCRIPTION 3 2 FEATURES 3 3 PIN CONFIGURATIONS 4 4 PIN DESCRIPTION 5 5 FUNCTIONAL DESCRIPTION 6 5 RAM 6 52 Timers/Counters 6 53 Clock 7 54 Power

More information

CoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation

CoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation CoE3DJ4 Digital Systems Design Chapter 5: Serial Port Operation Serial port 8051 includes an on-chip serial port Hardware access to the port is through TXD and RXD (Port 3 bits 1 and 0) Serial port is

More information

BTC, EMPREX Wireless Keybaord +Mouse + USB dongle. 6309URF III Quick Installation Guide

BTC, EMPREX Wireless Keybaord +Mouse + USB dongle. 6309URF III Quick Installation Guide BTC, EMPREX 6309URF III Quick Installation Guide Hardware Installation 1. Plug the dongle receiver connector into your available USB port on PC. 2. Make sure the batteries of the keyboard and mouse are

More information

Chapter 7. Signed/Unsigned Binary Numbers. Digital Arithmetic and Arithmetic Circuits. Unsigned Binary Arithmetic. Basic Rules (Unsigned)

Chapter 7. Signed/Unsigned Binary Numbers. Digital Arithmetic and Arithmetic Circuits. Unsigned Binary Arithmetic. Basic Rules (Unsigned) Chapter 7 Digital rithmetic and rithmetic Circuits igned/unsigned inary Numbers igned inary Number: binary number of fixed length whose sign (+/ ) is represented by one bit (usually M) and its magnitude

More information

W78ERD2 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

W78ERD2 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- Data Sheet Table of Contents- 8-BIT MICROCONTROLLER GENERAL DESCRIPTION 3 FEATURES 3 3 PIN CONFIGURATIONS 4 4 PIN DESCRIPTION 5 5 BLOCK DIAGRAM 6 6 FUNCTIONAL DESCRIPTION 7 6 RAM 7 6 Timers 0, and 7 63

More information

INTEGRATED CIRCUITS DATA SHEET. P89C738; P89C739 8-bit microcontrollers Dec 15. Product specification File under Integrated Circuits, IC20

INTEGRATED CIRCUITS DATA SHEET. P89C738; P89C739 8-bit microcontrollers Dec 15. Product specification File under Integrated Circuits, IC20 INTEGRATED CIRCUITS DATA SHEET File under Integrated Circuits, IC20 1997 Dec 15 CONTENTS 1 FEATURES 2 GENERAL DESCRIPTION 3 ORDERING INFORMATION 4 BLOCK DIAGRAM 5 FUNCTIONAL DIAGRAM 6 PINNING INFORMATION

More information

W78ERD2 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

W78ERD2 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- Data Sheet Table of Contents- 8-BIT MICROCONTROLLER GENERAL DESCRIPTION 3 FEATURES 3 3 PIN CONFIGURATIONS 4 4 PIN DESCRIPTION 5 5 BLOCK DIAGRAM 6 6 FUNCTIONAL DESCRIPTION 7 6 RAM 7 6 Timers/Counters 7

More information

The Final Word on 8051 Microcontroller

The Final Word on 8051 Microcontroller The Final Word on 8051 Microcontroller This is a book about the Intel 8051 microcontroller and its large family of descendants. It is intended to give you, the reader, some new techniques for optimizing

More information

Serial I-O for Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai (version 14/10/07)

Serial I-O for Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai (version 14/10/07) Serial I-O for 8051 Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai 400 076 (version 14/10/07) 1 Motivation Serial communications means sending data a single bit at a time. But

More information

Migrating from the 8XC251Sx to the 8XC251Tx

Migrating from the 8XC251Sx to the 8XC251Tx Migrating from the 8XC251Sx to the 8XC251Tx Application Note May 1999 Order Number: 273252-001 Information in this document is provided in connection with Intel products. No license, express or implied,

More information

MPC89E515A. 8-bit micro-controller

MPC89E515A. 8-bit micro-controller MPC89E55A 8-bit micro-controller Features... 2 General Description... 3 Pin Description... 4 Pin Definition... 4 Pin Configuration... 6 Block Diagram... 7 Special Function Register... 8 Memory... 9 Organization...

More information

FlashFlex MCU SST89E52RC / SST89E54RC

FlashFlex MCU SST89E52RC / SST89E54RC Not recommended for new designs. Contact Microchip Sales for microcontroller design options. A Microchip Technology Company The are members of the FlashFlex family of 8-bit microcontroller products designed

More information

Preliminary N79E352/N79E352R Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

Preliminary N79E352/N79E352R Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- 8-BIT MICROCONTROLLER Table of Contents- 1. GENERAL DESCRIPTION... 4 2. FEATURES... 5 3. PARTS INFORMATION LIST... 6 3.1 Lead Free (RoHS) Parts information list... 6 4. PIN CONFIGURATIONS... 7 5. PIN DESCRIPTIONS...

More information

TS80C52X2. 8-bit CMOS Microcontroller 0-60 MHz. Preliminary. 1. Description. 2. Features

TS80C52X2. 8-bit CMOS Microcontroller 0-60 MHz. Preliminary. 1. Description. 2. Features 8-bit CMOS Microcontroller 0-60 MHz TS80C52X2 1. Description TEMIC TS80C52X2 is high performance CMOS ROM, OTP, EPROM and ROMless versions of the 80C51 CMOS single chip 8-bit microcontroller. The TS80C52X2

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many

More information

8-BIT MICROCONTROLLER

8-BIT MICROCONTROLLER 8-BIT MICROCONTROLLER Table of Contents- 1 GENERAL DESCRIPTION... 4 2 FEATURES... 5 3 PARTS INFORMATION LIST... 6 3.1 Lead Free (RoHS) Parts information list... 6 4 PIN CONFIGURATIONS... 7 5 PIN DESCRIPTIONS...

More information

Frame Relay 訊框中繼 FRSW S0/0 S0/1

Frame Relay 訊框中繼 FRSW S0/0 S0/1 Frame Relay 訊框中繼 將路由器設定為訊框中繼交換器以進行 frame relay 實驗 : 首先練習設定兩個埠的 frame relay switch FRSW S0/0 S0/1 介面 S0/0 介面 S0/1 102 201 DLI 102 DLI 201 Router(config)# hostname FRSW FRSW(config)# frame-relay switching

More information

PGT302 Embedded Software Technology. PGT302 Embedded Software Technology

PGT302 Embedded Software Technology. PGT302 Embedded Software Technology PGT302 Embedded Software Technology 1 PART 4 Hardware Platform 2 2 Objectives for Part 4 Need to DISCUSS and ANALYZE the following topics: Board (GTUC51B001) specifications startup sequence, bootloader

More information

VRS540-4kB Flash, 128B RAM, 25~40MHz, 8-Bit MCU

VRS540-4kB Flash, 128B RAM, 25~40MHz, 8-Bit MCU VRS540-4kB Flash, 28B RAM, 25~40MHz, 8-Bit MCU 34 Ste Catherine Street West, Suite 900, Montreal, Quebec, Canada H3B H4 Tel: (54) 87-2447 http://www.goalsemi.com P.3 P.2 XTAL NC P0./AD VRS540 Overview

More information

2009 OB Workshop: Structural Equation Modeling. Changya Hu, Ph.D. NCCU 2009/07/ /07/03

2009 OB Workshop: Structural Equation Modeling. Changya Hu, Ph.D. NCCU 2009/07/ /07/03 Amos Introduction 2009 OB Workshop: Structural Equation Modeling Changya Hu, Ph.D. NCCU 2009/07/02- 2 Contents Amos Basic Functions Observed Variable Path Analysis Confirmatory Factor Analysis Full Model

More information

SRL0 Serial Port Unit

SRL0 Serial Port Unit Summary The serial communications port peripheral devices can be configured for communications between a microprocessor and peripheral devices, or for multiprocessor communications. This document provides

More information

港專單一登入系統 (SSO) 讓本校的同學, 全日制及兼職老師只要一個登入帳戶, 便可同時使用由本校提供的網上系統及服務, 包括 Blackboard 網上學習平台, 港專電郵服務, 圖書館電子資料庫及其他教學行政系統.

港專單一登入系統 (SSO) 讓本校的同學, 全日制及兼職老師只要一個登入帳戶, 便可同時使用由本校提供的網上系統及服務, 包括 Blackboard 網上學習平台, 港專電郵服務, 圖書館電子資料庫及其他教學行政系統. 港專單一登入系統 (SSO) 讓本校的同學, 全日制及兼職老師只要一個登入帳戶, 便可同時使用由本校提供的網上系統及服務, 包括 Blackboard 網上學習平台, 港專電郵服務, 圖書館電子資料庫及其他教學行政系統. 港專單一登入網站網址 http://portal.hkct.edu.hk (HKCT 之教職員, 學生 ) http://portal.ctihe.edu.hk (CTIHE 之教職員,

More information

8-Bit Microcontroller with 8K Bytes Flash AT89S8252. Features. Description

8-Bit Microcontroller with 8K Bytes Flash AT89S8252. Features. Description Features Compatible with MCS-51 Products 8K Bytes of In-System Reprogrammable Downloadable Flash Memory SPI Serial Interface for Program Downloading Endurance: 1,000 Write/Erase Cycles 2K Bytes EEPROM

More information

Figure 1 Microsoft Visio

Figure 1 Microsoft Visio Pattern-Oriented Software Design (Fall 2013) Homework #1 (Due: 09/25/2013) 1. Introduction Entity relation (ER) diagrams are graphical representations of data models of relation databases. In the Unified

More information

Chapter 4 (Part IV) The Processor: Datapath and Control (Parallelism and ILP)

Chapter 4 (Part IV) The Processor: Datapath and Control (Parallelism and ILP) Chapter 4 (Part IV) The Processor: Datapath and Control (Parallelism and ILP) 陳瑞奇 (J.C. Chen) 亞洲大學資訊工程學系 Adapted from class notes by Prof. M.J. Irwin, PSU and Prof. D. Patterson, UCB 4.10 Instruction-Level

More information

8-bit Microcontroller 8 Kbytes ROM/OTP, ROMless TS80C32X2 TS87C52X2 TS80C52X2 AT80C32X2 AT80C52X2 AT87C52X2. Features. Description

8-bit Microcontroller 8 Kbytes ROM/OTP, ROMless TS80C32X2 TS87C52X2 TS80C52X2 AT80C32X2 AT80C52X2 AT87C52X2. Features. Description Features 80C52 Compatible 8051 Pin and Instruction Compatible Four 8-bit I/O Ports Three 16-bit Timer/Counters 256 Bytes Scratchpad RAM High-speed Architecture 40 MHz at 5V, 30 MHz at 3V X2 Speed Improvement

More information

VRS550-8kB Flash, 256B RAM, 25~40MHz, 8-Bit MCU VRS560-16kB Flash, 256B RAM, 40MHz, 8-Bit MCU

VRS550-8kB Flash, 256B RAM, 25~40MHz, 8-Bit MCU VRS560-16kB Flash, 256B RAM, 40MHz, 8-Bit MCU VRS550-8kB Flash, 256B RAM, 25~40MHz, 8-Bit MCU VRS560-6kB Flash, 256B RAM, 40MHz, 8-Bit MCU 34 Ste Catherine Street West, Suite 900, Montreal, Quebec, Canada H3B H4 Tel: (54) 87-2447 http://www.goalsemi.com

More information

DS89C420 Ultra High Speed Microcontroller

DS89C420 Ultra High Speed Microcontroller PRELIMINARY Ultra High Speed Microcontroller www.dalsemi.com FEATURES 80C52 compatible 8051 pin and instruction set compatible Four bidirectional I/O ports Three 16 bit timer counters 256 bytes scratchpad

More information

7.1.1 External Data Memory Access Timing...51

7.1.1 External Data Memory Access Timing...51 DATA SHEET 8-BIT MICROCONTROLLER Table of Contents- 1. GENERAL DESCRIPTION... 4 2. FEATURES... 4 3. PIN CONFIGURATION... 5 4. PIN DESCRIPTION... 6 4.1 Port 4... 7 5. MEMORY ORGANIZATION... 9 5.1 Program

More information

Timers and interrupts

Timers and interrupts Timers and interrupts CSCI 255: Introduction to Embedded Systems Keith Vertanen Copyright 2011 Timers Overview Creating fixed pauses Calculate length of events Counts events Generate baud rate for serial

More information

C51 Family. C51 Family Programmer s Guide and Instruction Set. Summary

C51 Family. C51 Family Programmer s Guide and Instruction Set. Summary C51 Family Programmer s Guide and Instruction Set Summary 1. Memory Organization.................................................... I.3.2 1.1. Program Memory.......................................................................

More information

8051 RISC Microcontroller High-Speed, 8051-Compatible, With SRAM and Extended Functions

8051 RISC Microcontroller High-Speed, 8051-Compatible, With SRAM and Extended Functions Draft 8051 RISC Microcontroller High-Speed, 8051-Compatible, With SRAM and Extended Functions 1. Description The 8-bit microcontroller is software compatible with the millions of devices that have been

More information

MPC89x58A. 8-bit micro-controller

MPC89x58A. 8-bit micro-controller MPC89x58A 8-bit micro-controller Features... 2 General Description... 4 Order Information:... 4 Pin Description... 5 Pin Definition... 5 Pin Configuration... 7 Block Diagram... 8 Special Function Register...

More information

MCS-51 Serial Port A T 8 9 C 5 2 1

MCS-51 Serial Port A T 8 9 C 5 2 1 MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.

More information

89C51RC+/RD+ 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512 1K RAM

89C51RC+/RD+ 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512 1K RAM INTEGRATED CIRCUITS Replaces 89C52/54/58 89C51RA+/RB+/RC+/RD+ of 1997 Dec 01 (see Notes 1 and 2 on page 2) Supersedes data of 1998 Oct 09 IC20 Data Handbook 1999 Apr 01 DESCRIPTION The 89C51RX+ devices

More information

AT Bit Spread- Spectrum Microcontroller. Preliminary. Features. Description. Pin Configuration

AT Bit Spread- Spectrum Microcontroller. Preliminary. Features. Description. Pin Configuration Features Compatible with MCS-51 Products 8K bytes of On-Board Program Memory Fully Static Operation: 0 Hz to 16 MHz 256 x 8 Bit Internal RAM 32 Programmable I/O Lines Three 16 Bit Timer/Counters Eight

More information

The Timers/Counters The Serial Interface The Interrupt System Reset P0.0-P0.7 P2.0-P2.7. Port 2 Drivers. Port 2 Latch

The Timers/Counters The Serial Interface The Interrupt System Reset P0.0-P0.7 P2.0-P2.7. Port 2 Drivers. Port 2 Latch HARDWARE DESCRIPTION This chapter provides a detailed description of the 80C51 microcontroller (see Figure 1). Included in this description are: The port drivers and how they function both as ports and,

More information

8XC151SA and 8XC151SB Hardware Description

8XC151SA and 8XC151SB Hardware Description 8XC151SA and 8XC151SB Hardware Description June 1996 Order Number 272832-001 Information in this document is provided in connection with Intel products Intel assumes no liability whatsoever including infringement

More information

Handshake Solutions. HT80C51 User Manual

Handshake Solutions. HT80C51 User Manual HT8C5 User Manual HT8C5 User Manual Document Information Document Information Document Title Date of Creation 27/6/25 Date of last change 27/6/25 File name Status Version Number.7 Client / Target Audience

More information

7.1.1 External Data Memory Access Timing...52

7.1.1 External Data Memory Access Timing...52 DATA SHEET 8-BIT MICROCONTROLLER Table of Contents- 1. GENERAL DESCRIPTION... 4 2. FEATURES... 4 3. PIN CONFIGURATION... 6 4. PIN DESCRIPTION... 7 4.1 Port 4... 8 5. MEMORY ORGANIZATION... 10 5.1 Program

More information

桌上電腦及筆記本電腦安裝 Acrobat Reader 應用程式

桌上電腦及筆記本電腦安裝 Acrobat Reader 應用程式 On a desktop or notebook computer Installing Acrobat Reader to read the course materials The Course Guide, study units and other course materials are provided in PDF format, but to read them you need a

More information

Password Protection 此篇文章說明如何在程式中加入密碼保護的機制, 當程式開啟, 使用者必須先輸入使用者帳號及密碼, 若是合法使用者才能進入應用程式

Password Protection 此篇文章說明如何在程式中加入密碼保護的機制, 當程式開啟, 使用者必須先輸入使用者帳號及密碼, 若是合法使用者才能進入應用程式 Password Protection 此篇文章說明如何在程式中加入密碼保護的機制, 當程式開啟, 使用者必須先輸入使用者帳號及密碼, 若是合法使用者才能進入應用程式 Step 1. 使用 Visual C++ 6.0 產生一個 MFC Application 1) Project name: PasswordProtection 2) Project type: MFC AppWizard(exe)

More information

TK89C668 Microcontroller 64K Flash, 8K RAM, TWI

TK89C668 Microcontroller 64K Flash, 8K RAM, TWI TK89C668 Microcontroller 64K Flash, 8K RAM, TWI DS5 (V.4) May 2, 27 Product Overview Features General Description o o o o o o o o o o o o o o o o o o o o o 8 Bit Microcomputer with 85 architecture Fully

More information

R8032S RDC RDC. RDC RISC DSP Controller. 8-Bit RISC MCU IP Specification VERSION: 1.1 R8032S

R8032S RDC RDC. RDC RISC DSP Controller. 8-Bit RISC MCU IP Specification VERSION: 1.1 R8032S 8-Bit RISC MCU IP Specification VERSION: 1.1 RDC RDC RISC DSP Controller RDC Semiconductor Co., Ltd http:\\www.rdc.com.tw Tel. 886-3-666-2866 Fax 886-3-563-1498 - 1 8-BIT MCU IP SPECIFICATION 1. DESIGN

More information

一般來說, 安裝 Ubuntu 到 USB 上, 不外乎兩種方式 : 1) 將電腦上的硬碟排線先予以排除, 將 USB 隨身碟插入主機, 以一般光碟安裝方式, 將 Ubuntu 安裝到 USB

一般來說, 安裝 Ubuntu 到 USB 上, 不外乎兩種方式 : 1) 將電腦上的硬碟排線先予以排除, 將 USB 隨身碟插入主機, 以一般光碟安裝方式, 將 Ubuntu 安裝到 USB Ubuntu 是新一代的 Linux 作業系統, 最重要的是, 它完全免費, 不光是作業系統, 連用軟體都不必錢 為什麼要裝在 USB 隨身碟上? 因為, 你可以把所有的軟體帶著走, 不必在每一台電腦上重新來一次, 不必每一套軟體裝在每一台電腦上都要再一次合法授權 以下安裝方式寫的是安裝完整的 Ubuntu- 企業雲端版本 V. 11.10 的安裝過程, 若是要安裝 Desktop 版本, 由於牽涉到

More information

EZCast Docking Station

EZCast Docking Station EZCast Docking Station Quick Start Guide Rev. 2.00 Introduction Thanks for choosing EZCast! The EZCast Docking Station contains the cutting-edge EZCast technology, and firmware upgrade will be provided

More information

Chapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan

Chapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan Chapter 6 Interrupts (I. Scott Mackenzie) 1 Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program. It

More information

MCS -51 Programmer s Guide and Instruction Set

MCS -51 Programmer s Guide and Instruction Set MCS -51 Programmer s Guide and Instruction Set November 1992 Order Number 270249-003 COPYRIGHT INTEL CORPORATION 1996 MCS -51 PROGRAMMER S GUIDE AND INSTRUCTION SET CONTENTS PAGE MEMORY ORGANIZATION 1

More information

CPEG300 Embedded System Design. Lecture 6 Interrupt System

CPEG300 Embedded System Design. Lecture 6 Interrupt System CPEG300 Embedded System Design Lecture 6 Interrupt System Hamad Bin Khalifa University, Spring 2018 Correction Lecture 3, page 18: Only direct addressing mode is allowed for pushing or popping the stack:

More information

DS80C320/DS80C323. High Speed/Low Power Micro FEATURES PIN ASSIGNMENT

DS80C320/DS80C323. High Speed/Low Power Micro FEATURES PIN ASSIGNMENT DS80C320/DS80C323 High Speed/Low Power Micro FEATURES 80C32 Compatible 8051 Pin and instruction set compatible Four 8 bit I/O ports Three 16 bit timer/counters 256 bytes scratchpad RAM Addresses 64KB ROM

More information

Lecture 10. Serial Communication

Lecture 10. Serial Communication Lecture 10 Serial Communication Serial Communication Introduction Serial communication buses Asynchronous and synchronous communication UART block diagram UART clock requirements Programming the UARTs

More information

EZCast Wire User s Manual

EZCast Wire User s Manual EZCast Wire User s Manual Rev. 2.01 Introduction Thanks for choosing EZCast! The EZCast Wire contains the cutting-edge EZCast technology, and firmware upgrade will be provided accordingly in order to compatible

More information

High-Speed Microcontroller User s Guide: DS80C390 Supplement

High-Speed Microcontroller User s Guide: DS80C390 Supplement AVAILABLE High-Speed Microcontroller User s Guide: DS80C390 Supplement This document is provided as a supplement to the High-Speed Microcontroller User s Guide, covering new or modified features specific

More information

MP3 Codec Design 吳炳飛教授. Chaotic Systems & Signal Processing Lab, CSSP Lab. CSSP Lab:

MP3 Codec Design 吳炳飛教授. Chaotic Systems & Signal Processing Lab, CSSP Lab. CSSP Lab: MP3 Codec Design 吳炳飛教授 國立交通大學 電機與控制工程學系 CSSP Lab: http://cssp.cn.nctu.edu.tw Chaotic Systems & Signal Processing Lab, CSSP Lab July 5, 2004 Chapter 1 Introduction to MP3 Chapter 1: Introduction to MP3

More information

DS80C390 High-Speed Microcontroller User s Guide Supplement

DS80C390 High-Speed Microcontroller User s Guide Supplement www.dalsemi.com DS80C390 High-Speed Microcontroller User s Guide Supplement ADDENDUM TO SECTION 1: INTRODUCTION This document is provided as a supplement to the High-Speed Microcontroller User s Guide,

More information

FlashFlex51 MCU SST89E564 / SST89V564 / SST89E554 / SST89V554

FlashFlex51 MCU SST89E564 / SST89V564 / SST89E554 / SST89V554 FEATURES: FlashFlex51 MCU SST89E/V564 SST89E/VE554 FlashFlex51 MCU 8-bit 8051 Family Compatible Microcontroller (MCU) with Embedded SuperFlash Memory SST89E564/SST89E554 is 5V Operation 0 to 40 MHz Operation

More information

UAK1-C01 USB Interface Data Encryption Lock USB 資料加密鎖. Specifications for Approval

UAK1-C01 USB Interface Data Encryption Lock USB 資料加密鎖. Specifications for Approval Product Definition C-MING Product Semi-finished Product OEM/ODM Product Component USB Interface Data Encryption Lock USB 資料加密鎖 Specifications for Approval Approval Manager Issued By Revision History Revision

More information

EZCast Wire. User s Manual. Rev. 2.00

EZCast Wire. User s Manual. Rev. 2.00 EZCast Wire User s Manual Rev. 2.00 Introduction Thanks for choosing EZCast! The EZCast Wire contains the cutting-edge EZCast technology, and firmware upgrade will be provided accordingly in order to compatible

More information