欢迎访问ic37.com |
会员登录 免费注册
发布采购

AT89S8252 参数 Datasheet PDF下载

AT89S8252图片预览
型号: AT89S8252
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器8K字节的Flash [8-bit Microcontroller with 8K Bytes Flash]
分类和应用: 微控制器
文件页数/大小: 34 页 / 610 K
品牌: ATMEL [ ATMEL CORPORATION ]
 浏览型号AT89S8252的Datasheet PDF文件第3页浏览型号AT89S8252的Datasheet PDF文件第4页浏览型号AT89S8252的Datasheet PDF文件第5页浏览型号AT89S8252的Datasheet PDF文件第6页浏览型号AT89S8252的Datasheet PDF文件第8页浏览型号AT89S8252的Datasheet PDF文件第9页浏览型号AT89S8252的Datasheet PDF文件第10页浏览型号AT89S8252的Datasheet PDF文件第11页  
AT89S8252
Watchdog and Memory Control Register
The WMCON
register contains control bits for the Watchdog Timer
(shown in Table 3). The EEMEN and EEMWE bits are used
Table 3.
WMCON—Watchdog and Memory Control Register
WMCON Address = 96H
Reset Value = 0000 0010B
to select the 2K bytes on-chip EEPROM, and to enable
byte-write. The DPS bit selects one of two DPTR registers
available.
PS2
Bit
Symbol
PS2
PS1
PS0
EEMWE
EEMEN
DPS
WDTRST
RDY/BSY
7
Function
PS1
6
PS0
5
EEMWE
4
EEMEN
3
DPS
2
WDTRST
1
WDTEN
0
Prescaler Bits for the Watchdog Timer. When all three bits are set to “0”, the watchdog timer has a nominal period of
16 ms. When all three bits are set to “1”, the nominal period is 2048 ms.
EEPROM Data Memory Write Enable Bit. Set this bit to “1” before initiating byte write to on-chip EEPROM with the
MOVX instruction. User software should set this bit to “0” after EEPROM write is completed.
Internal EEPROM Access Enable. When EEMEN = 1, the MOVX instruction with DPTR will access on-chip EEPROM
instead of external data memory. When EEMEN = 0, MOVX with DPTR accesses external data memory.
Data Pointer Register Select. DPS = 0 selects the first bank of Data Pointer Register, DP0, and DPS = 1 selects the
second bank, DP1
Watchdog Timer Reset and EEPROM Ready/Busy Flag. Each time this bit is set to “1” by user software, a pulse is
generated to reset the watchdog timer. The WDTRST bit is then automatically reset to “0” in the next instruction cycle.
The WDTRST bit is Write-Only. This bit also serves as the RDY/BSY flag in a Read-Only mode during EEPROM write.
RDY/BSY = 1 means that the EEPROM is ready to be programmed. While programming operations are being executed,
the RDY/BSY bit equals “0” and is automatically reset to “1” when programming is completed.
Watchdog Timer Enable Bit. WDTEN = 1 enables the watchdog timer and WDTEN = 0 disables the watchdog timer.
WDTEN
SPI Registers
Control and status bits for the Serial Periph-
eral Interface are contained in registers SPCR (shown in
are contained in the SPDR register. Writing the SPI data
register during serial data transfer sets the Write Collision
bit, WCOL, in the SPSR register. The SPDR is double buff-
ered for writing and the values in SPDR are not changed by
Reset.
Interrupt Registers
The global interrupt enable bit and the
individual interrupt enable bits are in the IE register. In
addition, the individual interrupt enable bit for the SPI is in
the SPCR register. Two priorities can be set for each of the
six interrupt sources in the IP register.
Dual Data Pointer Registers
To facilitate accessing both
internal EEPROM and external data memory, two banks of
16 bit Data Pointer Registers are provided: DP0 at SFR
address locations 82H-83H and DP1 at 84H-85H. Bit DPS
= 0 in SFR WMCON selects DP0 and DPS = 1 selects
DP1. The user should always initialize the DPS bit to the
appropriate value before accessing the respective Data
Pointer Register.
Power Off Flag
The Power Off Flag (POF) is located at
bit_4 (PCON.4) in the PCON SFR. POF is set to “1” during
power up. It can be set and reset under software control
and is not affected by RESET.
7