PIC24F04KA201-I/SS Microchip Technology, PIC24F04KA201-I/SS Datasheet - Page 137

IC PIC MCU FLASH 512KX4 20-SSOP

PIC24F04KA201-I/SS

Manufacturer Part Number
PIC24F04KA201-I/SS
Description
IC PIC MCU FLASH 512KX4 20-SSOP
Manufacturer
Microchip Technology
Series
PIC® XLP™ 24Fr

Specifications of PIC24F04KA201-I/SS

Core Size
16-Bit
Program Memory Size
4KB (1.375K x 24)
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Core Processor
PIC
Speed
32MHz
Connectivity
I²C, IrDA, SPI, UART/USART
Number Of I /o
18
Program Memory Type
FLASH
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 3.6 V
Data Converters
A/D 9x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-SSOP
Controller Family/series
PIC24
No. Of I/o's
18
Ram Memory Size
512Byte
Cpu Speed
32MHz
No. Of Timers
3
Processor Series
PIC24F
Core
PIC
Data Bus Width
16 bit
Data Ram Size
512 B
Interface Type
I2C, SPI, UART
Maximum Clock Frequency
32 KHz
Number Of Programmable I/os
12
Number Of Timers
3
Operating Supply Voltage
1.8 V to 3.6 V
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52713-733, 52714-737, 53276-922, EWDSPIC
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, DM240001
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 9 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
 Details
17.2
1.
2.
3.
4.
5.
6.
17.3
1.
2.
3.
4.
5.
6.
17.4
The following sequence will send a message frame
header made up of a Break, followed by an auto-baud
Sync byte.
1.
2.
3.
4.
5.
© 2009 Microchip Technology Inc.
Set up the UART:
a)
b)
c)
Enable the UART.
Set the UTXEN bit (causes a transmit interrupt
two cycles after being set).
Write data byte to lower byte of U1TXREG 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 may be transferred
while UTXEN = 0, and then, the user may set
UTXEN. This will cause the serial bit stream to
begin immediately because the baud clock will
start from a cleared state.
A transmit interrupt will be generated as per
interrupt control bit, UTXISEL1.
Set up the UART (as described in Section 17.2
“Transmitting in 8-Bit Data Mode”).
Enable the UART.
Set the UTXEN bit (causes a transmit interrupt
two cycles after being set).
Write U1TXREG as a 16-bit value only.
A word write to U1TXREG 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 bit, UTXISEL1.
Configure the UART for the desired mode.
Set UTXEN and UTXBRK – sets up the Break
character.
Load the U1TXREG with a dummy character to
initiate transmission (value is ignored).
Write ‘55h’ to U1TXREG – loads the Sync
character into the transmit FIFO.
After the Break has been sent, the UTXBRK bit
is reset by hardware. The Sync character now
transmits.
Transmitting in 8-Bit Data Mode
Write appropriate values for data, parity and
Stop bits.
Write appropriate baud rate value to the
U1BRG register.
Set up transmit and receive interrupt enable
and priority bits.
Transmitting in 9-Bit Data Mode
Break and Sync Transmit
Sequence
Preliminary
PIC24F04KA201 FAMILY
17.5
1.
2.
3.
4.
5.
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.
17.6
UART1 Clear to Send (U1CTS) and Request to Send
(U1RTS) are the two hardware-controlled pins that are
associated with the UART module. These two pins
allow the UART to operate in Simplex and Flow Control
modes. They are implemented to control the
transmission and reception between the Data Terminal
Equipment (DTE). The UEN<1:0> bits in the U1MODE
register configure these pins.
17.7
The UART module provides two types of infrared UART
support: one is the IrDA clock output to support an
external IrDA encoder and decoder device (legacy
module
implementation of the IrDA encoder and decoder.
As the IrDA modes require a 16x baud clock, they will
only work when the BRGH bit (U1MODE<3>) is ‘0’.
17.7.1
To support external IrDA encoder and decoder devices,
the U1BCLK pin (same as the U1RTS pin) can be
configured to generate the 16x baud clock. When
UEN<1:0> = 11, the U1BCLK pin will output the 16x
baud clock if the UART module is enabled; it can be
used to support the IrDA codec chip.
17.7.2
The UART has full implementation of the IrDA encoder
and decoder as part of the UART module. The built-in
IrDA encoder and decoder functionality is enabled
using the IREN bit (U1MODE<12>). When enabled
(IREN = 1), the receive pin (U1RX) acts as the input
from the infrared receiver. The transmit pin (U1TX) acts
as the output to the infrared transmitter.
Set up the UART (as described in Section 17.2
“Transmitting in 8-Bit Data Mode”).
Enable the UART.
A receive interrupt will be generated when one
or more data characters have been received as
per interrupt control bit, URXISEL1.
Read the OERR bit to determine if an overrun
error has occurred. The OERR bit must be reset
in software.
Read U1RXREG.
Receiving in 8-Bit or 9-Bit Data
Mode
Operation of U1CTS and U1RTS
Control Pins
Infrared Support
support),
EXTERNAL IrDA SUPPORT – IrDA
CLOCK OUTPUT
BUILT-IN IrDA ENCODER AND
DECODER
and
the
other
DS39937B-page 135
is
the
full

Related parts for PIC24F04KA201-I/SS