pic32mx320f064h Microchip Technology Inc., pic32mx320f064h Datasheet - Page 395

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.11
Buffered Parallel Slave Port mode is functionally iden-
tical to the Legacy Parallel Slave Port mode with one
exception: the implementation of 4-level read and write
buffers. Buffered Slave mode is enabled by setting the
PMMODE<INCM1:INCM0> bits to ‘11’.
FIGURE 20-9:
20.3.12
The Buffered Slave mode configuration is determined
automatically and dedicated to the PMP module when
the Buffered 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 Buffered Slave mode configuration:
• Configure Buffered Slave mode bits -
• Select PMRD “active-low” pin polarity -
• Select PMWR “active-low” pin polarity -
• Select PMCS2, PMCS1 “active-low” pin polarity -
20.3.13
The Buffered Slave mode initialization properly pre-
pares the PSP port for communicating with an external
master device.
The following steps should be performed to properly
configure the PSP port:
1.
2.
© 2007 Microchip Technology Inc.
INCM<1:0> (PMMODE<12:11>) = 11.
MODE<1:0> (PMMODE<9:8>) = 00 and
RDSP (PMCON<0>) = 0.
WRSP (PMCON<1>) = 0.
CS2P (PMCON<4>) = 0 and CS1P
(PMCON<3>) = 0.
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
Master
Buffered Slave Mode
BUFFERED SLAVE
CONFIGURATION
BUFFERED SLAVE MODE
INITIALIZATION
D
<
7:0>
WR
RD
CS
PARALLEL MASTER/SLAVE CONNECTION BUFFERED
Advance Information
PMD<7:0>
PMCS1
PMRD
PMWR
When the Buffered mode is active, the module uses the
PMDIN register as write buffers and the PMDOUT reg-
ister as read buffers, with respect to the master device.
Each register is divided into four 8-bit buffer registers,
four read buffers in PMDOUT and four write buffers in
PMDIN. Buffers are numbered 0 through 3, starting
with the lower byte <7:0> and progressing upward
through the high byte <31:24>.
3.
4.
5.
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.
Address
Pointer
Write
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 PSP interrupt by setting interrupt
enable bit PMPIE = 1.
PIC32MX Slave
PMDOUT (0)
PMDOUT (1)
PMDOUT (2)
PMDOUT (3)
Address
Pointer
Read
DS61143A-page 393
PMDIN (0)
PMDIN (1)
PMDIN (2)
PMDIN (3)

Related parts for pic32mx320f064h