Electronic Components Datasheet Search
  English  ▼

X  

MCP19124 Datasheet(PDF) 163 Page - Microchip Technology

Part # MCP19124
Description  Digitally-Enhanced Power Analog Synchronous Low-Side Dual-Loop PWM Controller
PDF  236 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

MCP19124 Datasheet(HTML) 163 Page - Microchip Technology

Back Button MCP19124 Datasheet HTML 159Page - Microchip Technology MCP19124 Datasheet HTML 160Page - Microchip Technology MCP19124 Datasheet HTML 161Page - Microchip Technology MCP19124 Datasheet HTML 162Page - Microchip Technology MCP19124 Datasheet HTML 163Page - Microchip Technology MCP19124 Datasheet HTML 164Page - Microchip Technology MCP19124 Datasheet HTML 165Page - Microchip Technology MCP19124 Datasheet HTML 166Page - Microchip Technology MCP19124 Datasheet HTML 167Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 163 / 236 page
background image
 2016 Microchip Technology Inc.
DS20005619A-page 163
MCP19124/5
An MSSP interrupt is generated for each transferred
data byte. Flag bit SSPIF must be cleared by software.
When the SEN bit in the SSPCON2 register is set, SCL
will be held low (clock stretch) following each received
byte. The clock must be released by setting the CKP
bit in the SSPCON1 register, except sometimes in
10-bit mode.
28.4.3.1
7-Bit Addressing Reception
This section describes a standard sequence of events
for the MSSP module configured as an I2C Slave in
7-bit Addressing mode, including all decisions made
by hardware or software and their effect on reception.
Figures 28-5 and 28-6 are used as a visual reference
for this description.
This is a step-by-step process of what typically must
be done to accomplish I2C communication:
1.
Start bit is detected.
2.
S bit in the SSPSTAT register is set; SSPIF is set
if interrupt on Start detect is enabled.
3.
Matching address with R/W bit clear is received.
4.
The slave pulls SDA low, sending an ACK to the
master, and sets SSPIF bit.
5.
Software clears the SSPIF bit.
6.
Software reads received address from SSPBUF
clearing the BF flag.
7.
If SEN = 1, Slave software sets CKP bit to
release the SCL line.
8.
The master clocks out a data byte.
9.
Slave drives SDA low sending an ACK to the
master, and sets SSPIF bit.
10. Software clears SSPIF.
11. Software reads the received byte from SSPBUF
clearing BF.
12. Steps 8–12 are repeated for all received bytes
from the Master.
13. Master sends Stop condition, setting P bit in the
SSPSTAT register, and the bus goes idle.
28.4.3.2
7-Bit Reception with AHEN and
DHEN
Slave device reception with AHEN and DHEN set
operates the same as without these options with extra
interrupts and clock stretching added after the 8th falling
edge of SCL. These additional interrupts allow the slave
software to decide whether it wants the ACK to receive
address or data byte, rather than the hardware.
Figure 28-7 displays a module using both address and
data holding. Figure 28-8 includes the operation with
the SEN bit in the SSPCON2 register set. The
following list describes the steps that need to be taken
by slave software to use these options for I2C
communication:
1.
S bit in the SSPSTAT register is set; SSPIF is set
if interrupt on Start detect is enabled.
2.
Matching address with R/W bit clear is clocked
in. SSPIF is set and CKP cleared after the 8th
falling edge of SCL.
3.
Slave clears the SSPIF.
4.
Slave can look at the ACKTIM bit in the
SSPCON3 register to determine if the SSPIF
was after or before the ACK.
5.
Slave reads the address value from SSPBUF,
clearing the BF flag.
6.
Slave sets ACK value clocked out to the master
by setting ACKDT.
7.
Slave releases the clock by setting CKP.
8.
SSPxIF is set after an ACK, not after a NACK.
9.
If SEN = 1 the slave hardware will stretch the
clock after the ACK.
10. Slave clears SSPIF.
11. SSPIF set and CKP cleared after 8th falling edge
of SCL for a received data byte.
12. Slave looks at ACKTIM bit in the SSPCON3
register to determine the source of the interrupt.
13. Slave reads the received data from SSPBUF
clearing BF.
14. Steps 7-14 are the same for each received data
byte.
15. Communication is ended by either the slave
sending an ACK = 1 or the master sending a
Stop condition. If a Stop is sent and Interrupt on
Stop Detect is disabled, the slave will only know
by polling the P bit in the SSPSTAT register.
Note: SSPIF is still set after the 9th falling edge of
SCL even if there is no clock stretching and
BF has been cleared. Only if NACK is sent
to Master is SSPIF not set.



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