em6521 EM Microelectronic, em6521 Datasheet - Page 23

no-image

em6521

Manufacturer Part Number
em6521
Description
Mfp Version Of Em6621 Ultra Low Power Microcontroller With 4x20 Lcd Driver
Manufacturer
EM Microelectronic
Datasheet
Figure 15. CMOS or Nch. Open Drain outputs
For POWER SAVING one can switch off the port SP pull resistors between two read phases. No cross current
flows in the input amplifier while the port SP is not read.
This power saving feature must only be used in tristate mode (OM[0,1]=0). The recommended order is :
Minimum time with current on the pull resistor is 4 periods of the system clock, if the RC constant is lower than
1 system clock period. Adding a NOP before reading moves the number of periods with current in the pull
resistor to 6 and the maximum RC delay to 3 clock periods.
6.6.3 Nch. Open Drain Outputs
The port SP outputs can be configured as either CMOS or Nch. open drain outputs.
In CMOS both logic ‘1’ and ‘0’ are driven out on the terminal.
In Nch. open drain only the logic ‘0’ is driven out on the terminal, the logic ‘1’ value is high impedance or
defined by the internal pull-up resistor (if existing).
6.6.4 General Functional Description
After power on or after any reset the serial interface is in serial slave mode with Start and Status set to 0, LSB
first, negative shift edge and all outputs are in high impedance state.
When the Start bit is set, the shift operation is enabled and the serial interface is ready to transmit or receive
data, eight shift operations are performed: 8 serial data values are read from the data input terminal into the
shift register and the previous loaded 8-bits are send out via the data output terminal. After the eight shift
operation, an interrupt is generated, and the Start bit is reset.
Parallel to serial conversion procedure ( master mode example ).
Serial to parallel conversion procedure (slave mode example).
Copyright © 2005, EM Microelectronic-Marin SA
Serial Interface
Output
DR[n]
• switch on the pull resistor.
• allow sufficient time - RC constant - for the pull resistor to drive the line to either V
• Read the port SP
• Switch off the pull resistor
Write to RegSCntl1 serial control (clock freq. in master mode, edge and MSB/LSB select).
Write to RegSDataL and RegSDataH (shift out data values).
Write to RegSCntl2 (Start=1, mode select, status).
After the eighth clock an interrupt is generated, Start becomes low. Then, interrupt handling
Write to RegSCntl1 (slave mode, edge and MSB/LSB select).
Write to RegSCntl2 (Start=1, mode select, status).
After eight serial clocks an interrupt is generated, Start becomes low.
Interrupt handling.
Shift register RegSDataL and RegSDataH read.
A new shift operation can be authorized.
R
MUX
CMOS Output
Data
Tristate Output
Buffer : closed
1
Term inal
SP[n]
I / O
Serial Interface
Output
DR[n]
23
Nch. Open Drain Output
MUX
Data
---> Starts the shift out
Tristate Output
Buffer : High
Im pedance for
Data = 1
www.emmicroelectronic.com
EM6521
Active Pull-up
for High State
SS
or V
Term inal
SP[n]
I / O
DD
.

Related parts for em6521