m132

m132
P132 Microcontroller
Pira.cz
Advanced Mid-Range RDS/RBDS Encoder Driving IC
DESCRIPTION
FEATURES
The P132 Microcontroller forms a fully digital Radio
Data System encoder that has been developed
especially for FM broadcasting.
The device provides up to four independent serial
2
communication ports and supports optional I C
slave peripherals such as EEPROM memory, RTC
or digital potentiometer.
External Ethernet module can be connected to the
device, giving the final equipment a possibility of
remote web-site control, TCP/UDP socket control,
real-time clock update via SNTP protocol, SNMP
remote monitoring and reading internet content via
integrated http client.
Single supply 3.0 to 5.5 V
Typical operating current: 12 mA @ 5.0 V
Minimum external parts
2
I C bus for external peripherals like EEPROM,
real time clock or digital potentiometer
External TA and Program switch
Two indication LED outputs
Integrated support for HD44780 based LCD
Industrial temperature range
Clocked with low-cost 16 MHz crystal
Both stereo and mono operation possible
Fully integrated DSP pilot tone filter and PLL
Parallel 8-bit D/A converter, 592 kHz sampling
rate (over-sampled)
Only simple output filter required
RDS/RBDS signal:
conforms to CENELEC EN 50067 / EN 62106
4 independent serial communication ports
(2 physical and 2 logical)
Ethernet module support
Backward compatible with PIRA32
Firmware update capability
Final product requires no factory adjustment
RoHS compliant
Packages available: 40-lead PDIP
44-lead TQFP
APPLICATIONS
FM broadcast RDS encoders with up to 4
communication ports
Important Note:
This datasheet is not intended to be a complete P132 system designer’s reference source.
For more information on the features, characteristics, control and use refer to these documents:
“P132 RDS Encoder Technical Manual” (available online)
“P132 RDS Encoder – Communication Ports and Internet Functions” (available online)
“P132/PIRA32 Device Configuration” (available on request)
The manufacturer is not liable for any damages, including but not limited to, lost profits, lost savings, or other
incidental or consequential damages arising out of the use of this product.
No part of this datasheet may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying, recording or information storage and retrieval systems, for any purpose other
than the purchaser's personal use.
Information in this document is subject to change without notice.
Revision 2014-04-08
P132 Microcontroller
TABLE OF CONTENTS
1
2
3
4
5
Pin Diagrams .................................................................................................................................................. 3
1.1 40-Pin PDIP .............................................................................................................................................. 3
1.2 44-Pin TQFP ............................................................................................................................................. 3
1.3 Pin descriptions......................................................................................................................................... 4
1.4 Internal logical structure (simplified).......................................................................................................... 6
Electrical Characteristics............................................................................................................................... 7
External devices supported........................................................................................................................... 8
2
3.1 External I C devices supported ................................................................................................................. 8
3.2 External Ethernet devices supported......................................................................................................... 8
Connection Diagrams and Application Notes.............................................................................................. 9
4.1 Basic connection diagram ......................................................................................................................... 9
4.2 Design notes ........................................................................................................................................... 10
4.2.1 Power supply ..................................................................................................................................... 10
4.2.2 Hardware reset .................................................................................................................................. 10
4.2.3 Crystal oscillator ................................................................................................................................ 10
4.2.4 MPX/Pilot input and pilot PLL ............................................................................................................ 10
4.2.5 RS-232 interface................................................................................................................................ 11
4.2.6 Digital-to-Analog converter ................................................................................................................ 11
4.2.7 Output low-pass filter ......................................................................................................................... 12
4.3 Block diagram for a typical application (simplified).................................................................................. 12
Package Details ............................................................................................................................................ 13
5.1 40-Lead Plastic Dual In-Line (PDIP) 600 mil Body.................................................................................. 13
5.2 44-Lead Plastic Thin Quad Flatpack (TQFP) – 10x10x1 mm Body......................................................... 14
m132.pdf – page 2
© 2014 Pira.cz
P132 Microcontroller
1
PIN DIAGRAMS
1.1
40-Pin PDIP
1.2
44-Pin TQFP
© 2014 Pira.cz
m132.pdf – page 3
P132 Microcontroller
1.3
Pin descriptions
Pin name
/RESET
MPX/PILOT
PROGRAM
ADC VREF+
CPU VCAP
TA
VDD
VSS
OSC IN
OSC OUT
m132.pdf – page 4
Description
Internal
weak pull-up
Device reset
Logical low on this pin holds the device in reset state.
If the reset function is not required, connect this pin to VDD through 10k
resistor.
MPX or pilot tone analogue input for RDS sync.
MPX or pilot sample input for RDS sub-carrier synchronization in case
of stereo transmission. Average DC component of the input signal
should be (ADC VREF+ / 2). Peak value should not exceed VSS and
ADC VREF+ boundaries.
If the pilot sync. function is not required, connect this pin to VSS.
Program select
Selects between two different RDS data sets (program 1 or
program 2).
If the program external switching function is not required, connect this
pin to VDD through a resistor.
Positive voltage reference for internal A/D converter
Connect this pin to VDD through a 15Ω resistor. Decoupling this pin to
VSS using a 10 µF capacitor is recommended.
Direct connection of this pin to VDD is not recommended due to noise
parameters.
This pin must be connected although the pilot sync. function is not
required!
External filter capacitor connection
A low-ESR (< 5Ω) capacitor is required on this pin to stabilize internal
voltage regulator output voltage. The capacitor must be connected to
ground. The type can be ceramic or tantalum, a value of 10 µF.
TA switch
RDS Traffic Announcement (TA) flag control.
If the TA external switching function is not required, connect this pin to
VDD through a resistor.
Positive supply
Apply VDD power supply voltage to this pin. All VDD pins must be
connected.
Decoupling capacitor is required on every pair of VDD and VSS pins. A
100 nF 10-20V capacitor is recommended. Ceramic capacitors are
recommended. The decoupling capacitors should be placed as close
to the pins as possible.
It is recommended to add a second ceramic type capacitor in parallel
to the above described decoupling capacitor. The value of the second
capacitor should be 1 nF.
Ground reference
All VSS pins must be connected.
Crystal oscillator input
Tie to 16 MHz crystal pin or an integrated crystal oscillator output.
Crystal oscillator output
Tie to 16 MHz crystal pin.
Leave unconnected if an integrated crystal oscillator is used for
clocking the device via pin OSC IN.
Can be used for clocking another device on the board.
© 2014 Pira.cz
P132 Microcontroller
Operation LED
Connect an indication LED (+) through a resistor or leave
unconnected.
Pilot LED
LED2
Connect an indication LED (+) through a resistor or leave
unconnected.
Logical signal to/from external Ethernet module
By default, this pin provides a reset signal for the Ethernet module.
LAN CTRL1
Open-drain output with input value reading capability.
If there’s no Ethernet module present on port 2, connect this pin to VSS
(ground).
2
I C serial clock output
SCL
Open-drain terminal, external 2k pull-up resistor is required.
LCD DBx,
LCD data line
LCD E,
LCD data line to a HD44780-based LCD driver.
LCD RS
If the LCD is not required, leave these pins unconnected.
2
I C serial data input/output
SDA
Open-drain terminal, external 2k pull-up resistor is required.
Initialization signal for external Ethernet module
LAN CTRL2
If there’s no Ethernet module present on port 2, leave this pin
unconnected.
Serial port 1 Transmit data
Serial RS-232 port 1 transmit data output (software selectable 1200 to
TX1
19200 bps). Logical high = idle.
This pin is required for proper software configuration of the device.
Serial port 1 Receive data
Serial RS-232 port 1 receive data input (software selectable 1200 to
RX1
19200 bps). Logical high = idle.
This pin is required for proper software configuration of the device.
Serial port 2 Transmit data
Serial RS-232 port 2 transmit data output (19200 bps).
TX2
Logical high = idle. Ethernet functions are available on this port.
If the port 2 is not required, leave this pin unconnected.
Serial port 2 Receive data
Serial RS-232 port 2 receive data input (19200 bps).
RX2
Logical high = idle. Ethernet functions are available on this port.
If the port 2 is not required, connect this pin to VDD through a resistor.
D/A Converter bit 0 to 7
These pins together form driving signal for output parallel D/A
DA0-DA7
converter. A simple low-cost R/2R resistor network can serve the D/A
converter function. The R value should be 1k.
Enable RDS Output
Driving this pin low disables the RDS output by switching D/A
converter output latches to 3-state. This pin has a higher priority
ENABLE RDS
compared to RDSGEN command.
If the RDS output has to be always enabled by hardware (standard
operation), leave this pin unconnected.
LCD drivers 3-state
Driving this pin low puts the LCD data line pins to 3-state.
/LCD TRI-STATE
If that function is not required (i.e. for standard operation), leave this
pin unconnected.
Reserved for future use
(Reserved)
Leave unconnected or tie to VDD through 10k resistor.
Not connected
NC
Leave unconnected.
LED1
© 2014 Pira.cz
m132.pdf – page 5
P132 Microcontroller
1.4
Internal logical structure (simplified)
ADC VREF+
MPX/PILOT
TA
A/D
PROGRAM
LED2
Pilot
filter
PLL
DA0-DA7
57 kHz
NCO
DSB-SC
modulator
Output
latches
DSP Block
RDS on/off
/48
Internal
RTC
SCL
SDA
LCD
IIC
controller
Internal
reference
Operational
memory
(RAM)
RDS group
sequencer
Output
data
buffer
Power
supply
VDD
VSS
CPU VCAP
Reset
RESET
LCD
controller
OSC IN
OSC
OSC OUT
LED1
Command
interpreter
RX1
TX1
Port
controller
Port 1
buffers
Port 3
buffers
LAN
controller
RX2
TX2
Port 2
buffers
Port 4
buffers
LAN CTRL1
LAN CTRL2
m132.pdf – page 6
P132 MCU
© 2014 Pira.cz
P132 Microcontroller
2
ELECTRICAL CHARACTERISTICS
Maximum Ratings
Ambient temperature under bias............................................................................................-40 °C to +125 °C
Storage temperature..............................................................................................................-65 °C to +150 °C
Voltage on VDD with respect to VSS ........................................................................................... -0.3 V to +6.0 V
Voltage on any I/O pin with respect to VSS ...................................................................... -0.3 V to (VDD + 0.3 V)
Maximum current sourced by any output pin ...........................................................................................25 mA
Maximum current sunk by any output pin ................................................................................................25 mA
Stresses above those listed under “Maximum Ratings” may cause permanent damage to the device.
Symbol
Parameter
VDD
Supply voltage
FOSC
Oscillator Frequency
FS
D/A Converter sampling
rate
LMPX
MPX input level
LPILOT
Pilot tone input level
BPLL
PLL capture range
FCLK
I C clock frequency
2
© 2014 Pira.cz
Min.
Typ.
Max.
Unit
Conditions
3.0
-
5.5
V
-0.01 %
16
+0.01 %
MHz
-
592
-
kHz
1000
-
VDD - VSS
mV pp
Stereo broadcast
80
-
VDD - VSS
mV pp
Stereo broadcast
-
8
-
Hz
-
400
-
kHz
m132.pdf – page 7
P132 Microcontroller
3
EXTERNAL DEVICES SUPPORTED
The P132 Microcontroller supports several external devices that extend its possibilities. Most of these devices are
optional, i.e. the final design is highly customizable.
3.1
2
External I C devices supported
Device name
Manufacturer
Description
PCF8563
NXP
Battery powered backup real-time clock (RTC).
24LC512
Microchip
Serial EEPROM. Non-volatile memory for storing RDS and
configuration data. Required for proper function.
MCP4551-103
Microchip
Digital potentiometer for software control of the RDS output level.
3.2
External Ethernet devices supported
Device name
NanoSocket LAN,
Nano LANReach
(CO2128, CO2144)
Manufacturer
Description
Connect One
The Nano SocketLAN/Nano LANReach is a secure serial-to-LAN
on-board device server module that acts as a bridge to connect
P132 Microcontroller to 10/100 Mbit Ethernet LAN. It includes
iChip CO2144 IP Communication Controller chip and a
10/100BaseT Ethernet PHY.
Typical Ethernet module connection (NanoSocket LAN):
NanoSocket LAN Pin
Connection
J8 – 1
*
GND
to Ground
J8 – 2
Vsupply
to +3.3V
J8 – 3
RXD0
to TX2 *
J8 – 4
TXD0
to RX2 *
J8 – 5
/CTS0
to /RTS0
J8 – 6
/RTS0
J8 – 7
DATA_RDY
J8 – 8
MSEL
to /CTS0
(no connection)
to Vsupply through a pull-up resistor and to LAN CTRL2 *
J8 – 9
/RESET
J8 – 10
ACT_LINK
(no connection)
to Vsupply through a pull-up resistor and to LAN CTRL1 *
J9 – 1
nSPI1_CS
(no connection)
J9 – 2
SPI1_CLK
(no connection)
J9 – 3
SPI1_MISO
(no connection)
J9 – 4
SPI1_MOSI
(no connection)
J9 – 5
SPI1_INT
(no connection)
J9 – 6
Readiness
(no connection)
J9 – 7
DDM
(no connection)
J9 – 8
DDP
(no connection)
J9 – 9
SPEED
J9 – 10
GND
(no connection)
to Ground
Note: Level conversion is required between NanoSocket LAN running at 3.3 V and P132 Microcontroller if
running at 5.0 V. This applies to signals RXD0 and TXD0.
m132.pdf – page 8
© 2014 Pira.cz
P132 Microcontroller
4
4.1
CONNECTION DIAGRAMS AND APPLICATION NOTES
Basic connection diagram
© 2014 Pira.cz
m132.pdf – page 9
P132 Microcontroller
4.2
4.2.1
Design notes
Power supply
All power supply pins (VSS,VDD) must always be connected.
The use of decoupling capacitors on every pair of power supply pins is required. Consider the following criteria
when using decoupling capacitors:
•
Value and type of capacitor: A 0.1 µF (100 nF), 10-20V capacitor is recommended. The capacitor should
be a low-ESR device, with a resonance frequency in the range of 200 MHz and higher. Ceramic capacitors
are recommended.
•
Placement on the printed circuit board: The decoupling capacitors should be placed as close to the pins
as possible. It is recommended to place the capacitors on the same side of the board as the device. If space
is constricted, the capacitor can be placed on another layer on the PCB using a via; however, ensure that the
trace length from the pin to the capacitor is no greater than 0.25 inch (6 mm).
•
Handling high-frequency noise: Since the final equipment may experiencing high-frequency noise (upward
of tens of MHz), add a second ceramic type capacitor in parallel to the above described decoupling capacitor.
The value of the second capacitor can be in the range of 0.01 µF to 0.001 µF. Place this second capacitor
next to each primary decoupling capacitor, closer to the Microcontroller.
•
Maximizing performance: On the board layout from the power supply circuit, run the power and return
traces to the decoupling capacitors first, and then to the device pins. This ensures that the decoupling
capacitors are first in the power chain. Equally important is to keep the trace length between the capacitor
and the power pins to a minimum, thereby reducing PCB trace inductance.
A low-ESR (< 5Ω) capacitor is required on the CPU VCAP pin to stabilize the internal voltage regulator voltage. The
pin must not be connected to VDD and must use a capacitor of 10 µF connected to ground. The type can be
ceramic or tantalum. It is recommended that the trace length not exceed 0.25 inch (6 mm).
4.2.2
Hardware reset
The hardware reset is generated by holding the /RESET pin low. The device has a noise filter in the reset path
which detects and ignores small pulses.
A reset pulse is generated on-chip whenever VDD rises above a certain threshold. This allows the device to start in
the initialized state when VDD is adequate for operation. To take advantage of this feature, tie the /RESET pin
through a resistor (1k to 10k) to VDD. This will eliminate external RC components usually needed to create a reset
delay.
When the device starts normal operation (i.e., exits the reset condition), device operating parameters (voltage,
temperature, etc.) must be met to ensure operation. If these conditions are not met, the device must be held in
reset until the operating conditions are met.
4.2.3
Crystal oscillator
The oscillator circuit should be placed on the same side of the board as the device. Place the oscillator circuit
close to the respective oscillator pins with no more than 0.5 inch (12 mm) between the circuit components and the
pins. The load capacitors should be placed next to the oscillator itself, on the same side of the board.
The load capacitor value depends on the crystal characteristics. Optimal value ensures the FOSC to lie in the
tolerance range given in section Electrical characteristics. A good starting value is 47 pF for the load capacitors.
4.2.4
MPX/Pilot input and pilot PLL
The P132 Microcontroller includes an internal phase locked loop, which synchronises the RDS subcarrier with
19 kHz pilot tone in case of stereo broadcast. Parameters of the PLL are controlled by software.
MPX signal or pilot tone is tied to the MPX/PILOT input pin. For the MPX signal, in order to keep the PLL
performance, it is especially important not to exceed its signal level boundaries represented by power supply
voltage. The pilot tone contained within the MPX signal must have at least the level equivalent to the parameter
LPILOT minimum (see section Electrical characteristics). To meet these signal level requirements, if a wide range of
input signal is expected on the MPX/PILOT pin, the signal should be pre-filtered using a simple 19 kHz bandpass
filter. If there are spectrum components in the MPX signal above 60 kHz, these should be attenuated before
feeding to the MPX/PILOT pin to prevent internal aliasing effect that can affect the PLL performance.
m132.pdf – page 10
© 2014 Pira.cz
P132 Microcontroller
4.2.5
RS-232 interface
The RS-232 interface is used on each port for the device configuration and data transfers. The RX and TX pin
levels are compatible with TTL. For connection to external RS-232 equipment an inverter and level converter is
required (for example MAX232).
4.2.6
Digital-to-Analog converter
The P132 Microcontroller uses a parallel 8-bit D/A converter with over-sampling technique. Digital data provided
on DA pins can be directly formed into final analogue RDS output signal using low-cost resistor network.
Figure 4.2.6.1 shows accurate 8-bit DAC using R/2R resistor network. It’s a binary weighted DAC that creates
each value with a repeating structure of 2 resistor values, R and R times two. This is an optimal DAC for this
device. The resistor value tolerance must not exceed 2 %.
6
P132 MCU
Figure 4.2.6.1 - 8-bit D/A converter R/2R network
Figure 4.2.6.2 – Output RDS signal on oscilloscope (horizontal: 200 µs/div, vertical: 500 mV/div).
© 2014 Pira.cz
m132.pdf – page 11
P132 Microcontroller
4.2.7
Output low-pass filter
The output RDS signal modulated at 57 kHz subcarrier requires no special filtering. Spurious products are kept
below -80 dB limit (a noise level of high quality FM transmitters) and the D/A conversion residues around the
sampling frequency can be cut-off using any simple low-pass filter. This may be based either on active filter or a
simple LC element. The filter can be connected either before or after the output level control.
For FM broadcast purposes the low-pass filter rejection should be at least 20 dBc on the sampling frequency. It is
recommended for high quality FM broadcasting that the output filter characteristics interpolate at least these
values:
15 kHz
-20 dB
4.3
57 kHz
592 kHz
-30 dB
0 dB
Block diagram for a typical application (simplified)
Pilot/MPX
RTC
I 2C
EEPROM
LCD
Output level
control
P132
Microcontroller
Port 2
Ethernet
module
Port 1
LAN
m132.pdf – page 12
RS-232
R/2R
low-cost
DAC
RDS
output
© 2014 Pira.cz
P132 Microcontroller
5
PACKAGE DETAILS
5.1
40-Lead Plastic Dual In-Line (PDIP) 600 mil Body
Units
Dimension Limits
Number of Pins
INCHES
MIN
N
TYP
MAX
40
Pitch
e
Top to Seating Plane
A
-
-
.250
Molded Package Thickness
A2
.125
-
.195
Base to Seating Plane
A1
.015
-
-
Shoulder to Shoulder Width
E
.590
-
.625
Molded Package Width
E1
.485
-
.580
Overall Length
D
1.980
-
2.095
Tip to Seating Plane
L
.115
-
.200
Lead Thickness
c
.008
-
.015
b1
.030
-
.070
b
.014
-
.023
eB
-
-
.700
Upper Lead Width
Lower Lead Width
Overall Row Spacing §
.100 BSC
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. § Significant Characteristic.
3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not
exceed .010” per side.
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
© 2014 Pira.cz
m132.pdf – page 13
P132 Microcontroller
5.2
44-Lead Plastic Thin Quad Flatpack (TQFP) – 10x10x1 mm Body
Units
Dimension Limits
MILLIMETERS
MIN
TYP
Number of Leads
N
44
Lead Pitch
e
0.80 BSC
MAX
Overall Height
A
-
-
1.2
Molded Package Thickness
A2
0.95
1.00
1.05
Standoff
A1
0.05
-
0.15
Foot Length
L
0.45
0.60
0.75
Footprint
L1
Foot Angle
φ
1.00 REF
0°
3.5°
Overall Width
E
12.00 BSC
Overall Length
D
12.00 BSC
Molded Package Width
E1
10.00 BSC
Molded Package Length
D1
Lead Thickness
7°
10.00 BSC
c
0.09
-
0.20
Lead Width
b
0.30
0.37
0.45
Mold Draft Angle Top
α
11°
12°
13°
Mold Draft Angle Bottom
β
11°
12°
13°
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. Chamfers at corners are optional; size may vary.
3. Dimensions D1 and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not
exceed 0.25 mm per side.
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
REF: Reference Dimension, usually without tolerance, for information purposes only.
m132.pdf – page 14
© 2014 Pira.cz
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement