Benchmark ADC16 Datenblatt

Stöbern Sie online oder laden Sie Datenblatt nach Videokonverter Benchmark ADC16 herunter. Benchmark ADC16 Datasheet Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 153
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Rev. 2.5
April 2003 1/153
ST72334J/N,
ST72314J/N, ST72124J
8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY,
ADC, 16-BIT TIMERS, SPI, SCI INTERFACES
Memories
8K or 16K Program memory (ROM or single
voltage FLASH) with read-out protection and
in-situ programming (remote ISP)
256 bytes EEPROM Data memory (with read-
out protection option in ROM devices)
384 or 512 bytes RAM
Clock, Reset and Supply Management
Enhanced reset system
Enhanced low voltage supply supervisor with
3 programmable levels
Clock sources: crystal/ceramic resonator os-
cillators or RC oscillators, external clock,
backup Clock Security System
4 Power Saving Modes: Halt, Active-Halt,
Wait and Slow
Beep and clock-out capabilities
Interrupt Management
10 interrupt vectors plus TRAP and RESET
15 external interrupt lines (4 vectors)
44 or 32 I/O Ports
44 or 32 multifunctional bidirectional I/O lines:
21 or 19 alternate function lines
12 or 8 high sink outputs
4 Timers
Configurable watchdog timer
Realtime base
– Two 16-bit timers with: 2 input captures (only
one on timer A), 2 output compares (only one
on timer A), External clock input on timer A,
PWM and Pulse generator modes
2 Communications Interfaces
SPI synchronous serial interface
SCI asynchronous serial interface (LIN com-
patible)
1 Analog Peripheral
8-bit ADC with 8 input channels (6 only on
ST72334Jx, not available on ST72124J2)
Instruction Set
8-bit data manipulation
63 basic instructions
17 main addressing modes
8 x 8 unsigned multiply instruction
True bit manipulation
Development Tools
Full hardware/software development package
Device Summary
TQFP44
10 x 10
PSDIP42
PSDIP56
TQFP64
14 x 14
Features ST72124J2 ST72314J2 ST72314J4 ST72314N2 ST72314N4 ST72334J2 ST72334J4 ST72334N2 ST72334N4
Program memory - bytes 8K 8K 16K 8K 16K 8K 16K 8K 16K
RAM (stack) - bytes 384 (256) 384 (256) 512 (256) 384 (256) 512 (256) 384 (256) 512 (256) 384 (256) 512 (256)
EEPROM - bytes - - -
256 256 256 256
Peripherals
Watchdog, Two 16-bit Timers, SPI, SCI
-ADC
Operating Supply 3.2V to 5.5V
CPU Frequency Up to 8 MHz (with up to 16 MHz oscillator)
Operating Temperature -40°C to +85°C (-40°C to +105/125°C optional)
Packages TQFP44 / SDIP42 TQFP64 / SDIP56 TQFP44 / SDIP42 TQFP64 / SDIP56
1
Seitenansicht 0
1 2 3 4 5 6 ... 152 153

Inhaltsverzeichnis

Seite 1 - ST72314J/N, ST72124J

Rev. 2.5April 2003 1/153ST72334J/N,ST72314J/N, ST72124J8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY,ADC, 16-BIT TIMERS, SPI, SCI INTERFACES Memories– 8

Seite 2 - Table of Contents

ST72334J/N, ST72314J/N, ST72124J10/153PIN DESCRIPTION (Cont’d)For external pin connection guidelines, refer to Section 16 "ELECTRICAL CHARACTERIS

Seite 3

ST72334J/N, ST72314J/N, ST72124J100/1538-BIT A/D CONVERTER (ADC) (Cont’d)Table 19. ADC Register Map and Reset Values Address(Hex.)Register Label765432

Seite 4

ST72334J/N, ST72314J/N, ST72124J101/15315 INSTRUCTION SET 15.1 ST7 ADDRESSING MODESThe ST7 Core features 17 different addressingmodes which can be cla

Seite 5

ST72334J/N, ST72314J/N, ST72124J102/153ST7 ADDRESSING MODES (Cont’d)15.1.1 InherentAll Inherent instructions consist of a single byte.The opcode fully

Seite 6 - 2 INTRODUCTION

ST72334J/N, ST72314J/N, ST72124J103/153ST7 ADDRESSING MODES (Cont’d)15.1.6 Indirect Indexed (Short, Long)This is a combination of indirect and short i

Seite 7 - 3 PIN DESCRIPTION

ST72334J/N, ST72314J/N, ST72124J104/15315.2 INSTRUCTION GROUPSThe ST7 family devices use an Instruction Setconsisting of 63 instructions. The instruct

Seite 8 - (N versions)

ST72334J/N, ST72314J/N, ST72124J105/153INSTRUCTION GROUPS (Cont’d)Mnemo Description Function/Example Dst Src H I N Z CADC Add with Carry A = A + M + C

