поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

PIC24HJ12GP201E/ML датащи(PDF) 97 Page - Microchip Technology

номер детали PIC24HJ12GP201E/ML
подробное описание детали  High-Performance, 16-Bit Microcontrollers
PDF  234 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MICROCHIP [Microchip Technology]
домашняя страница  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC24HJ12GP201E/ML датащи(HTML) 97 Page - Microchip Technology

Back Button PIC24HJ12GP201E/ML Datasheet HTML 93Page - Microchip Technology PIC24HJ12GP201E/ML Datasheet HTML 94Page - Microchip Technology PIC24HJ12GP201E/ML Datasheet HTML 95Page - Microchip Technology PIC24HJ12GP201E/ML Datasheet HTML 96Page - Microchip Technology PIC24HJ12GP201E/ML Datasheet HTML 97Page - Microchip Technology PIC24HJ12GP201E/ML Datasheet HTML 98Page - Microchip Technology PIC24HJ12GP201E/ML Datasheet HTML 99Page - Microchip Technology PIC24HJ12GP201E/ML Datasheet HTML 100Page - Microchip Technology PIC24HJ12GP201E/ML Datasheet HTML 101Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 97 / 234 page
background image
© 2007 Microchip Technology Inc.
Preliminary
DS70282B-page 95
PIC24HJ12GP201/202
9.4.5.2
Changing the Configuration
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.
Programmers 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
Pin Operation
Configuring a remappable pin for a specific peripheral
does not automatically turn that feature on. The
peripheral
must
be
specifically
configured
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.
9.4.5.4
Analog Function
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 configured 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
Configuration Example
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
EXAMPLE 9-2:
CONFIGURING UART1
INPUT AND OUTPUT
FUNCTIONS
//*************************************
// Unlock Registers
//*************************************
asm volatile ( "mov #OSCCONL, w1
\n"
"mov #0x46, w2
\n"
"mov #0x57, w3
\n"
"mov.b w2, [w1]
\n"
"mov.b w3, [w1]
\n"
"bclr OSCCON, 6");
//***************************
// Configure Input Functions
// (See Table 9-1)
//***************************
//***************************
// Assign U1Rx To Pin RP0
//***************************
RPINR18bits.U1RXR = 0;
//***************************
// Assign U1CTS To Pin RP1
//***************************
RPINR18bits.U1CTSR = 1;
//***************************
// Configure Output Functions
// (See Table 9-2)
//***************************
//***************************
// Assign U1Tx To Pin RP2
//***************************
RPOR1bits.RP2R = 3;
//***************************
// Assign U1RTS To Pin RP3
//***************************
RPOR1bits.RP3R = 4;
//*************************************
// Lock Registers
//*************************************
asm volatile ( "mov #OSCCONL, w1
\n"
"mov #0x46, w2
\n"
"mov #0x57, w3
\n"
"mov.b w2, [w1]
\n"
"mov.b w3, [w1]
\n"
"bset OSCCON, 6");



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com