MA330028 Microchip Technology, MA330028 Datasheet - Page 172

no-image

MA330028

Manufacturer Part Number
MA330028
Description
Daughter Cards & OEM Boards dsPIC33EP64MC504 PIM
Manufacturer
Microchip Technology
Datasheet

Specifications of MA330028

Rohs
yes
Product
Daughter Cards
Core
dsPIC
Description/function
Plug-in-module with dsPIC33EP64MC504 device for use with DM330021 and DM330023 motor control development board
Interface Type
CAN, I2C, SPI
Operating Supply Voltage
3 to 3.6 V
Tool Is For Evaluation Of
dsPIC33EP64MC504
For Use With
DM330021, DM330023

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MA330028
Manufacturer:
MICROCHIP
Quantity:
12 000
11.1.1
In addition to the PORT, LAT and TRIS registers for
data control, port pins can also be individually
configured for either digital or open-drain output. This
is controlled by the Open-Drain Control register,
ODCx, associated with each port. Setting any of the
bits configures the corresponding pin to act as an
open-drain output.
The open-drain feature allows the generation of
outputs other than V
resistors. The maximum open-drain voltage allowed
on any pin is the same as the maximum V
specification for that particular pin.
See the
5V-tolerant pins and
V
11.2
The ANSELx register controls the operation of the
analog port pins. The port pins that are to function as
analog inputs or outputs must have their corresponding
ANSEL and TRIS bits set. In order to use port pins for
I/O functionality with digital modules, such as Timers,
UARTs, etc., the corresponding ANSELx bit must be
cleared.
The ANSELx register has a default value of 0xFFFF;
therefore, all pins that share analog functions are
analog (not digital) by default.
Pins with analog functions affected by the ANSELx
registers are listed with a buffer type of Analog in the
Pinout I/O Descriptions (see
If the TRIS bit is cleared (output) while the ANSELx bit
is set, the digital output level (V
by an analog peripheral, such as the ADC module or
Comparator module.
When the PORT register is read, all pins configured as
analog input channels are read as cleared (a low level).
Pins configured as digital inputs do not convert an
analog input. Analog levels on any pin defined as a
digital input (including the ANx pins) can cause the
input buffer to consume current that exceeds the
device specifications.
11.2.1
One instruction cycle is required between a port
direction change or port write operation and a read
operation of the same port. Typically this instruction
would be an NOP, as shown in
DS70657E-page 172
IH
specification for each pin.
Configuring Analog and Digital
Port Pins
“Pin Diagrams”
OPEN-DRAIN CONFIGURATION
I/O PORT WRITE/READ TIMING
Table 30-10
DD
by using external pull-up
section for the available
Table
Example
OH
or V
1-1).
for the maximum
OL
11-1.
) is converted
Preliminary
IH
11.3
The input change notification function of the I/O ports
allows devices to generate interrupt requests to the
processor in response to a change-of-state on selected
input pins. This feature can detect input change-of-
states even in Sleep mode, when the clocks are
disabled. Every I/O port pin can be selected (enabled)
for generating an interrupt request on a change-of-
state.
Three control registers are associated with the CN
functionality of each I/O port. The CNENx registers
contain the CN interrupt enable control bits for each of
the input pins. Setting any of these bits enables a CN
interrupt for the corresponding pins.
Each I/O pin also has a weak pull-up and a weak
pull-down connected to it. The pull-ups and pull-
downs act as a current source or sink source
connected to the pin, and eliminate the need for
external resistors when push-button or keypad
devices are connected. The pull-ups and pull-downs
are enabled separately using the CNPUx and the
CNPDx registers, which contain the control bits for
each of the pins. Setting any of the control bits
enables the weak pull-ups and/or pull-downs for the
corresponding pins.
EXAMPLE 11-1:
MOV
MOV
NOP
BTSS
Note:
0xFF00, W0
W0, TRISB
PORTB, #13
Input Change Notification
Pull-ups and pull-downs on change notifi-
cation pins should always be disabled
when the port pin is configured as a digital
output.
© 2011-2012 Microchip Technology Inc.
PORT WRITE/READ
EXAMPLE
; Configure PORTB<15:8>
; as inputs
; and PORTB<7:0>
; as outputs
; Delay 1 cycle
; Next Instruction

Related parts for MA330028