Seite 9 - (J versions)

ST72334J/N, ST72314J/N, ST72124J106/153INSTRUCTION GROUPS (Cont’d)Mnemo Description Function/Example Dst Src H I N Z CJRULE Jump if (C + Z = 1) Unsign

Seite 10

ST72334J/N, ST72314J/N, ST72124J107/15316 ELECTRICAL CHARACTERISTICS16.1 PARAMETER CONDITIONSUnless otherwise specified, all voltages are re-ferred to

Seite 11

ST72334J/N, ST72314J/N, ST72124J108/15316.2 ABSOLUTE MAXIMUM RATINGSStresses above those listed as “absolute maxi-mum ratings” may cause permanent dam

Seite 12

ST72334J/N, ST72314J/N, ST72124J109/153ABSOLUTE MAXIMUM RATINGS (Cont’d)16.2.3 Thermal Characteristics Symbol Ratings Value UnitTSTGStorage temperat

Seite 13 - 4 REGISTER & MEMORY MAP

ST72334J/N, ST72314J/N, ST72124J11/15324 VSS_3S Digital Ground Voltage25 15 15 10 PF0/MCO I/O CTX ei1 X X Port F0 Main clock output (fOSC/2)26 16 16 1

Seite 14

ST72334J/N, ST72314J/N, ST72124J110/15316.3 OPERATING CONDITIONS16.3.1 General Operating Conditions Figure 55. fOSC Maximum Operating Frequency Versus

Seite 15

ST72334J/N, ST72314J/N, ST72124J111/153OPERATING CONDITIONS (Cont’d)16.3.2 Operating Conditions with Low Voltage Detector (LVD) Subject to general ope

Seite 16

ST72334J/N, ST72314J/N, ST72124J112/153FUNCTIONAL OPERATING CONDITIONS (Cont’d)Figure 60. High LVD Threshold Versus VDD and fOSC for ROM devices 2)Fig

Seite 17 - 5 FLASH PROGRAM MEMORY

ST72334J/N, ST72314J/N, ST72124J113/15316.4 SUPPLY CURRENT CHARACTERISTICSThe following current consumption specified forthe ST7 functional operating

Seite 18 - 6 DATA EEPROM

ST72334J/N, ST72314J/N, ST72124J114/153SUPPLY CURRENT CHARACTERISTICS (Cont’d)16.4.2 WAIT and SLOW WAIT Modes Figure 65. Typical IDD in WAIT vs. fCPUF

Seite 19

ST72334J/N, ST72314J/N, ST72124J115/153SUPPLY CURRENT CHARACTERISTICS (Cont’d)16.4.3 HALT and ACTIVE-HALT Modes 16.4.4 Supply and Clock ManagersThe pr

Seite 20

ST72334J/N, ST72314J/N, ST72124J116/15316.5 CLOCK AND TIMING CHARACTERISTICSSubject to general operating conditions for VDD, fOSC, and TA.16.5.1 Gener

Seite 21 - Latch Access Transfer

ST72334J/N, ST72314J/N, ST72124J117/153CLOCK AND TIMING CHARACTERISTICS (Cont’d)16.5.3 Crystal and Ceramic Resonator OscillatorsThe ST7 internal clock

Seite 22

ST72334J/N, ST72314J/N, ST72124J118/153CLOCK AND TIMING CHARACTERISTICS (Cont’d)16.5.3.2 Typical Ceramic ResonatorsNote:tSU(OSC) is the typical oscill

Seite 23 - 8 CENTRAL PROCESSING UNIT

ST72334J/N, ST72314J/N, ST72124J119/153CLOCK AND TIMING CHARACTERISTICS (Cont’d)Table 22. Typical Ceramic Resonators Table 23. Resonator Frequency Cor

Seite 24 - Carry/borrow

ST72334J/N, ST72314J/N, ST72124J12/153Notes:1. In the interrupt input column, “eix” defines the associated external interrupt vector. If the weak pull

Seite 25 - 00000001

ST72334J/N, ST72314J/N, ST72124J120/153CLOCK CHARACTERISTICS (Cont’d)16.5.4 RC OscillatorsThe ST7 internal clock can be supplied with an RCoscillator.

Seite 26 - CONTROLLER

ST72334J/N, ST72314J/N, ST72124J121/153CLOCK CHARACTERISTICS (Cont’d)16.5.5 Clock Security System (CSS) Figure 73. Typical Safe Oscillator Frequencie

Seite 27

ST72334J/N, ST72314J/N, ST72124J122/15316.6 MEMORY CHARACTERISTICS16.6.1 RAM and Hardware Registers 16.6.2 EEPROM Data Memory 16.6.3 FLASH Program M

Seite 28

ST72334J/N, ST72314J/N, ST72124J123/15316.7 EMC CHARACTERISTICSSusceptibility tests are performed on a sample ba-sis during product characterization.1

Seite 29

