поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

PIC16F882-I датащи(PDF) 196 Page - Microchip Technology

номер детали PIC16F882-I
подробное описание детали  28/40/44-Pin, Enhanced Flash-Based 8-Bit CMOS Microcontrollers
PDF  328 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MICROCHIP [Microchip Technology]
домашняя страница  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F882-I датащи(HTML) 196 Page - Microchip Technology

Back Button PIC16F882-I Datasheet HTML 192Page - Microchip Technology PIC16F882-I Datasheet HTML 193Page - Microchip Technology PIC16F882-I Datasheet HTML 194Page - Microchip Technology PIC16F882-I Datasheet HTML 195Page - Microchip Technology PIC16F882-I Datasheet HTML 196Page - Microchip Technology PIC16F882-I Datasheet HTML 197Page - Microchip Technology PIC16F882-I Datasheet HTML 198Page - Microchip Technology PIC16F882-I Datasheet HTML 199Page - Microchip Technology PIC16F882-I Datasheet HTML 200Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 196 / 328 page
background image
PIC16F882/883/884/886/887
DS41291F-page 194
© 2009 Microchip Technology Inc.
13.4.4.1
I2C™ Master Mode Operation
The master device generates all of the serial clock
pulses and the Start and Stop conditions. A transfer is
ended with a Stop condition or with a Repeated Start
condition. Since the Repeated Start condition is also
the beginning of the next serial transfer, the I2C bus will
not be released.
In Master Transmitter mode, serial data is output
through SDA, while SCL outputs the serial clock. The
first byte transmitted contains the slave address of the
receiving device (7 bits) and the Read/Write (R/W) bit.
In this case, the R/W bit will be logic ‘0’. Serial data is
transmitted eight bits at a time. After each byte is trans-
mitted, an Acknowledge bit is received. Start and Stop
conditions are output to indicate the beginning and the
end of a serial transfer.
In Master Receive mode, the first byte transmitted con-
tains the slave address of the transmitting device
(7 bits) and the R/W bit. In this case, the R/W bit will be
logic ‘1’. Thus, the first byte transmitted is a 7-bit slave
address followed by a ‘1’ to indicate receive bit. Serial
data is received via SDA, while SCL outputs the serial
clock. Serial data is received eight bits at a time. After
each byte is received, an Acknowledge bit is transmit-
ted. Start and Stop conditions indicate the beginning
and end of transmission.
The Baud Rate Generator used for the SPI mode oper-
ation is now used to set the SCL clock frequency for
either 100 kHz, 400 kHz, or 1 MHz I2C operation. The
Baud Rate Generator reload value is contained in the
lower 7 bits of the SSPADD register. The Baud Rate
Generator will automatically begin counting on a write
to the SSPBUF. Once the given operation is complete
(i.e., transmission of the last data bit is followed by
ACK), the internal clock will automatically stop counting
and the SCL pin will remain in its last state.
A typical transmit sequence would go as follows:
a)
The user generates a Start condition by setting
the Start Enable (SEN) bit (SSPCON2 register).
b)
SSPIF is set. The MSSP module will wait the
required start time before any other operation
takes place.
c)
The user loads the SSPBUF with the address to
transmit.
d)
Address is shifted out the SDA pin until all eight
bits are transmitted.
e)
The MSSP module shifts in the ACK bit from the
slave device and writes its value into the
ACKSTAT bit (SSPCON2 register).
f)
The MSSP module generates an interrupt at the
end of the ninth clock cycle by setting the SSPIF
bit.
g)
The user loads the SSPBUF with eight bits of
data.
h)
Data is shifted out the SDA pin until all eight bits
are transmitted.
i)
The MSSP module shifts in the ACK bit from the
slave device and writes its value into the
ACKSTAT bit (SSPCON2 register).
j)
The MSSP module generates an interrupt at the
end of the ninth clock cycle by setting the SSPIF
bit.
k)
The user generates a Stop condition by setting
the Stop Enable bit PEN (SSPCON2 register).
l)
Interrupt is generated once the Stop condition is
complete.



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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