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

EM6621 参数 Datasheet PDF下载

EM6621图片预览
型号: EM6621
PDF下载: 下载PDF文件 查看货源
内容描述: 超低功耗微控制器的4x20 LCD驱动 [Ultra Low Power Microcontroller with 4x20 LCD Driver]
分类和应用: 微控制器驱动
文件页数/大小: 69 页 / 746 K
品牌: EMMICRO [ EM MICROELECTRONIC - MARIN SA ]
 浏览型号EM6621的Datasheet PDF文件第16页浏览型号EM6621的Datasheet PDF文件第17页浏览型号EM6621的Datasheet PDF文件第18页浏览型号EM6621的Datasheet PDF文件第19页浏览型号EM6621的Datasheet PDF文件第21页浏览型号EM6621的Datasheet PDF文件第22页浏览型号EM6621的Datasheet PDF文件第23页浏览型号EM6621的Datasheet PDF文件第24页  
EM6621
6.6 Port Serial
The EM6621 contains a simple, half duplex three wire synchronous type serial interface., which can be used to
program or read an external EEPROM, ADC, ... etc.
For data reception, a shift-register converts the serial input data on the SIN(PSP[0]) terminal to a parallel format,
which is subsequently read by the CPU in registers
RegSDataL
and
RegSDataH
for low and high nibble. To
transmit data, the CPU loads data into the shift register, which then serializes it on the SOUT(PSP[2]) terminal.
It is possible for the shift register to simultaneously shift data out on the SOUT terminal and shift data on the
SIN terminal. In Master mode, the shifting clock is supplied internally by the Prescaler : one of three prescaler
frequencies are available, Ck[16], Ck[15] or Ck[14]. In Slave mode, the shifting clock is supplied externally on
the SCLKIn(PSP[3]) terminal. In either mode, it is possible to program : the shifting edge, shift MSB first or LSB
first and direct shift output. All these selection are done in register
RegSCntl1
and
RegSCntl2.
Figure 13. Serial Interface Architecture
Serial Master Clock Output
SCLKOut to SCLK Terminal
Serial Input Data
from
SIN
Internal Master Clock Source
(from Prescaler)
External Slave Clock Source
(SCLKIn from
SCLK
terminal)
8 Bit Shift Register
Shift CK
Shift Complete
(8th Shift Clock)
Serial Output Data
to
SOUT
Terminal
M
U
X
Mode
IRQSerial
Clock
Enable
W rite
Tx
Read
Rx
High-Z
to all
SP[3:0] Terminals
Control
&
Status
Registers
4-Bit Internal Data Bus
Start Direct MSB/LSB
Status
Reset Shift
Start
First
Status to
CS/ Ready
Terminal
Control Logic
The PSP[3..0] terminal configuration is shown in Figure 14. When the Serial Interface is active then :
PSP[1] {Ready / CS) is outputting the ready (slave mode) or the CS signal (master mode).
PSP[2] {SOUT} is always an output.
PSP[0] {SIN} is always an input.
PSP[3] {SCLK} is an output for Master mode {SCLKOut} and an input for Slave mode {SCLKIn}
6.6.1 4-bit Parallel I/O
Selecting
OM[1],OM[0]
= ‘1’ in register
RegSCntl2
the PSP[3:0] terminals are configured as a 4-bit Output.
Output data is stored in the register
RegSPData
.
The
RegSPData
is defined as a read/write register, but what is read is not the register output, but the port
PSP[3:0] terminal values
Selecting
OM[1],OM[0]
= ‘0’ in register
RegSCntl2
the PSP[3:0] outputs are cut off (tristate). The terminals can
be used as inputs with individual (bit-wise) pull-up or pull-down settings.
Independent of the selected configuration, the PSP[3:0] terminal levels are always readable.
©
EM Microelectronic-Marin SA, 03/99, Rev. B/
03/02 REV. D/444
Copyright
2002, EM Microelectronic-Marin SA
20
www.emmicroelectronic.com