ST72334J/N, ST72314J/N, ST72124J124/153EMC CHARACTERISTICS (Cont’d)16.7.2 Absolute Electrical SensitivityBased on three different tests (ESD, LU and D

Seite 30 - ■ an external RC oscillator

ST72334J/N, ST72314J/N, ST72124J125/153EMC CHARACTERISTICS (Cont’d)16.7.2.2 Static and Dynamic Latch-Up LU: 3 complementary static tests are required

Seite 31

ST72334J/N, ST72314J/N, ST72124J126/153EMC CHARACTERISTICS (Cont’d)16.7.3 ESD Pin Protection StrategyTo protect an integrated circuit against Electro-

Seite 32 - Watchdog reset flag

ST72334J/N, ST72314J/N, ST72124J127/153EMC CHARACTERISTICS (Cont’d)True Open Drain Pin ProtectionThe centralized protection (4) is not involved in the

Seite 33 - 10 INTERRUPTS

ST72334J/N, ST72314J/N, ST72124J128/15316.8 I/O PORT PIN CHARACTERISTICS16.8.1 General CharacteristicsSubject to general operating conditions for VDD,

Seite 34 - Table 5. Interrupt mapping

ST72334J/N, ST72314J/N, ST72124J129/153I/O PORT PIN CHARACTERISTICS (Cont’d)16.8.2 Output Driving Current Subject to general operating conditions for

Seite 35 - 11 POWER SAVING MODES

ST72334J/N, ST72314J/N, ST72124J13/1534 REGISTER & MEMORY MAPAs shown in the Figure 5, the MCU is capable ofaddressing 64K bytes of memories and I

Seite 36

ST72334J/N, ST72314J/N, ST72124J130/153I/O PORT PIN CHARACTERISTICS (Cont’d)Figure 87. Typical VOL vs. VDD (standard I/Os)Figure 88. Typical VOL vs. V

Seite 37

ST72334J/N, ST72314J/N, ST72124J131/15316.9 CONTROL PIN CHARACTERISTICS16.9.1 Asynchronous RESET PinSubject to general operating conditions for VDD, f

Seite 38

ST72334J/N, ST72314J/N, ST72124J132/153CONTROL PIN CHARACTERISTICS (Cont’d)Figure 91. Typical ION vs. VDD with VIN=VSSFigure 92. Typical VOL at VDD=5V

Seite 39 - 12 I/O PORTS

ST72334J/N, ST72314J/N, ST72124J133/153CONTROL PIN CHARACTERISTICS (Cont’d)16.9.2 ISPSEL PinSubject to general operating conditions for VDD, fOSC, and

Seite 40

ST72334J/N, ST72314J/N, ST72124J134/15316.10 TIMER PERIPHERAL CHARACTERISTICSSubject to general operating conditions for VDD,fOSC, and TA unless other

Seite 41 - PUSH-PULL OUTPUT

ST72334J/N, ST72314J/N, ST72124J135/15316.11 COMMUNICATION INTERFACE CHARACTERISTICS16.11.1 SPI - Serial Peripheral InterfaceSubject to general operat

Seite 42

ST72334J/N, ST72314J/N, ST72124J136/153COMMUNICATION INTERFACE CHARACTERISTICS (Cont’d)Figure 96. SPI Slave Timing Diagram with CPHA=11)Figure 97. SPI

Seite 43

ST72334J/N, ST72314J/N, ST72124J137/153COMMUNICATIONS INTERFACE CHARACTERISTICS (Cont’d)16.11.2 SCI - Serial Communications InterfaceSubject to genera

Seite 44 - Option register 8 bits

ST72334J/N, ST72314J/N, ST72124J138/15316.12 8-BIT ADC CHARACTERISTICSSubject to general operating conditions for VDD, fOSC, and TA unless otherwise s

Seite 45 - I/O PORTS (Cont’d)

ST72334J/N, ST72314J/N, ST72124J139/1538-BIT ADC CHARACTERISTICS (Cont’d)ADC Accuracy Figure 99. ADC Accuracy CharacteristicsNotes:1. ADC Accuracy vs.

Seite 46 - 13 MISCELLANEOUS REGISTERS

ST72334J/N, ST72314J/N, ST72124J14/153REGISTER & MEMORY MAP (Cont’d)Table 2. Hardware Register Map Address BlockRegister LabelRegister NameReset S

Seite 47 - Slow mode select

ST72334J/N, ST72314J/N, ST72124J140/15317 PACKAGE CHARACTERISTICS17.1 PACKAGE MECHANICAL DATA Figure 100. 64-Pin Thin Quad Flat PackageFigure 101. 56-

Seite 48 - SS internal mode

ST72334J/N, ST72314J/N, ST72124J141/153PACKAGE MECHANICAL DATA (Cont’d)Figure 102. 44-Pin Thin Quad Flat PackageFigure 103. 42-Pin Plastic Dual In-Lin

