Electronic Components Datasheet Search
  English  ▼

X  

MCP19124 Datasheet(PDF) 111 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) 111 Page - Microchip Technology

Back Button MCP19124 Datasheet HTML 107Page - Microchip Technology MCP19124 Datasheet HTML 108Page - Microchip Technology MCP19124 Datasheet HTML 109Page - Microchip Technology MCP19124 Datasheet HTML 110Page - Microchip Technology MCP19124 Datasheet HTML 111Page - Microchip Technology MCP19124 Datasheet HTML 112Page - Microchip Technology MCP19124 Datasheet HTML 113Page - Microchip Technology MCP19124 Datasheet HTML 114Page - Microchip Technology MCP19124 Datasheet HTML 115Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 111 / 236 page
background image
 2016 Microchip Technology Inc.
DS20005619A-page 111
MCP19124/5
17.2
PORTGPB and TRISGPB
Registers
Due to special function pin requirements, a limited
number of the PORTGPB I/Os are utilized. On the
24-pin 4x4 mm QFN MCP19124, GPB0 and GPB1 are
implemented. GPB0 is an open-drain general-purpose
I/O and SDA pin. GPB1 is a general-purpose I/O,
analog input and VREF2 DAC output. The 28-pin
5x5 mm QFN
MCP19124
has
four
additional
general-purpose
PORTGPB
I/O
pins.
The
corresponding data direction register is TRISGPB.
Setting a TRISGPB bit to ‘1’ will make the
corresponding PORTGPB pin an input (i.e., disable the
output driver). Clearing a TRISGPB bit to ‘0’ will make
the corresponding PORTGPB pin an output (i.e.,
enable the output driver). Example 17-1 shows how to
initialize an I/O port.
Some pins for PORTGPB are multiplexed with an
alternate function for the peripheral or a clock function.
In general, when a peripheral or clock function is
enabled,
that
pin
may
not
be
used
as
a
general-purpose I/O pin.
Reading the PORTGPB register reads the status of the
pins, whereas writing to it will write to the PORT latch.
All write operations are read-modify-write operations.
The TRISGPB register controls the PORTGPB pin out-
put drivers, even when they are being used as analog
inputs. The user should ensure the bits in the TRISGPB
register are maintained set when using them as analog
inputs. I/O pins configured as analog input always read
‘0’. If the pin is configured for a digital output (either port
or alternate function), the TRISGPB bit must be cleared
in order for the pin to drive the signal and a read will
reflect the state of the pin.
17.2.1
INTERRUPT-ON-CHANGE
Each PORTGPB pin is individually configurable as an
interrupt-on-change pin. Control bits IOCB<7:4> and
IOCB<2:0> enable or disable the interrupt function for
each pin. The interrupt-on-change feature is disabled
on a Power-On Reset. Reference Section 18.0
“Interrupt-On-Change” for more information.
17.2.2
WEAK PULL-UPS
Each of the PORTGPB pins has an individually
configurable internal weak pull-up. Control bits
WPUB<7:4> and WPUB1 enable or disable each
pull-up (refer to Register 17-7). Each weak pull-up is
automatically turned off when the port pin is configured
as an output. All pull-ups are disabled on a
Power-On Reset by the RAPU bit in the OPTION_REG
register.
17.2.3
ANSELB REGISTER
The ANSELB register is used to configure the input
mode of an I/O pin to analog. Setting the appropriate
ANSELB bit high will cause all digital reads on the pin
to be read as ‘0’ and allow analog functions on the pin
to operate correctly.
The state of the ANSELB bits has no effect on the digital
output functions. A pin with TRISGPB clear and
ANSELB set will still operate as a digital output, but the
input mode will be analog. This can cause unexpected
behavior when executing read-modify-write instructions
on the affected port.
The TRISGPB register controls the PORTGPB pin output
drivers, even when they are being used as analog inputs.
The user should ensure the bits in the TRISGPB register
are maintained set when using them as analog inputs. I/O
pins configured as analog input always read ‘0’.
TABLE 17-2:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTGPA
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Register
on Page
ANSELA
—
—
—
—
ANSA3
ANSA2
ANSA1
ANSA0
110
OPTION_REG
RAPU
INTEDG
T0CS
T0SE
PSA
PS2
PS1
PS0
78
PORTGPA
GPA7
GPA6
GPA5
—
GPA3
GPA2
GPA1
GPA0
109
TRISGPA
TRISA7
TRISA6
TRISA5
—
TRISA3
TRISA2
TRISA1
TRISA0
109
WPUGPA
—
—
WPUA5
—
WPUA3
WPUA2
WPUA1
WPUA0
110
Legend: — = unimplemented locations read as ‘0’. Shaded cells are not used by PORTGPA.
Note:
The ANSELB bits default to the Analog
mode after Reset. To use any pins as
digital general-purpose or peripheral
inputs, the corresponding ANSELB bits
must be initialized to ‘0’ by the user’s
software.



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