St-t UPSD3212C Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Hardware St-t UPSD3212C. ST & T UPSD3212C User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 163
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 0
1/163December 2004
uPSD3212A, uPSD3212C
uPSD3212CV
Flash Programmable System Devices with
8032 MCU with USB and Programmable Logic
FEATURES SUMMARY
FAST 8-BIT 8032 MCU
40MHz at 5.0V, 24MHz at 3.3V
Core, 12-clocks per instruction
DUAL FLASH MEMORIES WITH MEMORY
MANAGEMENT
Place either memory into 8032 program
address space or data address space
READ-while-WRITE operation for In-
Application Programming and EEPROM
emulation
Single voltage program and erase
100K minimum erase cycles, 15-year
retention
CLOCK, RESET, AND SUPPLY
MANAGEMENT
SRAM is Battery Backup capable
Normal, Idle, and Power Down Modes
Power-on and Low Voltage reset
supervisor
Programmable Watchdog Timer
PROGRAMMABLE LOGIC, GENERAL
PURPOSE
16 macrocells
Implements state machines, glue-logic,
and so forth
COMMUNICATION INTERFACES
–I
2
C Master/Slave bus controller
Two UARTs with independent baud rate
Six I/O ports with up to 46 I/O pins
8032 Address/Data bus available on
TQFP80 package
5 PWM outputs, 8-bit resolution
USB v1.1, low-speed 1.5Mbps, 3
endpoints (uPSD3212A only)
Figure 1. Packages
JTAG IN-SYSTEM PROGRAMMING
Program the entire device in as little as
10 seconds
A/D CONVERTER
Four channels, 8-bit resolution, 10µs
TIMERS AND INTERRUPTS
Three 8032 standard 16-bit timers
10 Interrupt sources with two external
interrupt pins
Single Supply Voltage
4.5 to 5.5V
3.0 to 3.6V
TQFP52 (T)
52-lead, Thin,
Quad, Flat
TQFP80 (U)
80-lead, Thin,
Quad, Flat
www.BDTIC.com/ST
Vista de página 0
1 2 3 4 5 6 ... 162 163

Resumo do Conteúdo

Página 1 - FEATURES SUMMARY

1/163December 2004uPSD3212A, uPSD3212CuPSD3212CVFlash Programmable System Devices with8032 MCU with USB and Programmable LogicFEATURES SUMMARY FAST 8

Página 2 - Table 1. Device Summary

uPSD3212A, uPSD3212C, uPSD3212CV10/163Table 2. 80-Pin Package Pin DescriptionPort PinSignalNamePin No. In/OutFunctionBasic AlternateAD0 36 I/OExternal

Página 3 - TABLE OF CONTENTS

uPSD3212A, uPSD3212C, uPSD3212CV100/163Erasing Flash MemoryFlash Bulk Erase. The Flash Bulk Erase instruc-tion uses six WRITE operations followed by a

Página 4

101/163uPSD3212A, uPSD3212C, uPSD3212CVSpecific FeaturesFlash Memory Sector Protect. Each primaryand secondary Flash memory sector can be sepa-rately

Página 5

uPSD3212A, uPSD3212C, uPSD3212CV102/163SRAMThe SRAM is enabled when SRAM Select (RS0)from the DPLD is High. SRAM Select (RS0) cancontain up to two pro

Página 6

103/163uPSD3212A, uPSD3212C, uPSD3212CVMemory Select Configuration in Program andData Spaces. The MCU Core has separate ad-dress spaces for Program me

Página 7 - SUMMARY DESCRIPTION

uPSD3212A, uPSD3212C, uPSD3212CV104/163Separate Space Mode. Program space is sepa-rated from Data space. For example, Program Se-lect Enable (PSEN) is

Página 8 - Figure 3. TQFP52 Connections

105/163uPSD3212A, uPSD3212C, uPSD3212CVPage RegisterThe 8-bit Page Register increases the addressingcapability of the MCU Core by a factor of up to 25

Página 9 - Figure 4. TQFP80 Connections

uPSD3212A, uPSD3212C, uPSD3212CV106/163PLDSThe PLDs bring programmable logic functionalityto the uPSD. After specifying the logic for thePLDs in PSDso

Página 10

107/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 54. PLD DiagramNote: 1. Ports A is not available in the 52-pin packagePLD INPUT BUS8INPUT MACROCELL &

Página 11

uPSD3212A, uPSD3212C, uPSD3212CV108/163Decode PLD (DPLD)The DPLD, shown in Figure 55, is used for decod-ing the address for PSD MODULE and externalcom

Página 12 - 52-PIN PACKAGE I/O PORT