Seite 49 - 14 ON-CHIP PERIPHERALS

ST72334J/N, ST72314J/N, ST72124J142/153and PPORT is the port power dissipation determined by the user.2. The average chip-junction temperature can be

Seite 50 - Watchdog flag

ST72334J/N, ST72314J/N, ST72124J143/15317.2 SOLDERING AND GLUEABILITY INFORMATIONRecommended soldering information given onlyas design guidelines in F

Seite 51 - WATCHDOG TIMER (Cont’d)

ST72334J/N, ST72314J/N, ST72124J144/15318 DEVICE CONFIGURATION AND ORDERING INFORMATIONEach device is available for production in user pro-grammable v

Seite 52

ST72334J/N, ST72314J/N, ST72124J145/153DEVICE CONFIGURATION AND ORDERING INFORMATION (Cont’d)18.2 TRANSFER OF CUSTOMER CODECustomer code is made up of

Seite 53 - Oscillator interrupt flag

ST72334J/N, ST72314J/N, ST72124J146/153MICROCONTROLLER OPTION LISTCustomer: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 54 - clock speed) with the choice

ST72334J/N, ST72314J/N, ST72124J147/15318.3 DEVELOPMENT TOOLSSTMicroelectronics offers a range of hardwareand software development tools for the ST7 m

Seite 55 - 16-BIT TIMER (Cont’d)

ST72334J/N, ST72314J/N, ST72124J148/153DEVELOPMENT TOOLS (Cont’d)18.3.1 Suggested List Of Socket TypesTable 28. Suggested List of TQFP64 Socket Types

Seite 56 - Sequence completed

ST72334J/N, ST72314J/N, ST72124J149/15318.4 ST7 APPLICATION NOTES IDENTIFICATION DESCRIPTIONEXAMPLE DRIVERSAN 969 SCI COMMUNICATION BETWEEN ST7 AND PC

Seite 57

ST72334J/N, ST72314J/N, ST72124J15/153002Ah WATCHDOG WDGCR Watchdog Control Register 7Fh R/W002Bh CRSR Clock, Reset, Supply Control / Status Register

Seite 58 - /CC[1:0])

ST72334J/N, ST72314J/N, ST72124J150/153AN 982 USING ST7 WITH CERAMIC RESONATORAN1014 HOW TO MINIMIZE THE ST7 POWER CONSUMPTIONAN1015 SOFTWARE TECHNIQU

Seite 59 - 16-BIT FREE RUNNING

ST72334J/N, ST72314J/N, ST72124J151/15319 IMPORTANT NOTES19.1 SCI Baud rate registersCaution: The SCI baud rate register (SCIBRR)MUST NOT be written t

Seite 60

ST72334J/N, ST72314J/N, ST72124J152/15320 SUMMARY OF CHANGESDescription of the changes between the current release of the specification and the previo

Seite 61

ST72334J/N, ST72314J/N, ST72124J153/153Notes:Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no res

Seite 62

ST72334J/N, ST72314J/N, ST72124J16/153Legend: x=undefined, R/W=read/writeNotes:1. The contents of the I/O port DR registers are readable only in outpu

Seite 63

ST72334J/N, ST72314J/N, ST72124J17/1535 FLASH PROGRAM MEMORY5.1 INTRODUCTIONFLASH devices have a single voltage non-volatileFLASH memory that may be p

Seite 64 - OLVL2OLVL1

ST72334J/N, ST72314J/N, ST72124J18/1536 DATA EEPROM6.1 INTRODUCTIONThe Electrically Erasable Programmable ReadOnly Memory can be used as a non volatil

Seite 65 - Pulse Width Modulation cycle

ST72334J/N, ST72314J/N, ST72124J19/153DATA EEPROM (Cont’d)6.3 MEMORY ACCESSThe Data EEPROM memory read/write accessmodes are controlled by the LAT bit

Seite 66

Table of Contents1532/15321 PREAMBLE: ST72C334 VERSUS ST72E331 SPECIFICATION . . . . . . . . . . . . . . . . . . . . . . . . . 52 INTRODUCTION . . .

Seite 67

ST72334J/N, ST72314J/N, ST72124J20/153DATA EEPROM (Cont’d)6.4 POWER SAVING MODESWait modeThe DATA EEPROM can enter WAIT mode on ex-ecution of the WFI

Seite 68

ST72334J/N, ST72314J/N, ST72124J21/153DATA EEPROM (Cont’d)6.6 REGISTER DESCRIPTIONCONTROL/STATUS REGISTER (CSR)Read/WriteReset Value: 0000 0000 (00h)B

Seite 69 - Output Compare Flag 2

ST72334J/N, ST72314J/N, ST72124J22/1537 DATA EEPROM Register Map and Reset Values 7.1 READ-OUT PROTECTION OPTION The Data EEPROM can be optionally rea

Seite 70

