Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

DSPIC33FJ32GP202-E/SP Datasheet(PDF) 163 Page - Microchip Technology

Part # DSPIC33FJ32GP202-E/SP
Description  High-Performance, 16-Bit Microcontrollers
PDF  252 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DSPIC33FJ32GP202-E/SP Datasheet(HTML) 163 Page - Microchip Technology

Back Button DSPIC33FJ32GP202-E/SP Datasheet HTML 159Page - Microchip Technology DSPIC33FJ32GP202-E/SP Datasheet HTML 160Page - Microchip Technology DSPIC33FJ32GP202-E/SP Datasheet HTML 161Page - Microchip Technology DSPIC33FJ32GP202-E/SP Datasheet HTML 162Page - Microchip Technology DSPIC33FJ32GP202-E/SP Datasheet HTML 163Page - Microchip Technology DSPIC33FJ32GP202-E/SP Datasheet HTML 164Page - Microchip Technology DSPIC33FJ32GP202-E/SP Datasheet HTML 165Page - Microchip Technology DSPIC33FJ32GP202-E/SP Datasheet HTML 166Page - Microchip Technology DSPIC33FJ32GP202-E/SP Datasheet HTML 167Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 163 / 252 page
background image
© 2007 Microchip Technology Inc.
Preliminary
DS70290A-page 161
dsPIC33FJ32GP202/204 and dsPIC33FJ16GP304
16.2
Transmitting in 8-bit Data Mode
1.
Set up the UART:
a)
Write appropriate values for data, parity and
Stop bits.
b)
Write appropriate baud rate value to the
BRGx register.
c)
Set up transmit and receive interrupt enable
and priority bits.
2.
Enable the UART.
3.
Set the UTXEN bit (causes a transmit interrupt).
4.
Write data byte to lower byte of UxTXREG word.
The value will be immediately transferred to the
Transmit Shift Register (TSR) and the serial bit
stream will start shifting out with the next rising
edge of the baud clock.
Alternately, the data byte can be transferred
while UTXEN = 0, and the user application can
set UTXEN. This causes the serial bit stream to
begin immediately, because the baud clock
starts from a cleared state.
5.
A transmit interrupt will be generated as per
interrupt control bits, UTXISEL<1:0>.
16.3
Transmitting in 9-bit Data Mode
1.
Set up the UART (as described in Section 16.2
“Transmitting in 8-bit Data Mode”).
2.
Enable the UART.
3.
Set the UTXEN bit (causes a transmit interrupt).
4.
Write UxTXREG as a 16-bit value only.
5.
A word write to UxTXREG triggers the transfer
of the 9-bit data to the TSR. The serial bit stream
will start shifting out with the first rising edge of
the baud clock.
A transmit interrupt will be generated as per the
setting of control bits, UTXISEL<1:0>.
16.4
Break and Sync Transmit
Sequence
The following sequence will send a message frame
header made up of a Break, followed by an auto-baud
Sync byte.
1.
Configure the UART for the desired mode.
2.
Set UTXEN and UTXBRK, which sets up the
Break character.
3.
Load the UxTXREG register with a dummy
character to initiate transmission (value is
ignored).
4.
Write 0x55 to UxTXREG, which loads the Sync
character into the transmit FIFO. After the Break
has been sent, the UTXBRK bit is reset by hard-
ware. The Sync character now transmits.
16.5
Receiving in 8-bit or 9-bit Data
Mode
1.
Set up the UART (as described in Section 16.2
“Transmitting in 8-bit Data Mode”).
2.
Enable the UART. A receive interrupt will be
generated when one or more data characters
have been received as per interrupt control bits,
URXISEL<1:0>.
3.
Read the OERR bit to determine if an overrun
error has occurred. The OERR bit must be reset
in software.
4.
Read UxRXREG.
The act of reading the UxRXREG character will move
the next character to the top of the receive FIFO,
including a new set of PERR and FERR values.
16.6
Flow Control Using UxCTS and
UxRTS Pins
UARTx Clear to Send (UxCTS) and Request to Send
(UxRTS) are the two hardware controlled active-low
pins associated with the UART module. The UEN<1:0>
bits in the UxMODE register configure these pins.
These two pins allow the UART to operate in Simplex
and Flow Control modes. They are implemented to
control the transmission and the reception between the
Data Terminal Equipment (DTE).
16.7
Infrared Support
The UART module provides two types of infrared UART
support:
• IrDA clock output to support external IrDA
encoder and decoder device (legacy module
support)
• Full implementation of the IrDA encoder and
decoder.



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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