109/163uPSD3212A, uPSD3212C, uPSD3212CVComplex PLD (CPLD)The CPLD can be used to implement system logicfunctions, such as loadable counters and shift

Página 13 - ARCHITECTURE OVERVIEW

11/163uPSD3212A, uPSD3212C, uPSD3212CVP4.4 PWM1 25 I/O General I/O port pin8-bit Pulse Width Modulation output 1P4.5 PWM2 23 I/O General I/O port pin8

Página 14

uPSD3212A, uPSD3212C, uPSD3212CV110/163Output Macrocell (OMC)Eight of the Output Macrocells (OMC) are con-nected to Ports A and B pins and are named a

Página 15

111/163uPSD3212A, uPSD3212C, uPSD3212CVProduct Term AllocatorThe CPLD has a Product Term Allocator. PSDsoftuses the Product Term Allocator to borrow a

Página 16 - Program Memory

uPSD3212A, uPSD3212C, uPSD3212CV112/163The OMC Mask Register. There is one MaskRegister for each of the two groups of eight OutputMacrocells (OMC). Th

Página 17 - 3Ah 1E73h

113/163uPSD3212A, uPSD3212C, uPSD3212CVI/O PORTS (PSD MODULE)There are four programmable I/O ports: Ports A, B,C, and D in the PSD MODULE. Each of the

Página 18

uPSD3212A, uPSD3212C, uPSD3212CV114/163The Port pin’s tri-state output driver enable is con-trolled by a two input OR gate whose inputs comefrom the C

Página 19 - Table 5. Logical Instructions

115/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 60. Peripheral I/O ModeTable 89. Port Operating ModesNote: 1. JTAG pins (TMS, TCK, TDI, TDO) are dedicat

Página 20

uPSD3212A, uPSD3212C, uPSD3212CV116/163Port Configuration Registers (PCR)Each Port has a set of Port Configuration Regis-ters (PCR) used for configura

Página 21

117/163uPSD3212A, uPSD3212C, uPSD3212CVPort Data RegistersThe Port Data Registers, shown in Table 97, areused by the MCU to write data to or read data

Página 22

uPSD3212A, uPSD3212C, uPSD3212CV118/163Ports A and B – Functionality and StructurePorts A and B have similar functionality and struc-ture, as shown in

Página 23