ST72334J/N, ST72314J/N, ST72124J23/1538 CENTRAL PROCESSING UNIT8.1 INTRODUCTIONThis CPU has a full 8-bit architecture and containssix internal registe

Seite 71

ST72334J/N, ST72314J/N, ST72124J24/153CPU REGISTERS (Cont’d)CONDITION CODE REGISTER (CC) Read/WriteReset Value: 111x1xxxThe 8-bit Condition Code regis

Seite 72

ST72334J/N, ST72314J/N, ST72124J25/153CENTRAL PROCESSING UNIT (Cont’d)Stack Pointer (SP)Read/WriteReset Value: 01 FFhThe Stack Pointer is a 16-bit reg

Seite 73

ST72334J/N, ST72314J/N, ST72124J26/1539 SUPPLY, RESET AND CLOCK MANAGEMENTThe ST72334J/N, ST72314J/N and ST72124J mi-crocontrollers include a range of

Seite 74

ST72334J/N, ST72314J/N, ST72124J27/1539.1 LOW VOLTAGE DETECTOR (LVD)To allow the integration of power managementfeatures in the application, the Low V

Seite 75

ST72334J/N, ST72314J/N, ST72124J28/1539.2 RESET SEQUENCE MANAGER (RSM)9.2.1 IntroductionThe reset sequence manager includes three RE-SET sources as sh

Seite 76

ST72334J/N, ST72314J/N, ST72124J29/153RESET SEQUENCE MANAGER (Cont’d)9.2.2 Asynchronous External RESET pinThe RESET pin is both an input and an open-d

Seite 77 - VR02131B

Table of Contents3/153312.4 LOW POWER MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4312

Seite 78

ST72334J/N, ST72314J/N, ST72124J30/1539.3 MULTI-OSCILLATOR (MO)The main clock of the ST7 can be generated byfour different source types coming from th

Seite 79

ST72334J/N, ST72314J/N, ST72124J31/1539.4 CLOCK SECURITY SYSTEM (CSS)The Clock Security System (CSS) protects theST7 against main clock problems. To a

Seite 80

ST72334J/N, ST72314J/N, ST72124J32/1539.5 SUPPLY, RESET AND CLOCK REGISTER DESCRIPTIONRead/WriteReset Value: 000x 000x (xxh) Bit 7:5 = Reserved, alway

Seite 81

ST72334J/N, ST72314J/N, ST72124J33/15310 INTERRUPTSThe ST7 core may be interrupted by one of two dif-ferent methods: maskable hardware interrupts asli

Seite 82

ST72334J/N, ST72314J/N, ST72124J34/153INTERRUPTS (Cont’d)Figure 18. Interrupt Processing FlowchartTable 5. Interrupt mappingNote 1. Valid for HALT and

Seite 83 - Mode Fault flag

ST72334J/N, ST72314J/N, ST72124J35/15311 POWER SAVING MODES11.1 INTRODUCTIONTo give a large measure of flexibility to the applica-tion in terms of pow

Seite 84

ST72334J/N, ST72314J/N, ST72124J36/153POWER SAVING MODES (Cont’d)11.3 WAIT MODEWAIT mode places the MCU in a low power con-sumption mode by stopping t

Seite 85

ST72334J/N, ST72314J/N, ST72124J37/153POWER SAVING MODES (Cont’d)11.4 ACTIVE-HALT AND HALT MODESACTIVE-HALT and HALT modes are the two low-est power c

Seite 86

ST72334J/N, ST72314J/N, ST72124J38/153POWER SAVING MODES (Cont’d)11.4.2 HALT MODEThe HALT mode is the lowest power consumptionmode of the MCU. It is e

Seite 87

ST72334J/N, ST72314J/N, ST72124J39/15312 I/O PORTS12.1 INTRODUCTIONThe I/O ports offer different functional modes:– transfer of data through digital i

Seite 88

ST72334J/N, ST72314J/N, ST72124J4/153To obtain the most recent version of this datasheet,please check at www.st.com>products>technical literatur

Seite 89

ST72334J/N, ST72314J/N, ST72124J40/153I/O PORTS (Cont’d)Figure 26. I/O Port General Block DiagramTable 6. I/O Port Mode OptionsLegend: NI - not imple

Seite 90

ST72334J/N, ST72314J/N, ST72124J41/153I/O PORTS (Cont’d)Table 7. I/O Port Configurations Notes:1. When the I/O port is in input configuration and the

Seite 91

ST72334J/N, ST72314J/N, ST72124J42/153I/O PORTS (Cont’d)CAUTION: The alternate function must not be ac-tivated as long as the pin is configured as inp

Seite 92

ST72334J/N, ST72314J/N, ST72124J43/153I/O PORTS (Cont’d)12.4 LOW POWER MODES 12.5 INTERRUPTSThe external interrupt event generates an interruptif the

Seite 93 - TDRE TC RDRF IDLE OR NF FE

