Electronic Components Datasheet Search
  English  ▼

X  

PIC18F4321 Datasheet(PDF) 178 Page - Microchip Technology

Part # PIC18F4321
Description  28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PDF  396 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F4321 Datasheet(HTML) 178 Page - Microchip Technology

Back Button PIC18F4321 Datasheet HTML 174Page - Microchip Technology PIC18F4321 Datasheet HTML 175Page - Microchip Technology PIC18F4321 Datasheet HTML 176Page - Microchip Technology PIC18F4321 Datasheet HTML 177Page - Microchip Technology PIC18F4321 Datasheet HTML 178Page - Microchip Technology PIC18F4321 Datasheet HTML 179Page - Microchip Technology PIC18F4321 Datasheet HTML 180Page - Microchip Technology PIC18F4321 Datasheet HTML 181Page - Microchip Technology PIC18F4321 Datasheet HTML 182Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 178 / 396 page
background image
PIC18F4321 FAMILY
DS39689E-page 176
Preliminary
© 2007 Microchip Technology Inc.
17.4.3.2
Address Masking
Masking an address bit causes that bit to become a
“don’t care”. When one address bit is masked, two
addresses will be Acknowledged and cause an inter-
rupt. It is possible to mask more than one address bit at
a time, which makes it possible to Acknowledge up to
31 addresses in 7-bit Addressing mode and up to 63
addresses
in
10-bit
Addressing
mode
(see
Example 17-2).
The I2C slave behaves the same way whether address
masking is used or not. However, when address mask-
ing is used, the I2C slave can Acknowledge multiple
addresses and cause interrupts. When this occurs, it is
necessary to determine which address caused the
interrupt by checking the SSPBUF register.
• 7-bit Address mode
Address mask bits, ADMSK<5:1>, mask the corre-
sponding address bits in the SSPADD register. For any
ADMSK bits that are active (ADMSK<n> = 1), the
corresponding address bit is ignored (ADD<n> = x). For
the module to issue an address Acknowledge, it is suffi-
cient to match only on addresses that do not have an
active address mask.
• 10-bit Address mode
Address
mask
bits,
ADMSK<5:2>,
mask
the
corresponding address bits in the SSPADD register. In
addition, ADMSK<1> simultaneously masks the two
LSBs of the address, ADD<1:0>. For any ADMSK bits
that are active (ADMSK<n> = 1), the corresponding
address bit is ignored (ADD<n> = x). Also note that
although in 10-bit Addressing mode, the upper address
bits reuse part of the SSPADD register bits, the address
mask bits do not interact with those bits. They only
affect the lower address bits.
EXAMPLE 17-2:
ADDRESS MASKING
Note 1: ADMSK<1>
masks
the
two
Least
Significant bits of the address.
2: The two Most Significant bits of the
address are not affected by address
masking.
7-bit Addressing mode:
SSPADD<7:1> = 1010 0000
ADMSK<5:1> = 00 111
Addresses Acknowledged = 0xA0, 0xA2, 0xA4, 0xA6, 0xA8, 0xAA, 0xAC, 0xAE
10-bit Addressing mode:
SSPADD<7:0> = 1010 0000 (The two MSbs are ignored in this example since they are not affected)
ADMSK<5:1> = 00 111
Addresses Acknowledged = 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB,
0xAC, 0xAD, 0xAE, 0xAF
The upper two bits are not affected by the address masking.



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 100  ...More


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