119/163uPSD3212A, uPSD3212C, uPSD3212CVPort C – Functionality and StructurePort C can be configured to perform one or moreof the following functions (

Página 24 - byte. The jump dis

uPSD3212A, uPSD3212C, uPSD3212CV12/16352-PIN PACKAGE I/O PORTThe 52-pin package members of the uPSD321xDevices have the same port pins as those of the

Página 25

uPSD3212A, uPSD3212C, uPSD3212CV120/163Port D – Functionality and StructurePort D has two I/O pins (only one pin, PD1, in the52-pin package). See Figu

Página 26

121/163uPSD3212A, uPSD3212C, uPSD3212CVExternal Chip SelectThe CPLD also provides two External Chip Select(ECS1-ECS2) outputs on Port D pins that can

Página 27 - AI07426b

uPSD3212A, uPSD3212C, uPSD3212CV122/163POWER MANAGEMENTAll PSD MODULE offers configurable power sav-ing options. These options may be used individu-al

Página 28 - MCU MODULE DISCRIPTION

123/163uPSD3212A, uPSD3212C, uPSD3212CVThe PSD MODULE has a Turbo Bit in PMMR0.This bit can be set to turn the Turbo Mode off (thedefault is with Turb

Página 29 - Table 16. List of all SFR

uPSD3212A, uPSD3212C, uPSD3212CV124/163PLD Power ManagementThe power and speed of the PLDs are controlledby the Turbo Bit (Bit 3) in PMMR0 (see Table

Página 30

125/163uPSD3212A, uPSD3212C, uPSD3212CVTable 100. Power Management Mode Registers PMMR2Note: The bits of this register are cleared to zero following P

Página 31

uPSD3212A, uPSD3212C, uPSD3212CV126/163RESET TIMING AND DEVICE STATUS AT RESETUpon Power-up, the PSD MODULE requires a Re-set (RESET) pulse of duratio

Página 32 - Register Name

127/163uPSD3212A, uPSD3212C, uPSD3212CVPROGRAMMING IN-CIRCUIT USING THE JTAG SERIAL INTERFACEThe JTAG Serial Interface pins (TMS, TCK, TDI,TDO) are de

Página 33

uPSD3212A, uPSD3212C, uPSD3212CV128/163AC/DC PARAMETERSThese tables describe the AD and DC parametersof the uPSD321x Devices:➜ DC Electrical Specific

Página 34 - INTERRUPT SYSTEM

129/163uPSD3212A, uPSD3212C, uPSD3212CVTable 104. PSD MODULE Example, Typ. Power Calculation at VCC = 5.0V (Turbo Mode Off)ConditionsMCU Clock Frequen

Página 35 - Figure 16. Interrupt System

13/163uPSD3212A, uPSD3212C, uPSD3212CVARCHITECTURE OVERVIEWMemory OrganizationThe uPSD321x Devices’s standard 8032 Core hasseparate 64KB address space

Página 36

uPSD3212A, uPSD3212C, uPSD3212CV130/163MAXIMUM RATINGStressing the device above the rating listed in theAbsolute Maximum Ratings” table may cause per-

Página 37

131/163uPSD3212A, uPSD3212C, uPSD3212CVEMC CHARACTERISTICSSusceptibility test are performed on a sample ba-sis during product characterization.Functio

Página 38

uPSD3212A, uPSD3212C, uPSD3212CV132/163LU. 3 complementary static tests are required on10 parts to assess the latch-up performance. Asupply overvoltag

Página 39 - POWER-SAVING MODE

133/163uPSD3212A, uPSD3212C, uPSD3212CVDC AND AC PARAMETERSThis section summarizes the operating and mea-surement conditions, and the DC and AC charac

Página 40 - I/O PORTS (MCU MODULE)

uPSD3212A, uPSD3212C, uPSD3212CV134/163Figure 70. Switching Waveforms – KeyWAVEFORMSINPUTS OUTPUTSSTEADY INPUTMAY CHANGE FROMHI TO LOMAY CHANGE FROM

Página 41

135/163uPSD3212A, uPSD3212C, uPSD3212CVTable 113. Major ParametersParameters/Conditions/Comments5V TestConditions5.0V Value3.3V TestConditions3.3V Val

Página 42 - PORT Type and Description

uPSD3212A, uPSD3212C, uPSD3212CV136/163Table 114. DC Characteristics (5V Devices)Symbol ParameterTest Condition(in addition to those in Table 109., pa

Página 43 - pull-ups

137/163uPSD3212A, uPSD3212C, uPSD3212CVNote: 1. IPD (Power-down Mode) is measured with:2. XTAL1=VSS; XTAL2=not connected; RESET=VCC; Port 0 =VCC; all

Página 44 - OSCILLATOR

uPSD3212A, uPSD3212C, uPSD3212CV138/163Table 115. DC Characteristics (3V Devices)Symbol ParameterTest Condition(in addition to those in Table 110., pa

Página 45 - SUPERVISORY

139/163uPSD3212A, uPSD3212C, uPSD3212CVNote: 1. IPD (Power-down Mode) is measured with:2. XTAL1=VSS; XTAL2=not connected; RESET=VCC; Port 0 =VCC; all

Página 46 - WATCHDOG TIMER

uPSD3212A, uPSD3212C, uPSD3212CV14/163RegistersThe 8032 has several registers; these are the Pro-gram Counter (PC), Accumulator (A), B Register(B), th

Página 47 - (about 6.291 seconds at 8Mhz)

uPSD3212A, uPSD3212C, uPSD3212CV140/163Figure 71. External Program Memory READ CycleTable 116. External Program Memory AC Characteristics (with the 5V

Página 48

141/163uPSD3212A, uPSD3212C, uPSD3212CVTable 117. External Program Memory AC Characteristics (with the 3V MCU Module)Note: 1. Conditions (in addition

Página 49

uPSD3212A, uPSD3212C, uPSD3212CV142/163Figure 72. External Data Memory READ CycleTable 118. External Clock Drive (with the 5V MCU Module)Note: 1. Cond

Página 50

143/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 73. External Data Memory WRITE CycleTable 120. External Data Memory AC Characteristics (with the 5V MCU

Página 51 - 76543210

uPSD3212A, uPSD3212C, uPSD3212CV144/163Table 121. External Data Memory AC Characteristics (with the 3V MCU Module)Note: 1. Conditions (in addition to

Página 52 - Note: ↓ = falling edge

145/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 74. Input to Output Disable / EnableTable 123. CPLD Combinatorial Timing (5V Devices)Note: 1. Fast Slew

Página 53

uPSD3212A, uPSD3212C, uPSD3212CV146/163Figure 75. Synchronous Clock Mode Timing – PLDTable 125. CPLD Macrocell Synchronous Clock Mode Timing (5V Devic

Página 54

147/163uPSD3212A, uPSD3212C, uPSD3212CVTable 126. CPLD Macrocell Synchronous Clock Mode Timing (3V Devices)Note: 1. Fast Slew Rate output available on

Página 55

uPSD3212A, uPSD3212C, uPSD3212CV148/163Table 127. CPLD Macrocell Asynchronous Clock Mode Timing (5V Devices)Table 128. CPLD Macrocell Asynchronous Clo

Página 56 - SM0 SM1 SM2 REN TB8 RB8 TI RI

149/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 78. Input Macrocell Timing (Product Term Clock)Table 129. Input Macrocell Timing (5V Devices)Note: 1. In

Página 57

15/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 9. PSW (Program Status Word) RegisterProgram MemoryThe program memory consists of two Flash mem-ory: 64KB

Página 58

uPSD3212A, uPSD3212C, uPSD3212CV150/163Table 131. Program, WRITE and Erase Times (5V Devices)Note: 1. Programmed to all zero before erase.2. The polli

Página 59

151/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 79. Peripheral I/O READ TimingTable 133. Port A Peripheral Data Mode READ Timing (5V Devices)Note: 1. An

Página 60

uPSD3212A, uPSD3212C, uPSD3212CV152/163Figure 80. Peripheral I/O WRITE TimingTable 135. Port A Peripheral Data Mode WRITE Timing (5V Devices)Note: 1.

Página 61

153/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 81. Reset (RESET) TimingTable 137. Reset (RESET) Timing (5V Devices)Note: 1. Reset (RESET) does not rese

Página 62

uPSD3212A, uPSD3212C, uPSD3212CV154/163Figure 82. ISC TimingTable 141. ISC Timing (5V Devices)Note: 1. For non-PLD Programming, Erase or in ISC By-pas

Página 63

155/163uPSD3212A, uPSD3212C, uPSD3212CVTable 142. ISC Timing (3V Devices)Note: 1. For non-PLD Programming, Erase or in ISC By-pass Mode.2. For Program

Página 64

uPSD3212A, uPSD3212C, uPSD3212CV156/163Figure 85. External Clock CycleFigure 86. Recommended Oscillator CircuitsNote: C1, C2 = 30pF ± 10pF for crystal

Página 65

157/163uPSD3212A, uPSD3212C, uPSD3212CVPACKAGE MECHANICAL INFORMATIONFigure 89. TQFP52 – 52-lead Plastic Thin, Quad, Flat Package OutlineNote: Drawing

Página 66 - Table 48. ADC Clock Input

uPSD3212A, uPSD3212C, uPSD3212CV158/163Table 144. TQFP52 – 52-lead Plastic Thin, Quad, Flat Package Mechanical DataSymbmm inchesTyp Min Max Typ Min Ma

Página 67 - PULSE WIDTH MODULATION (PWM)

159/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 90. TQFP80 – 80-lead Plastic Thin, Quad, Flat Package OutlineNote: Drawing is not to scale.QFP-ANdE1CPbe

Página 68

uPSD3212A, uPSD3212C, uPSD3212CV16/163SFRThe SFRs can only be addressed directly in theaddress range from 80h to FFh. Table15., page 28 gives an overv

Página 69

uPSD3212A, uPSD3212C, uPSD3212CV160/163Table 145. TQFP80 – 80-lead Plastic Thin, Quad, Flat Package Mechanical DataSymbmm inchesTyp Min Max Typ Min Ma

Página 70

161/163uPSD3212A, uPSD3212C, uPSD3212CVPART NUMBERINGTable 146. Ordering Information SchemeFor other options, or for more information on any aspect of

Página 71

uPSD3212A, uPSD3212C, uPSD3212CV162/163REVISION HISTORYTable 147. Document Revision HistoryDate Version Revision Details18-Dec-2002 1.0 First Issue04-

Página 72 - C INTERFACE

163/163uPSD3212A, uPSD3212C, uPSD3212CVInformation furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsib

Página 73

17/163uPSD3212A, uPSD3212C, uPSD3212CV(3) Register addressing. The register banks,containing registers R0 through R7, can be ac-cessed by certain inst

Página 74

uPSD3212A, uPSD3212C, uPSD3212CV18/163Table 4. Arithmetic InstructionsLogical InstructionsTable 5., page 19 shows list of uPSD321x Devic-es logical in

Página 75

19/163uPSD3212A, uPSD3212C, uPSD3212CVTable 5. Logical InstructionsMnemonic OperationAddressing ModesDir. Ind. Reg. ImmANL A,<byte> A = A .AND.

Página 76 - USB HARDWARE

uPSD3212A, uPSD3212C, uPSD3212CV2/163Table 1. Device SummaryPart NumberMax Clock(MHz)1st Flash(bytes)2nd Flash(bytes)SRAM(bytes)GPIO USB8032 BusVCC(V)

Página 77

uPSD3212A, uPSD3212C, uPSD3212CV20/163Data TransfersInternal RAM. Table 6 shows the menu of in-structions that are available for moving dataaround wi

Página 78

21/163uPSD3212A, uPSD3212C, uPSD3212CVFirst, pointers R1 and R0 are set up to point to thetwo bytes containing the last four BCD digits. Thena loop is

Página 79

uPSD3212A, uPSD3212C, uPSD3212CV22/163External RAM. Table 10 shows a list of the DataTransfer instructions that access external DataMemory. Only indir

Página 80

23/163uPSD3212A, uPSD3212C, uPSD3212CVBoolean InstructionsThe uPSD321x Devices contain a complete Bool-ean (single-bit) processor. One page of the int

Página 81

uPSD3212A, uPSD3212C, uPSD3212CV24/163Jump InstructionsTable 13 shows the list of unconditional jump in-structions. The table lists a single “JMP add”

Página 82

25/163uPSD3212A, uPSD3212C, uPSD3212CVTable 14 shows the list of conditional jumps avail-able to the uPSD321x Devices user. All of thesejumps specify

Página 83

uPSD3212A, uPSD3212C, uPSD3212CV26/163Figure 14. State Sequence in uPSD321x DevicesOsc.(XTAL2)Read opcodeRead nextopcodeRead nextopcode anddiscardRead

Página 84

27/163uPSD3212A, uPSD3212C, uPSD3212CVuPSD3200 HARDWARE DESCRIPTIONThe uPSD321x Devices has a modular architec-ture with two main functional modules:

Página 85

uPSD3212A, uPSD3212C, uPSD3212CV28/163MCU MODULE DISCRIPTION This section provides a detail description of theMCU Module system functions and Peripher

Página 86

29/163uPSD3212A, uPSD3212C, uPSD3212CVTable 16. List of all SFRSFR AddrReg NameBit Register NameReset ValueComments7654321080 P0 FF Port 0 81 SP 07 St

Página 87

3/163uPSD3212A, uPSD3212C, uPSD3212CVTABLE OF CONTENTSFEATURES SUMMARY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 88 - PSD MODULE

uPSD3212A, uPSD3212C, uPSD3212CV30/163A4 PWM2 00PWM2 Output Duty CycleA5 PWM3 00PWM3 Output Duty CycleA6 WDRST 00Watch Dog ResetA7 IEA ES2EI2C00Interr

Página 89

31/163uPSD3212A, uPSD3212C, uPSD3212CVD2 S2SETUP 00I2C (S2) Setup D4D5D6D7D8D9DADBDC S2CON CR2 EN1 STA STO ADDR AA CR1 CR0 00I2C Bus Control RegDD S2S

Página 90

uPSD3212A, uPSD3212C, uPSD3212CV32/163Table 17. PSD Module Register Address OffsetCSIOPAddr OffsetRegister Name Bit Register NameReset ValueComments76

Página 91 - DEVELOPMENT SYSTEM

33/163uPSD3212A, uPSD3212C, uPSD3212CVNote: (Register address = csiop address + address offset; where csiop address is defined by user in PSDsoft)* in

Página 92

uPSD3212A, uPSD3212C, uPSD3212CV34/163INTERRUPT SYSTEMThere are interrupt requests from 10 sources asfollows (see Figure 16., page 35). INT0 External

Página 93 - MEMORY BLOCKS

35/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 16. Interrupt SystemAI07427bINT0 USART Timer0 I2C INT1 Timer1 2nd USART Timer2 High Low Interrupt Polli

Página 94 - ■ RESET to READ Mode

uPSD3212A, uPSD3212C, uPSD3212CV36/163USART Interrupt– The USART Interrupt is generated by RI (Receive Interrupt) OR TI (Transmit Interrupt).– When th

Página 95 - Table 82. Instructions

37/163uPSD3212A, uPSD3212C, uPSD3212CVTable 20. Description of the IE Bits.Table 21. Description of the IEA BitsTable 22. Description of the IP BitsBi

Página 96

uPSD3212A, uPSD3212C, uPSD3212CV38/163Table 23. Description of the IPA BitsHow Interrupts are HandledThe interrupt flags are sampled at S5P2 of everym

Página 97

39/163uPSD3212A, uPSD3212C, uPSD3212CVPOWER-SAVING MODETwo software selectable modes of reduced powerconsumption are implemented (see Table 25).Idle M

Página 98 - AI01369B

uPSD3212A, uPSD3212C, uPSD3212CV4/163Idle Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 99 - AI01370B

uPSD3212A, uPSD3212C, uPSD3212CV40/163Table 27. Description of the PCON BitsNote: 1. See the T2CON register for details of the flag descriptionI/O POR

Página 100

41/163uPSD3212A, uPSD3212C, uPSD3212CVThe following SFR registers (Tables 29, 30, and31) are used to control the mapping of alternatefunctions onto th

Página 101

uPSD3212A, uPSD3212C, uPSD3212CV42/163PORT Type and DescriptionFigure 17. PORT Type and Description (Part 1)AI07438Symbol Circuit Description In / O

Página 102 - AI02867D

43/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 18. PORT Type and Description (Part 2)AI07428bSymbol Circuit Function In/ Out PORT1 <3:0>, PORT3,

Página 103

uPSD3212A, uPSD3212C, uPSD3212CV44/163OSCILLATORThe oscillator circuit of the uPSD321x Devices is asingle stage inverting amplifier in a Pierce oscill

Página 104

45/163uPSD3212A, uPSD3212C, uPSD3212CVSUPERVISORYThere are four ways to invoke a reset and initializethe uPSD321x Devices. Via the external RESET pi

Página 105

uPSD3212A, uPSD3212C, uPSD3212CV46/163WATCHDOG TIMERThe hardware Watchdog Timer (WDT) resets theuPSD321x Devices when it overflows. The WDT isintended

Página 106

47/163uPSD3212A, uPSD3212C, uPSD3212CVWatchdog reset pulse width depends on the clockfrequency. The reset period is TfOSC x 12 x 222.The RESET pulse w

Página 107 - Figure 54. PLD Diagram

uPSD3212A, uPSD3212C, uPSD3212CV48/163TIMER/COUNTERS (TIMER 0, TIMER 1 AND TIMER 2)The uPSD321x Devices has three 16-bit Timer/Counter registers: Time

Página 108 - 2. Inputs from the MCU module

49/163uPSD3212A, uPSD3212C, uPSD3212CVTable 39. Description of the TMOD BitsBit Symbol Timer Function7GateTimer 1Gating control when set. Timer/Counte

Página 109 - AND ARRAY

5/163uPSD3212A, uPSD3212C, uPSD3212CVIn-System Programming (ISP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 110

uPSD3212A, uPSD3212C, uPSD3212CV50/163Mode 0. Putting either Timer into Mode 0 makesit look like an 8048 Timer, which is an 8-bit Counterwith a divide

Página 111

51/163uPSD3212A, uPSD3212C, uPSD3212CVMode 2. Mode 2 configures the Timer register asan 8-bit Counter (TL1) with automatic reload, asshown in Figure 2

Página 112 - PLD INPUT BUS

uPSD3212A, uPSD3212C, uPSD3212CV52/163Table 41. Timer/Counter 2 Operating ModesNote: ↓ = falling edgeTable 42. Description of the T2CON BitsNote: 1. T

Página 113 - I/O PORTS (PSD MODULE)

53/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 24. Timer 2 in Capture ModeFigure 25. Timer 2 in Auto-Reload ModeAI06625fOSCTF2CaptureTR2T2 pinControlTL2

Página 114

uPSD3212A, uPSD3212C, uPSD3212CV54/163Mode 3. Timer 1 in Mode 3 simply holds its count.The effect is the same as setting TR1 = 0.Timer 0 in Mode 3 est

Página 115

55/163uPSD3212A, uPSD3212C, uPSD3212CVSTANDARD SERIAL INTERFACE (UART)The uPSD321x Devices provides two standard8032 UART serial ports. The first port

Página 116 - from the

uPSD3212A, uPSD3212C, uPSD3212CV56/163Serial Port Control RegisterThe serial port control and status register is theSpecial Function Register SCON (SC

Página 117 - Note: 1. NA = Not Applicable

57/163uPSD3212A, uPSD3212C, uPSD3212CVTable 44. Description of the SCON BitsBit Symbol Function7 SM0 (SM1,SM0)=(0,0): Shift Register. Baud rate = fOSC

Página 118

uPSD3212A, uPSD3212C, uPSD3212CV58/163Baud Rates. The baud rate in Mode 0 is fixed:Mode 0 Baud Rate = fOSC / 12The baud rate in Mode 2 depends on the

Página 119

59/163uPSD3212A, uPSD3212C, uPSD3212CVTable 45. Timer 1-Generated Commonly Used Baud RatesMore About Mode 0. Serial data enters and exitsthrough RxD.

Página 120

uPSD3212A, uPSD3212C, uPSD3212CV6/163PSD Chip Select Input (CSI, PD2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 121

uPSD3212A, uPSD3212C, uPSD3212CV60/163Figure 28. Serial Port Mode 0, WaveformsMore About Mode 1. Ten bits are transmitted(through TxD), or received (t

Página 122 - POWER MANAGEMENT

61/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 29. Serial Port Mode 1, Block DiagramFigure 30. Serial Port Mode 1, WaveformsAI06826Zero DetectorInternal

Página 123 - OPTIONAL

uPSD3212A, uPSD3212C, uPSD3212CV62/163More About Modes 2 and 3. Eleven bits aretransmitted (through TxD), or received (throughRxD): a Start Bit (0), 8

Página 124

63/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 31. Serial Port Mode 2, Block DiagramFigure 32. Serial Port Mode 2, WaveformsAI06844Zero DetectorInternal

Página 125

uPSD3212A, uPSD3212C, uPSD3212CV64/163Figure 33. Serial Port Mode 3, Block DiagramFigure 34. Serial Port Mode 3, WaveformsAI06846Zero DetectorInternal

Página 126

65/163uPSD3212A, uPSD3212C, uPSD3212CVANALOG-TO-DIGITAL CONVERTOR (ADC)The analog to digital (A/D) converter allows con-version of an analog input to

Página 127 - INITIAL DELIVERY STATE

uPSD3212A, uPSD3212C, uPSD3212CV66/163Table 46. ADC SFR Memory MapTable 47. Description of the ACON BitsTable 48. ADC Clock InputSFR AddrReg NameBit R

Página 128 - ■ MCU Module Timing

67/163uPSD3212A, uPSD3212C, uPSD3212CVPULSE WIDTH MODULATION (PWM)The PWM block has the following features: Four-channel, 8-bit PWM unit with 16-bit

Página 129 - = 5.0V (Turbo Mode Off)

uPSD3212A, uPSD3212C, uPSD3212CV68/163Figure 36. Four-Channel 8-bit PWM Block DiagramAI066478-bit PWM0-PWM3 Comparators Registers 8-bit PWM0-PWM3 Co

Página 130 - MAXIMUM RATING

69/163uPSD3212A, uPSD3212C, uPSD3212CVTable 49. PWM SFR Memory MapPWMCON Register Bit Definition:– PWML = PWM 0-3 polarity control– PWMP = PWM 4 polar

Página 131 - EMC CHARACTERISTICS

7/163uPSD3212A, uPSD3212C, uPSD3212CVSUMMARY DESCRIPTIONThe uPSD321x Series combines a fast 8051-based microcontroller with a flexible memorystructure

Página 132 - (International standards)

uPSD3212A, uPSD3212C, uPSD3212CV70/163Programmable Period 8-bit PWMThe PWM 4 channel can be programmed to pro-vide a PWM output with variable pulse wi

Página 133 - DC AND AC PARAMETERS

71/163uPSD3212A, uPSD3212C, uPSD3212CVPWM 4 Channel OperationThe 16-bit Prescaler1 divides the input clock(fOSC/2) to the desired frequency, the resul

Página 134

uPSD3212A, uPSD3212C, uPSD3212CV72/163I2C INTERFACEThe serial port supports the twin line I2C-bus, con-sisting of a data line (SDA1), and a clock line

Página 135 - Table 113. Major Parameters

73/163uPSD3212A, uPSD3212C, uPSD3212CVTable 51. Description of the S2CON BitsTable 52. Selection of the Serial Clock Frequency SCL in Master ModeBit S

Página 136

uPSD3212A, uPSD3212C, uPSD3212CV74/163Serial Status Register (S2STA)S2STA is a “Read-only” register. The contents ofthis register may be used as a vec

Página 137

75/163uPSD3212A, uPSD3212C, uPSD3212CVAddress Register (S2ADR)This 8-bit register may be loaded with the 7-bitslave address to which the controller wi

Página 138

uPSD3212A, uPSD3212C, uPSD3212CV76/163USB HARDWAREThe characteristics of USB hardware are as fol-lows: Complies with the Universal Serial Bus specifi

Página 139

77/163uPSD3212A, uPSD3212C, uPSD3212CVTable 62. USB Interrupt Enable Register (UIEN: 0E9h)Table 63. Description of the UIEN Bits76543210SUSPNDI RSTE R

Página 140

uPSD3212A, uPSD3212C, uPSD3212CV78/163Table 64. USB Interrupt Status Register (UISTA: 0E8h)Table 65. Description of the UISTA Bits76543210SUSPND — RST

Página 141

79/163uPSD3212A, uPSD3212C, uPSD3212CVTable 66. USB Endpoint0 Transmit Control Register (UCON0: 0EAh)Table 67. Description of the UCON0 Bits76543210TS

Página 142 - RI or DPL

uPSD3212A, uPSD3212C, uPSD3212CV8/163Figure 3. TQFP52 ConnectionsNote: 1. Pull-up resistor required on pin 5 (2kΩ for 3V devices, 7.5kΩ for 5V devices

Página 143

uPSD3212A, uPSD3212C, uPSD3212CV80/163Table 68. USB Endpoint1 (and 2) Transmit Control Register (UCON1: 0EBh)Table 69. Description of the UCON1 Bits76

Página 144 - Error ±2 l.s.b

81/163uPSD3212A, uPSD3212C, uPSD3212CVTable 70. USB Control Register (UCON2: 0ECh)Table 71. Description of the UCON2 BitsTable 72. USB Endpoint0 Statu

Página 145 - ENABLE/DISABLE

uPSD3212A, uPSD3212C, uPSD3212CV82/163The USCL 8-bit Prescaler Register for USB is atE1h. The USCL should be loaded with a value thatresults in a cloc

Página 146 - 2. CLKIN (PD1) t

83/163uPSD3212A, uPSD3212C, uPSD3212CVTransceiverUSB Physical Layer Characteristics. The fol-lowing section describes the uPSD321x Devicescompliance t

Página 147

uPSD3212A, uPSD3212C, uPSD3212CV84/163Table 78. Transceiver DC CharacteristicsNote: 1. VCC = 5V ± 10%; VSS = 0V; TA = 0 to 70°C.2. Level guaranteed fo

Página 148

85/163uPSD3212A, uPSD3212C, uPSD3212CVReceiver CharacteristicsThe uPSD321x Devices has a differential input re-ceiver which is able to accept the USB

Página 149

uPSD3212A, uPSD3212C, uPSD3212CV86/163External USB Pull-Up ResistorThe USB system specifies a pull-up resistor on theD- pin for low-speed peripherals.

Página 150

87/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 44. Differential to EOP Transition Skew and EOP WidthFigure 45. Differential Data JitterAI06633Receiver E

Página 151

uPSD3212A, uPSD3212C, uPSD3212CV88/163PSD MODULE The PSD Module provides configurable Program and Data memories to the 8032 CPU core (MCU). In additi

Página 152

89/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 46. PSD MODULE Block DiagramBUSInterfaceWR_, RD_,PSEN_, ALE,RESET_,A0-A15D0 – D7CLKIN(PD1)CLKINCLKINPLDIN

Página 153

9/163uPSD3212A, uPSD3212C, uPSD3212CVFigure 4. TQFP80 ConnectionsNote: 1. Pull-up resistor required on pin 8 (2kΩ for 3V devices, 7.5kΩ for 5V devices

Página 154 - ISC OUTPUTS/TDO

uPSD3212A, uPSD3212C, uPSD3212CV90/163In-System Programming (ISP)Using the JTAG signals on Port C, the entire PSDMODULE device can be programmed or er

Página 155

91/163uPSD3212A, uPSD3212C, uPSD3212CVDEVELOPMENT SYSTEMThe uPSD3200 is supported by PSDsoft, a Win-dows-based software development tool (Win-dows-95,

Página 156 - AI03104b

uPSD3212A, uPSD3212C, uPSD3212CV92/163PSD MODULE REGISTER DESCRIPTION AND ADDRESS OFFSETTable 81 shows the offset addresses to the PSDMODULE registers

Página 157

93/163uPSD3212A, uPSD3212C, uPSD3212CVPSD MODULE DETAILED OPERATIONAs shown in Figure 15., page 27, the PSD MOD-ULE consists of five major types of fu

Página 158

uPSD3212A, uPSD3212C, uPSD3212CV94/163InstructionsAn instruction consists of a sequence of specificoperations. Each received byte is sequentially de-c

Página 159

95/163uPSD3212A, uPSD3212C, uPSD3212CVTable 82. InstructionsNote: 1. All bus cycles are WRITE bus cycles, except the ones with the “Read” label2. All

Página 160

uPSD3212A, uPSD3212C, uPSD3212CV96/163Power-down Instruction and Power-up ModePower-up Mode. The PSD MODULE internallogic is reset upon Power-up to th

Página 161 - PART NUMBERING

97/163uPSD3212A, uPSD3212C, uPSD3212CVToggle Flag (DQ6). The Flash memory offers an-other way for determining when the Program cycleis completed. Duri

Página 162 - REVISION HISTORY

uPSD3212A, uPSD3212C, uPSD3212CV98/163Programming Flash MemoryFlash memory must be erased prior to being pro-grammed. A byte of Flash memory is erased

Página 163

99/163uPSD3212A, uPSD3212C, uPSD3212CVData Toggle. Checking the Toggle Flag Bit(DQ6) is a method of determining whether a Pro-gram or Erase cycle is i

Modelos relacionados UPSD3212CV | UPSD3212A |

Comentários a estes Manuais

Sem comentários