ST72334J/N, ST72314J/N, ST72124J44/153I/O PORTS (Cont’d)12.5.1 Register DescriptionDATA REGISTER (DR)Port x Data RegisterPxDR with x = A, B, C, D, E o

Seite 94 - TIE TCIE RIE ILIE TE RE RWU

ST72334J/N, ST72314J/N, ST72124J45/153I/O PORTS (Cont’d)Table 9. I/O Port Register Map and Reset ValuesNotes:1) The bits corresponding to unavailable

Seite 95 - SCI Receiver rate divisor

ST72334J/N, ST72314J/N, ST72124J46/15313 MISCELLANEOUS REGISTERSThe miscellaneous registers allow control overseveral different features such as the e

Seite 96 - 8-bit Extended Transmit Pres

ST72334J/N, ST72314J/N, ST72124J47/153MISCELLANEOUS REGISTERS (Cont’d)13.3 REGISTERS DESCRIPTIONMISCELLANEOUS REGISTER 1 (MISCR1)Read/WriteReset Value

Seite 97 - CH2 CH1CH3COCO 0 ADON 0 CH0

ST72334J/N, ST72314J/N, ST72124J48/153MISCELLANEOUS REGISTERS (Cont’d)MISCELLANEOUS REGISTER 2 (MISCR2)Read/WriteReset Value: 0000 0000 (00h)Bit 7:6 =

