Electronic Components Datasheet Search
  English  ▼

X  

MIC74 Datasheet(PDF) 15 Page - Micrel Semiconductor

Part # MIC74
Description  2-Wire Serial I/O Expander and Fan Controller
PDF  18 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICREL [Micrel Semiconductor]
Direct Link  http://www.micrel.com
Logo MICREL - Micrel Semiconductor

MIC74 Datasheet(HTML) 15 Page - Micrel Semiconductor

Back Button MIC74_06 Datasheet HTML 10Page - Micrel Semiconductor MIC74_06 Datasheet HTML 11Page - Micrel Semiconductor MIC74_06 Datasheet HTML 12Page - Micrel Semiconductor MIC74_06 Datasheet HTML 13Page - Micrel Semiconductor MIC74_06 Datasheet HTML 14Page - Micrel Semiconductor MIC74_06 Datasheet HTML 15Page - Micrel Semiconductor MIC74_06 Datasheet HTML 16Page - Micrel Semiconductor MIC74_06 Datasheet HTML 17Page - Micrel Semiconductor MIC74_06 Datasheet HTML 18Page - Micrel Semiconductor  
Zoom Inzoom in Zoom Outzoom out
 15 / 18 page
background image
Micrel, Inc.
MIC74
October 2006
15
M9999-101006
The act of reading STATUS clears it in preparation for
detecting future events. The status bits corresponding to
I/O’s configured as outputs or corresponding to P[7:4]
when in fan mode will not be set by state changes on
these pins. It is always good practice, however, for the
interrupt service routine to mask the value obtained
when reading STATUS to eliminate any bits, output or
otherwise, that are not of immediate concern. This will
help avoid problems if software changes are made in the
future.
The process for writing output data is straight-forward—
simply write the desired bit pattern to DATA. Special
precautions may be required, however, when changing
output data in an interrupt driven system. See the
discussion below under “Writing to the Data Register.”
Read STATUS to
determine source
Read alert
response address
Interrupts
pending
?
No
Yes
Is
Sx set
?
No
Yes
Interrupt Service
Routine
Return from ISR
Service function x
Is
interrupt
from
MIC74
Yes
No
Service other devices
Is
Sm set
?
No
Yes
Service function m
Is
Sn set
?
No
Yes
Service function n
Figure 11: Interrupt Service Routine Using the ARA
Writing To The Data Register
Multiple software routines may use the various output
bits available on the MIC74 to control individual functions
such as power switches, LED’s, etc. These various
functions may be handled by independent software
routines which must manipulate individual output bits
without regard for other bits. Care must be taken to
insure that these various software routines do not
interfere with each other when modifying output data.
The recommended procedure for changing isolated
output bits is as follows:
1. Read DATA
2. Set desired bits by ORing the value read from
DATA with an appropriate mask value
3. Clear desired bits by ANDing the value read
from DATA with an appropriate mask value
4. Write the result back to DATA
A functionally equivalent alternative to this procedure is
to keep an image of the data register in software. Any
independent routines would make changes to this image
using the procedure above and then call a routine that
actually writes the new image to DATA. Interrupts would
be disabled briefly while DATA is being modified.
Read
STATUS
Is
Sx set
?
No
Yes
Polled
I.S.R.
Service function x
Is
STATUS
h
?
Yes
No
Is
Sm set
?
No
Yes
Service function m
Is
Sn set
?
No
Yes
Service function n
Service other devices
Return from ISR
Figure 12: Interrupt Service Routine Without ARA



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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