English
Language : 

EM6522 Datasheet, PDF (23/68 Pages) EM Microelectronic - MARIN SA – MFP version of EM6622 Ultra Low Power Microcontroller with 4x32 LCD Driver
R
EM6522
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 :
• switch on the pull resistor.
• allow sufficient time - RC constant - for the pull resistor to drive the line to either VSS or VDD.
• Read the port SP
• Switch off the pull resistor
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).
Figure 15. CMOS or Nch. Open Drain outputs
CMOS Output
Nch. Open Drain Output
MUX
1
DR[n]
Data
I/O
T erm inal
DR[n]
MUX
Serial Interface
Output
SP[n]
Tristate Output
Buffer : closed
Serial Interface
Output
Data
Active Pull-up
for High State
I/O
Term inal
Tristate Output
Buffer : High
Impedance for
Data = 1
SP[n]
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 ).
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).
---> Starts the shift out
After the eighth clock an interrupt is generated, Start becomes low. Then, interrupt handling
Serial to parallel conversion procedure (slave mode example).
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.
Copyright © 2005, EM Microelectronic-Marin SA
23
www.emmicroelectronic.com