Seite 98 - ■ A/D conversion [duration: t

ST72334J/N, ST72314J/N, ST72124J49/15314 ON-CHIP PERIPHERALS14.1 WATCHDOG TIMER (WDG)14.1.1 IntroductionThe Watchdog timer is used to detect the occur

Seite 99 - COCO 0 ADON 0 CH3 CH2 CH1 CH0

ST72334J/N, ST72314J/N, ST72124J5/1531 PREAMBLE: ST72C334 VERSUS ST72E331 SPECIFICATIONNew Features available on the ST72C334 8 or 16K FLASH/ROM with

Seite 100

ST72334J/N, ST72314J/N, ST72124J50/153WATCHDOG TIMER (Cont’d)The application program must write in the CR reg-ister at regular intervals during normal

Seite 101 - 15 INSTRUCTION SET

ST72334J/N, ST72314J/N, ST72124J51/153WATCHDOG TIMER (Cont’d)Table 12. Watchdog Timer Register Map and Reset Values Address(Hex.)Register Label7654321

Seite 102

ST72334J/N, ST72314J/N, ST72124J52/15314.2 MAIN CLOCK CONTROLLER WITH REAL TIME CLOCK TIMER (MCC/RTC)The Main Clock Controller consists of three diffe

Seite 103 - Relative (Indirect)

ST72334J/N, ST72314J/N, ST72124J53/153MAIN CLOCK CONTROLLER WITH REAL TIME CLOCK TIMER (Cont’d)MISCELLANEOUS REGISTER 1 (MISCR1)See Section 13 on page

Seite 104

ST72334J/N, ST72314J/N, ST72124J54/15314.3 16-BIT TIMER14.3.1 IntroductionThe timer consists of a 16-bit free-running counterdriven by a programmable

Seite 105 - INSTRUCTION GROUPS (Cont’d)

ST72334J/N, ST72314J/N, ST72124J55/15316-BIT TIMER (Cont’d)Figure 31. Timer Block DiagramMCU-PERIPHERAL INTERFACECOUNTERALTERNATEOUTPUTCOMPAREREGISTER

Seite 106

ST72334J/N, ST72314J/N, ST72124J56/15316-BIT TIMER (Cont’d)16-bit Read Sequence: (from either the CounterRegister or the Alternate Counter Register).T

Seite 107 - 16 ELECTRICAL CHARACTERISTICS

ST72334J/N, ST72314J/N, ST72124J57/15316-BIT TIMER (Cont’d)Figure 32. Counter Timing Diagram, internal clock divided by 2Figure 33. Counter Timing Dia

Seite 108

ST72334J/N, ST72314J/N, ST72124J58/15316-BIT TIMER (Cont’d)14.3.3.3 Input CaptureIn this section, the index, i, may be 1 or 2 becausethere are 2 input

Seite 109

ST72334J/N, ST72314J/N, ST72124J59/15316-BIT TIMER (Cont’d)Figure 35. Input Capture Block DiagramFigure 36. Input Capture Timing DiagramICIECC0CC116-B

Seite 110

ST72334J/N, ST72314J/N, ST72124J6/1532 INTRODUCTIONThe ST72334J/N, ST72314J/N and ST72124J de-vices are members of the ST7 microcontroller fam-ily. Th

Seite 111

ST72334J/N, ST72314J/N, ST72124J60/15316-BIT TIMER (Cont’d)14.3.3.4 Output Compare In this section, the index, i, may be 1 or 2 becausethere are 2 out

Seite 112

ST72334J/N, ST72314J/N, ST72124J61/15316-BIT TIMER (Cont’d)Notes: 1. After a processor write cycle to the OCiHR reg-ister, the output compare function

Seite 113

ST72334J/N, ST72314J/N, ST72124J62/15316-BIT TIMER (Cont’d)Figure 38. Output Compare Timing Diagram, fTIMER =fCPU/2Figure 39. Output Compare Timing Di

Seite 114

ST72334J/N, ST72314J/N, ST72124J63/15316-BIT TIMER (Cont’d)14.3.3.5 One Pulse ModeOne Pulse mode enables the generation of apulse when an external eve

Seite 115

ST72334J/N, ST72314J/N, ST72124J64/15316-BIT TIMER (Cont’d)Figure 40. One Pulse Mode Timing ExampleFigure 41. Pulse Width Modulation Mode Timing Examp

Seite 116

ST72334J/N, ST72314J/N, ST72124J65/15316-BIT TIMER (Cont’d)14.3.3.6 Pulse Width Modulation ModePulse Width Modulation (PWM) mode enables thegeneration

Seite 117

ST72334J/N, ST72314J/N, ST72124J66/15316-BIT TIMER (Cont’d)14.3.4 Low Power Modes 14.3.5 Interrupts Note: The 16-bit Timer interrupt events are connec

Seite 118

ST72334J/N, ST72314J/N, ST72124J67/15316-BIT TIMER (Cont’d)14.3.7 Register DescriptionEach Timer is associated with three control andstatus registers,

Seite 119

ST72334J/N, ST72314J/N, ST72124J68/15316-BIT TIMER (Cont’d)CONTROL REGISTER 2 (CR2)Read/WriteReset Value: 0000 0000 (00h)Bit 7 = OC1E Output Compare 1

Seite 120

ST72334J/N, ST72314J/N, ST72124J69/15316-BIT TIMER (Cont’d)STATUS REGISTER (SR)Read OnlyReset Value: 0000 0000 (00h)The three least significant bits a

Seite 121

ST72334J/N, ST72314J/N, ST72124J7/1533 PIN DESCRIPTION Figure 2. 64-Pin TQFP Package Pinout (N versions)VDDAVSSAVDD_3VSS_3MCO / PF0BEEP / PF1PF2NCOCMP

Seite 122 - 16.6.3 FLASH Program Memory

ST72334J/N, ST72314J/N, ST72124J70/15316-BIT TIMER (Cont’d)OUTPUT COMPARE 2 HIGH REGISTER(OC2HR)Read/WriteReset Value: 1000 0000 (80h)This is an 8-bit

Seite 123

ST72334J/N, ST72314J/N, ST72124J71/15316-BIT TIMER (Cont’d)Table 15. 16-Bit Timer Register Map and Reset Values Address(Hex.)Register Label76543210Tim

Seite 124 - R=10k~10MΩ

ST72334J/N, ST72314J/N, ST72124J72/15314.4 SERIAL PERIPHERAL INTERFACE (SPI)14.4.1 Introduction The Serial Peripheral Interface (SPI) allows full-dupl

Seite 125

ST72334J/N, ST72314J/N, ST72124J73/153SERIAL PERIPHERAL INTERFACE (Cont’d)Figure 43. Serial Peripheral Interface Block Diagram DR Read Buffer8-Bit Shi

Seite 126

ST72334J/N, ST72314J/N, ST72124J74/153SERIAL PERIPHERAL INTERFACE (Cont’d)14.4.4 Functional DescriptionFigure 42 shows the serial peripheral interface

Seite 127

ST72334J/N, ST72314J/N, ST72124J75/153SERIAL PERIPHERAL INTERFACE (Cont’d)14.4.4.2 Slave ConfigurationIn slave configuration, the serial clock is rece

Seite 128 - UNUSED I/O PORT

ST72334J/N, ST72314J/N, ST72124J76/153SERIAL PERIPHERAL INTERFACE (Cont’d)14.4.4.3 Data Transfer FormatDuring an SPI transfer, data is simultaneouslyt

Seite 129

ST72334J/N, ST72314J/N, ST72124J77/153SERIAL PERIPHERAL INTERFACE (Cont’d)Figure 45. Data Clock Timing DiagramCPOL = 1)CPOL = 0)MISO(from master)MOSI(

Seite 130

ST72334J/N, ST72314J/N, ST72124J78/153SERIAL PERIPHERAL INTERFACE (Cont’d)14.4.4.4 Write Collision ErrorA write collision occurs when the software tri

Seite 131

ST72334J/N, ST72314J/N, ST72124J79/153SERIAL PERIPHERAL INTERFACE (Cont’d)14.4.4.5 Master Mode FaultMaster mode fault occurs when the master devicehas

Seite 132

ST72334J/N, ST72314J/N, ST72124J8/153PIN DESCRIPTION (Cont’d)Figure 3. 56-Pin SDIP Package Pinout (N versions) 525150494847464544434241161512345678910

Seite 133

ST72334J/N, ST72314J/N, ST72124J80/153SERIAL PERIPHERAL INTERFACE (Cont’d)14.4.4.7 Single Master and Multimaster ConfigurationsThere are two types of

Seite 134

ST72334J/N, ST72314J/N, ST72124J81/153SERIAL PERIPHERAL INTERFACE (Cont’d)14.4.5 Low Power Modes14.4.6 Interrupts Note: The SPI interrupt events are c

Seite 135

ST72334J/N, ST72314J/N, ST72124J82/153SERIAL PERIPHERAL INTERFACE (Cont’d)14.4.7 Register DescriptionCONTROL REGISTER (CR)Read/WriteReset Value: 0000x

Seite 136

ST72334J/N, ST72314J/N, ST72124J83/153SERIAL PERIPHERAL INTERFACE (Cont’d)STATUS REGISTER (SR)Read OnlyReset Value: 0000 0000 (00h)Bit 7 = SPIF Serial

Seite 137

ST72334J/N, ST72314J/N, ST72124J84/153SERIAL PERIPHERAL INTERFACE (Cont’d)Table 17. SPI Register Map and Reset Values Address(Hex.)Register Label76543

Seite 138

ST72334J/N, ST72314J/N, ST72124J85/15314.5 SERIAL COMMUNICATIONS INTERFACE (SCI)14.5.1 IntroductionThe Serial Communications Interface (SCI) offersa f

Seite 139 - ADC Accuracy

ST72334J/N, ST72314J/N, ST72124J86/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)Figure 48. SCI Block DiagramWAKEUPUNITRECEIVERCONTROLSRTRANSMITCONTROLTD

