pic32mx320f064h Microchip Technology Inc., pic32mx320f064h Datasheet - Page 390
pic32mx320f064h
Manufacturer Part Number
pic32mx320f064h
Description
64/100-pin General Purpose, 32-bit Flash Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC32MX320F064H.pdf
(544 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
pic32mx320f064h-40V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
pic32mx320f064h-80I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
pic32mx320f064h-80V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
pic32mx320f064hT-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
- Current page: 390 of 544
- Download datasheet (9Mb)
PIC32MX FAMILY
20.3.2
The Master mode initialization properly prepares the
PMP port for communicating with an external device.
The following steps should be performed to properly
configure the PMP port:
1.
2.
3.
EXAMPLE 20-1:
20.3.3
To perform a read on the parallel bus, the user reads
the PMDIN register. The effect of reading the PMDIN
register retrieves the current value and causes the
PMP to activate the chip select lines and the address
bus. The read line PMRD is strobed and the new data
is latched into the PMDIN register, making it available
for the next time the PMDIN register is read.
DS61143A -page 388
IEC1CLR = 0x0004;
PMCON = 0x0BC0;
PMMODE = 0x2A04;
PMAEN = 0xFF00;
IPC7SET = 0x001C;
IPC7SET = 0x0003;
IFS1CLR
IEC1SET
PMCONSET = 0x8000;
PMADDR = 0x4000;
PMDIN = 0x1234;
...
Note:
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,
MASTER PORT INITIALIZATION
READ OPERATION
The read data obtained from the PMDIN
register is actually the read value from the
previous read operation. Hence, the first
user read will be a dummy read to initiate
the first bus read and fill the read register.
Also, the requested read value will not be
ready until after the BUSY bit is observed
low. Therefore, in a back-to-back read
operation, the data read from the register
will be the same for both reads. The next
read of the register will yield the new
value.
= 0x0004;
= 0x0004;
PARALLEL MASTER PORT INITIALIZATION
//Disable PMP int
//Stop and Configure
//Config PMMODE reg
//Config PMAEN reg
//Priority level=7
//subpriority=3
//Same as..
//IPC7SET=0x001F
//Clear PMP flag
//Enable PMP int
//Enable PMP
//Set external address
//Write to device
Advance Information
4.
5.
Refer to the PIC32MX Family Reference Manual for a
detailed description of the read operation and illus-
trated example.
20.3.4
To perform a write onto the parallel port, the user
writes to the PMDIN register (same register used for a
read operation). This causes the module to first acti-
vate the chip select lines and the address bus. The
write data from the PMDIN register is placed onto the
PMD data bus and the write line PMPWR is strobed.
PMMODE and PMAEN control registers.
If interrupts are used:
a)
b)
c)
Enable the PMP master port by setting control
bit ON = 1.
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.
WRITE OPERATION
© 2007 Microchip Technology Inc.
Related parts for pic32mx320f064h
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: