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

AT89S53_06 参数 Datasheet PDF下载

AT89S53_06图片预览
型号: AT89S53_06
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器,带有12K字节的闪存 [8-bit Microcontroller with 12K Bytes Flash]
分类和应用: 闪存微控制器
文件页数/大小: 35 页 / 638 K
品牌: ATMEL [ ATMEL CORPORATION ]
 浏览型号AT89S53_06的Datasheet PDF文件第4页浏览型号AT89S53_06的Datasheet PDF文件第5页浏览型号AT89S53_06的Datasheet PDF文件第6页浏览型号AT89S53_06的Datasheet PDF文件第7页浏览型号AT89S53_06的Datasheet PDF文件第9页浏览型号AT89S53_06的Datasheet PDF文件第10页浏览型号AT89S53_06的Datasheet PDF文件第11页浏览型号AT89S53_06的Datasheet PDF文件第12页  
Table 4.
SPCR—SPI Control Register
SPCR Address = D5H
Reset Value = 0000 01XXB
SPIE
SPE
6
DORD
5
MSTR
4
CPOL
3
CPHA
2
SPR1
1
SPR0
0
Bit
Symbol
SPIE
SPE
DORD
MSTR
CPOL
CPHA
SPR0
SPR1
7
Function
SPI Interrupt Enable. This bit, in conjunction with the ES bit in the IE register, enables SPI interrupts: SPIE = 1 and ES
= 1 enable SPI interrupts. SPIE = 0 disables SPI interrupts.
SPI Enable. SPI = 1 enables the SPI channel and connects SS, MOSI, MISO and SCK to pins P1.4, P1.5, P1.6, and
P1.7. SPI = 0 disables the SPI channel.
Data Order. DORD = 1 selects LSB first data transmission. DORD = 0 selects MSB first data transmission.
Master/Slave Select. MSTR = 1 selects Master SPI mode. MSTR = 0 selects Slave SPI mode.
Clock Polarity. When CPOL = 1, SCK is high when idle. When CPOL = 0, SCK of the master device is low when not
transmitting. Please refer to figure on SPI Clock Phase and Polarity Control.
Clock Phase. The CPHA bit together with the CPOL bit controls the clock and data relationship between master and
slave. Please refer to figure on SPI Clock Phase and Polarity Control.
SPI Clock Rate Select. These two bits control the SCK rate of the device configured as master. SPR1 and SPR0 have
no effect on the slave. The relationship between SCK and the oscillator frequency, F
OSC.
, is as follows:
SPR1SPR0SCK = F
OSC.
divided by
0 0 4
0 1 16
1 0 64
1 1 128
Table 5.
SPSR—SPI Status Register Data Memory - RAM
SPSR Address = AAH
Reset Value = 00XX XXXXB
SPIF
WCOL
6
5
4
3
2
1
0
Bit
Symbol
SPIF
7
Function
SPI Interrupt Flag. When a serial transfer is complete, the SPIF bit is set and an interrupt is generated if SPIE = 1 and
ES = 1. The SPIF bit is cleared by reading the SPI status register with SPIF and WCOL bits set, and then accessing
the SPI data register.
Write Collision Flag. The WCOL bit is set if the SPI data register is written during a data transfer. During data transfer,
the result of reading the SPDR register may be incorrect, and writing to it has no effect. The WCOL bit (and the SPIF
bit) are cleared by reading the SPI status register with SPIF and WCOL set, and then accessing the SPI data register.
WCOL
Table 6.
SPDR—SPI Data Register
SPDR Address = 86H
Reset Value = unchanged
SPD7
SPD6
6
SPD5
5
SPD4
4
SPD3
3
SPD2
2
SPD1
1
SPD0
0
Bit
8
7
AT89S53
0787E–MICRO–3/06