Seite 140 - 17 PACKAGE CHARACTERISTICS

ST72334J/N, ST72314J/N, ST72124J87/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)14.5.5 Functional DescriptionThe block diagram of the Serial Control Int

Seite 141

ST72334J/N, ST72314J/N, ST72124J88/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)14.5.5.2 TransmitterThe transmitter can send data words of either 8 or9

Seite 142

ST72334J/N, ST72314J/N, ST72124J89/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)14.5.5.3 ReceiverThe SCI can receive data words of either 8 or 9bits. Wh

Seite 143 - ■ Loctite: 3615, 3298

ST72334J/N, ST72314J/N, ST72124J9/153PIN DESCRIPTION (Cont’d)Figure 4. 44-Pin TQFP and 42-Pin SDIP Package Pinouts (J versions)MCO / PF0BEEP / PF1PF2O

Seite 144

ST72334J/N, ST72314J/N, ST72124J90/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)Figure 50. SCI Baud Rate and Extended Prescaler Block DiagramTRANSMITTER

Seite 145

ST72334J/N, ST72314J/N, ST72124J91/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)14.5.5.4 Conventional Baud Rate GenerationThe baud rate for the receiver

Seite 146 - MICROCONTROLLER OPTION LIST

ST72334J/N, ST72314J/N, ST72124J92/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)14.5.6 Low Power Modes14.5.7 InterruptsThe SCI interrupt events are conn

Seite 147

ST72334J/N, ST72314J/N, ST72124J93/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)14.5.8 Register DescriptionSTATUS REGISTER (SR)Read OnlyReset Value: 110

Seite 148 - DEVELOPMENT TOOLS (Cont’d)

ST72334J/N, ST72314J/N, ST72124J94/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)CONTROL REGISTER 1 (CR1)Read/WriteReset Value: UndefinedBit 7 = R8 Recei

Seite 149 - 18.4 ST7 APPLICATION NOTES

ST72334J/N, ST72314J/N, ST72124J95/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)DATA REGISTER (DR)Read/WriteReset Value: UndefinedContains the Received

Seite 150

ST72334J/N, ST72314J/N, ST72124J96/153SERIAL COMMUNICATIONS INTERFACE (Cont’d)EXTENDED RECEIVE PRESCALER DIVISIONREGISTER (ERPR)Read/WriteReset Value:

Seite 151 - 19 IMPORTANT NOTES

ST72334J/N, ST72314J/N, ST72124J97/15314.6 8-BIT A/D CONVERTER (ADC)14.6.1 IntroductionThe on-chip Analog to Digital Converter (ADC) pe-ripheral is a

Seite 152 - 20 SUMMARY OF CHANGES

ST72334J/N, ST72314J/N, ST72124J98/1538-BIT A/D CONVERTER (ADC) (Cont’d)14.6.3.2 Digital A/D Conversion ResultThe conversion is monotonic, meaning tha

Seite 153

ST72334J/N, ST72314J/N, ST72124J99/1538-BIT A/D CONVERTER (ADC) (Cont’d)14.6.6 Register DescriptionCONTROL/STATUS REGISTER (CSR)Read/WriteReset Value:

Kommentare zu diesen Handbüchern

Keine Kommentare