pic32mx320f064h Microchip Technology Inc., pic32mx320f064h Datasheet - Page 393

no-image

pic32mx320f064h

Manufacturer Part Number
pic32mx320f064h
Description
64/100-pin General Purpose, 32-bit Flash Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
pic32mx320f064h-40V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-80I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-80V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064hT-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
20.3.6
20.3.6.1
• Do not enable or disable the module during any
• Because of the asynchronous nature of the read
The PMP module provides 8-Bit (byte) legacy Parallel
Slave Port functionality as well as new Buffered and
Addressable Slave modes.
20.3.7
The
MODE<1:0> bits (PMCON<9:8>). Legacy Slave mode
is selected by configuring MODE<1:0> bits = 00; Buff-
ered and Addressable Slave modes are selected by
configuring MODE<1:0> = 01. Additionally, Buffered
Slave
(PMMODE<12:11>) = 11.
TABLE 20-8:
All Slave modes support 8-bit data only and the associ-
ated module control pins are automatically dedicated to
the module when any of these modes are selected.
The user only need to configure the polarity of the
PMCS1, PMRD and PMWR signals.
TABLE 20-9:
20.3.8
In Legacy Slave mode, an external device can asyn-
chronously read and write data using the 8-bit data
bus PMD<7:0>, the read PMRD, write PMWR, and
chip-select PMCS1 inputs.
© 2007 Microchip Technology Inc.
CONTROL
Addressable
Slave Mode
read or write operation
and write operations, it is highly recommended
that the user rely on the PSP status bits prior to
any read or write operation.
PMCS1
PMWR
PMRD
Buffered
Legacy
PIN
three
mode
SLAVE MODE
MODE SELECTION
LEGACY PARALLEL SLAVE MODE
Considerations for Slave Mode
Control Bit
Master
PMCON
WRSP
RDSP
CS1P
Slave Mode Selection
Slave Mode Pin Polarity
Configuration
MODE<1:0>
requires
PMCON
modes
00
00
01
Active-High
Select
are
1
1
1
bits
x = don’t care
x = don’t care
selected
INCM<1:0>
PMMODE
Active-Low
INCM<1:0>
11
Advance Information
Select
0
0
0
using
Figure 20-8:
20.3.9
The Legacy Slave mode configuration is determined
automatically and dedicated to the PSP module when
the Legacy Slave mode is selected. The user only
need to configure the polarity of the PMCS1, PMRD
and PMWR signals.
The following example illustrates which control bits are
to be set for Legacy Slave mode configuration:
• Configure Legacy Slave mode bits -
• Select PMRD “active-low” pin polarity -
• Select PMWR “active-low” pin polarity -
• Select PMCS2, PMCS1 “active-low” pin polarity -
20.3.10
The Legacy Slave mode initialization properly prepares
the PMP port for communicating with an external mas-
ter device.
1.
2.
3.
4.
5.
(PMCON<3>) = 0.
MODE<1:0> (PMMODE<9:8>) = 00
RDSP (PMCON<0>) = 0.
WRSP (PMCON<1>) = 0.
CS2P (PMCON<4>) = 0 and CS1P
If interrupts are used, disable the PMP interrupt
by clearing the interrupt enable bit PMPIE
(IEC1<2>) = 0.
Stop and reset the PMP module by clearing the
control bit ON (PMCON<15>) = 0.
Configure the desired settings in the PMCON
and PMMODE control registers.
If interrupts are used:
a)
b)
c)
Enable the PMP slave port by setting control bit
ON = 1.
Master
PIC32MX FAMILY
Clear interrupt flag bit PMPIF
(IFS1<2>) = 0.
Configure the PMP interrupt priority bits
PMPIP<2:0> (IPC7<4:2>) and interrupt sub
priority bits PMPIS (IPC7<1:0>.
Enable PMP interrupt by setting interrupt
enable bit PMPIE = 1.
D<7:0>
LEGACY SLAVE CONFIGURATION
SLAVE PORT INITIALIZATION
WR
RD
CS
Legacy Slave Mode Interface
DS61143A-page 391
PMD<7:0>
PIC32MX Slave
PMCS1
PMRD
PMWR

Related parts for pic32mx320f064h