DSPIC33FJ32MC204-I/PT Microchip Technology Inc., DSPIC33FJ32MC204-I/PT Datasheet - Page 115

no-image

DSPIC33FJ32MC204-I/PT

Manufacturer Part Number
DSPIC33FJ32MC204-I/PT
Description
16-BIT DSC, 44LD, 32KB FLASH, MOTOR, 40 MIPS, NANOWATT
Manufacturer
Microchip Technology Inc.
Type
DSPr
Datasheet

Specifications of DSPIC33FJ32MC204-I/PT

A/d Inputs
9-Channels, 10-Bit
Cpu Speed
40 MIPS
Eeprom Memory
0 Bytes
Input Output
35
Interface
I2C, SPI, UART/USART
Ios
35
Memory Type
Flash
Number Of Bits
16
Package Type
44-pin TQFP
Programmable Memory
32K Bytes
Ram Size
2K Bytes
Timers
3-16-bit, 1-32-bit
Voltage, Range
3-3.6 V
Dc
08+
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DSPIC33FJ32MC204-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
DSPIC33FJ32MC204-I/PT
0
9.4.5.2
Choosing the configuration requires review of all
peripheral pin selects and their pin assignments,
especially those that will not be used in the application.
In all cases, unused pin selectable peripherals should
be disabled completely. 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. This means adding a pin selectable
output to a pin can inadvertently drive an existing
peripheral input when the output is driven. Program-
mers 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.
9.4.5.3
Configuring a remappable pin for a specific peripheral
does not automatically turn that feature on. The periph-
eral must be specifically configured for operation and
enabled, as if it were tied to a fixed pin. Where this hap-
pens 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.
9.4.5.4
A final consideration is that peripheral pin select
functions neither override analog inputs nor reconfigure
pins with analog functions for digital I/O. If a pin is con-
figured as an analog input on device Reset, it must be
explicitly reconfigured as digital I/O when used with a
peripheral pin select.
9.4.5.5
Example 9-2 shows a configuration for bidirectional
communication with flow control using UART1. The
following input and output functions are used:
• Input Functions: U1RX, U1CTS
• Output Functions: U1TX, U1RTS
© 2007 Microchip Technology Inc.
Choosing the Configuration
Pin Operation
Analog Functions
Configuration Example
Preliminary
EXAMPLE 9-2:
//*************************************
// Unlock Registers
//*************************************
asm volatile ( "mov #OSCCONL, w1
//***************************
// Configure Input Functions
// (See Table 9-1)
//***************************
//***************************
// Configure Output Functions
// (See Table 9-2)
//***************************
//*************************************
// Lock Registers
//*************************************
asm volatile ( "mov #OSCCONL, w1
//***************************
// Assign U1Rx To Pin RP0
//***************************
RPINR18bits.U1RXR = 0;
//***************************
// Assign U1CTS To Pin RP1
//***************************
RPINR18bits.U1CTSR = 1;
//***************************
// Assign U1Tx To Pin RP2
//***************************
RPOR1bits.RP2R = 3;
//***************************
// Assign U1RTS To Pin RP3
//***************************
RPOR1bits.RP3R = 4;
"mov.b w3, [w1]
"bclr OSCCON, 6");
"mov.b w3, [w1]
"bset OSCCON, 6");
"mov #0x46, w2
"mov #0x57, w3
"mov.b w2, [w1]
"mov #0x46, w2
"mov #0x57, w3
"mov.b w2, [w1]
CONFIGURING UART1
INPUT AND OUTPUT
FUNCTIONS
DS70283B-page 113
\n"
\n"
\n"
\n"
\n"
\n"
\n"
\n"
\n"
\n"

Related parts for DSPIC33FJ32MC204-I/PT