Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Mexican  ▼
ALLDATASHEET.COM.MX

X  

CR16MFS5 Datasheet(PDF) 59 Page - National Semiconductor (TI)

[Old version datasheet] Texas Instruments acquired National semiconductor.
No. de pieza CR16MFS5
Descripción Electrónicos  Family of CompactRISC 16-Bit Microcontrollers
PDF  99 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  NSC [National Semiconductor (TI)]
Página de inicio  http://www.national.com
Logo NSC - National Semiconductor (TI)

CR16MFS5 Datasheet(HTML) 59 Page - National Semiconductor (TI)

Back Button CR16MFS5 Datasheet HTML 55Page - National Semiconductor (TI) CR16MFS5 Datasheet HTML 56Page - National Semiconductor (TI) CR16MFS5 Datasheet HTML 57Page - National Semiconductor (TI) CR16MFS5 Datasheet HTML 58Page - National Semiconductor (TI) CR16MFS5 Datasheet HTML 59Page - National Semiconductor (TI) CR16MFS5 Datasheet HTML 60Page - National Semiconductor (TI) CR16MFS5 Datasheet HTML 61Page - National Semiconductor (TI) CR16MFS5 Datasheet HTML 62Page - National Semiconductor (TI) CR16MFS5 Datasheet HTML 63Page - National Semiconductor (TI) Next Button
Zoom Inzoom in Zoom Outzoom out
 59 / 99 page
background image
59
www.national.com
15.5
MICROWIRE INTERFACE REGISTERS
The software interacts with the MICROWIRE interface by ac-
cessing the MICROWIRE registers. There are five such reg-
isters:
•
MICROWIRE Data Register (MWDAT)
•
MICROWIRE Control 1 Register (MWCTL1)
•
MICROWIRE Control 2 Register (MWCTL2)
•
MICROWIRE Control 3 Register (MWCTL3)
•
MICROWIRE Status Register (MWSTAT)
15.5.1
MICROWIRE Data Register (MWDAT)
The MWDAT register is a byte-wide, read/write register used
to transmit and receive data through the MDODI and MDIDO
pins. Figure25 shows the hardware structure of the register.
Reading the MWDAT register returns the data received
through the MDIDO pin in master mode or the MDODI pin in
slave mode. This data is read from a buffer. After the CPU
reads the buffer, if new data is ready in the shifter, the hard-
ware immediately transfers the new value from the shifter to
the buffer.
Writing the MWDAT register loads the shifter directly without
buffering, thus overwriting any existing data in the shifter. The
data byte is shifted out through the MDODI pin in master
mode or through the MDIDO pin in slave mode, most signifi-
cant bit first.
The MWDAT register should be accessed only after a MI-
CROWIRE interrupt. Before the CPU reads the register, the
Read
Buffer
Full
status
bit
should
be
set
(MW-
STAT.MRBF=1). Before the CPU writes the register, the MI-
CROWIRE
Busy
status
bit
should
be
cleared
(MWSTAT.MBSY=0).
For normal operation, the CPU should first read the received
data, thus allowing pending received data to be transferred
from the shifter into the MWDAT register, before it writes the
next transmit data into the MWDAT address, which loads the
shifter directly. (MWSTAT.MBSY=0 is an indicator that the
shifter is empty and ready to receive the next transmit data.)
Otherwise, a second received data byte pending in the shifter
may get overwritten by the transmit byte.
The MWDAT register contains unknown data following a re-
set operation.
15.5.2
MICROWIRE Control 1 Register (MWCTL1)
The MWCTL1 register is a byte-wide, read/write register that
controls the operating mode of the MICROWIRE interface
module. Upon reset, all non-reserved bits are cleared to 0.
The register format is shown below.
MMNS
MICROWIRE
Master/Slave
Select.
When
cleared to 0, the device operates as a slave.
When set to 1, the device operates as the mas-
ter.
MSKM
MICROWIRE Clocking Mode. When cleared to
0, the device uses the normal clocking mode.
When set to 1, the device uses the alternate
clocking mode. In the normal mode, the output
data is clocked out on the falling edge of MSK
and the input data is sampled on the rising
edge of MSK. In the alternate mode, the output
data is clocked out on the rising edge of MSK
and the input data is sampled on the falling
edge of MSK.
MIDL
MICROWIRE Idle. This bit sets the value of the
MSK output when the MICROWIRE interface is
idle: 0 for low or 1 for high. This bit should be
changed only when the MICROWIRE interface
module is disabled (MEN=0) or when no bus
transaction is in progress (MWSTAT.MBSY=0).
MEN
MICROWIRE Enable. This bit enables (1) or
disables (0) the MICROWIRE interface mod-
ule. Clearing this bit disables the module,
clears the status bits in the MICROWIRE status
register (the MBSY, MRBF, and MOVR flags in
MWSTAT), and places the MICROWIRE inter-
face pins in the states described in Table17.
Figure 24.
MWSPI Interrupts
Figure 25.
MWDAT Register Structure
Interrupt
MWSPI
MOVR = 1
MRBF = 1
MBSY = 0
MEIW
MEIR
MEIO
SHIFTER
READ BUFFER
Write
Read
8
Data In
Data Out
7
6
5
4
3
2
1
0
Reserved
MEN
MIDL
MSKM
MMNS
Table 17
Pin Values with MICROWIRE Disabled
MSK
Master: MnIDL Bit
Slave: input
MCS
Input
MDIDO
Master: input
Slave: TRI-STATE
MDODI
Master: known Value
Slave: input
MRDY
TRI-STATE



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com