cop8sec520m National Semiconductor Corporation, cop8sec520m Datasheet - Page 32

no-image

cop8sec520m

Manufacturer Part Number
cop8sec520m
Description
8-bit Cmos Based Microcontrollers With Memory Bytes Eeram
Manufacturer
National Semiconductor Corporation
Datasheet
www.national.com
10.0 MICROWIRE/PLUS
10.1.2 MICROWIRE/PLUS Slave Mode Operation
In the MICROWIRE/PLUS Slave mode of operation the SK
clock is generated by an external source. Setting the MSEL
bit in the CNTRL register enables the SO and SK functions
onto the G Port. The SK pin must be selected as an input
and the SO pin is selected as an output pin by setting and re-
setting the appropriate bits in the Port G configuration regis-
ter. Table 9 summarizes the settings required to enter the
Slave mode of operation.
SK Phase
This table assumes that the control flag MSEL is set.
Config. Bit
Alternate
Alternate
Normal
Normal
G4 (SO)
1
0
1
0
TABLE 9. MICROWIRE/PLUS Mode Settings
FIGURE 23. MICROWIRE/PLUS SPI Mode Interface Timing, Alternate SK Mode, SK Idle Phase being Low
FIGURE 22. MICROWIRE/PLUS SPI Mode Interface Timing, Normal SK Mode, SK Idle Phase being Low
Config. Bit
G5 (SK)
1
1
0
0
G6 (SKSEL)
Config. Bit
TABLE 10. MICROWIRE/PLUS Shift Clock Polarity and Sample/Shift Phase
STATE
STATE
0
1
0
1
Fun.
TRI-
TRI-
SO
SO
G4
Port G
Fun.
Ext.
Ext.
G5
Int.
SK
Int.
SK
SK
SK
(Continued)
MICROWIRE/PLUS
Master
MICROWIRE/PLUS
Master
MICROWIRE/PLUS
Slave
MICROWIRE/PLUS
Slave
G5 Data
Operation
Bit
0
0
1
1
SO Clocked Out
SK Falling Edge
SK Falling Edge
32
SK Rising Edge
SK Rising Edge
The user must set the BUSY flag immediately upon entering
the Slave mode. This ensures that all data bits sent by the
Master is shifted properly. After eight clock pulses the BUSY
flag is clear, the shift clock is stopped, and the sequence
may be repeated.
10.1.3 Alternate SK Phase Operation and SK Idle
Polarity
The device allows either the normal SK clock or an alternate
phase SK clock to shift data in and out of the SIO register. In
both the modes the SK idle polarity can be either high or low.
The polarity is selected by bit 5 of Port G data register. In the
normal mode data is shifted in on the rising edge of the SK
clock and the data is shifted out on the falling edge of the SK
clock. In the alternate SK phase operation, data is shifted in
on the falling edge of the SK clock and shifted out on the ris-
ing edge of the SK clock. Bit 6 of Port G configuration regis-
ter selects the SK edge.
A control flag, SKSEL, allows either the normal SK clock or
the alternate SK clock to be selected. Resetting SKSEL
causes the MICROWIRE/PLUS logic to be clocked from the
normal SK signal. Setting the SKSEL flag selects the alter-
nate SK clock. The SKSEL is mapped into the G6 configura-
tion bit. The SKSEL flag will power up in the reset condition,
selecting the normal SK signal.
On:
SI Sampled On:
SK Falling Edge
SK Falling Edge
SK Rising Edge
SK Rising Edge
DS100973-33
DS100973-34
SK Idle
Phase
High
High
Low
Low

Related parts for cop8sec520m