MA180023 Microchip Technology, MA180023 Datasheet - Page 148

MODULE PLUG-IN PIC18F46J11 PIM

MA180023

Manufacturer Part Number
MA180023
Description
MODULE PLUG-IN PIC18F46J11 PIM
Manufacturer
Microchip Technology
Series
PIC®r
Datasheet

Specifications of MA180023

Accessory Type
Plug-In Module (PIM) - PIC18F46J11
Tool / Board Applications
General Purpose MCU, MPU, DSP, DSC
Mcu Supported Families
PIC18
Supported Devices
Stand-alone Or W/ HPC(DM183022) Or PIC18(DM183032)
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC18
Silicon Core Number
PIC18F
Silicon Family Name
PIC18FxxJxx
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
HPC Explorer Board (DM183022) or PIC18 Explorer Board (DM183032)
For Use With
DM183032 - BOARD EXPLORER PICDEM PIC18DM183022 - BOARD DEMO PIC18FXX22 64/80TQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MA180023
Manufacturer:
Microchip Technology
Quantity:
135
PIC18F46J11 FAMILY
Choosing the configuration requires the review of all
PPSs and their pin assignments, especially those that
will not be used in the application. In all cases, unused
pin selectable peripherals should be disabled com-
pletely. Unused peripherals should have their inputs
assigned to an unused RPn pin function. I/O pins with
unused RPn functions should be configured with the
null peripheral output.
The assignment of a peripheral to a particular pin does
not automatically perform any other configuration of the
pin’s I/O circuitry. In theory, this means adding a pin
selectable output to a pin may mean inadvertently driv-
ing an existing peripheral input when the output is
driven. Users must be familiar with the behavior of
other fixed peripherals that share a remappable pin and
know when to enable or disable them. To be safe, fixed
digital peripherals that share the same pin should be
disabled when not in use.
Along these lines, configuring a remappable pin for a
specific peripheral does not automatically turn that
feature on. The peripheral must be specifically config-
ured for operation and enabled, as if it were tied to a
fixed pin. Where this happens in the application code
(immediately following device Reset and peripheral
configuration or inside the main application routine)
depends on the peripheral and its use in the
application.
A final consideration is that the PPS functions neither
override analog inputs nor reconfigure pins with analog
functions for digital I/O. If a pin is configured as an
analog input on device Reset, it must be explicitly
reconfigured as digital I/O when used with a PPS.
Example 9-7 provides a configuration for bidirectional
communication with flow control using EUSART2. The
following input and output functions are used:
• Input Function RX2
• Output Function TX2
DS39932C-page 148
EXAMPLE 9-7:
//*************************************
// Unlock Registers
//*************************************
_asm
; PPS registers are in BANK 14
MOVLB
MOVLW
MOVWF
MOVLW
MOVWF
; PPS Write Protect off
BCF
_endasm
//***************************
// Configure Input Functions
// (See Table 9-13)
//***************************
//***************************
// Assign RX2 To Pin RP0
//***************************
_asm
MOVLW
MOVWF
_endasm
//***************************
// Configure Output Functions
// (See Table 9-14)
//***************************
//***************************
// Assign TX2 To Pin RP1
//***************************
_asm
MOVLW
MOVWF
_endasm
//*************************************
// Lock Registers
//*************************************
_asm
MOVLW
MOVWF
MOVLW
MOVWF
; PPS Write Protected
BSF
_endasm
Note:
If the Configuration bit, IOL1WAY = 1,
once the IOLOCK bit is set, it cannot be
cleared, preventing any future RP register
changes. The IOLOCK bit is cleared back
to ‘0’ on any device Reset.
0x0E
0x55
EECON2, 0
0xAA
EECON2, 0
PPSCON, IOLOCK, BANKED
0x00
RPINR16, BANKED
0x05
RPOR1, BANKED
0x55
EECON2, 0
0xAA
EECON2, 0
PPSCON, IOLOCK, BANKED
CONFIGURING EUSART2
INPUT AND OUTPUT
FUNCTIONS
© 2009 Microchip Technology Inc.

Related parts for MA180023