OneStart
Menu
Home
Features
Browser
Partner
Coupons
Manuals
Blog
Download
Search
Manuals database
Brands
Samsung
Microcontrollers
S3F84B8
Samsung S3F84B8 User Manual
Samsung S3F84B8 User Manual
Also see for S3F84B8:
Design guide
Table of content
Contents
Table Of Contents
Table Of Contents
Table Of Contents
Table Of Contents
Table Of Contents
Table Of Contents
Table Of Contents
Table Of Contents
Table Of Contents
Table Of Contents
Table Of Contents
OVERVIEW OF S3F84B8 MICROCONTROLLER
Key Features of S3F84B8
Block Diagram of S3F84B8
Pin Assignments
Pin Descriptions
Table 1-2 Pin Descriptions used to Read/Write the Flash ROM
Pin Circuits
Figure 1-5 Pin Circuit Type 1-1 (P1.0-1.2, P2.0-2.2, P2.4-2.7)
ADDRESS SPACES
Internal Program Memory (ROM)
Smart Option
Register Architecture
Figure 2-3 Internal Register File Organization in S3F84B8
Register Page Pointer (PP)
Register Set 1
Prime Register Space
Working Registers
Using The Register Points (RP)
Figure 2-8 Non-Contiguous 16 Byte Working Register Block
Register Addressing
Common Working Register Area (C0H–CFH)
Bit Working Register Addressing
Figure 2-13 4-Bit Working Register Addressing Example
Figure 2-15 8-Bit Working Register Addressing Example
System and User Stack
ADDRESSING MODES
Register (R) Addressing Mode
Indirect Register (IR) Addressing Mode
Indirect Register (IR) Addressing Mode (Continued)
Indirect Register (IR) Addressing Mode (Concluded)
Indexed (X) Addressing Mode
Indexed (X) Addressing Mode (Continued)
Indexed (X) Addressing Mode (Concluded)
Direct Address (DA) Mode
Direct Address (DA) Mode (Continued)
Indirect Address (IA) Mode
Relative Address (RA) Mode
Immediate Mode (IM)
CONTROL REGISTERS
ADCON — A/D Converter Control Register: FAH, BANK0
AMTDATA — Anti-mis-trigger Data Register: F6H, BANK0
BUZCON — BUZ Control Register: F7H, BANK0
CLKCON — Clock Control Register: D4H, BANK0
CMP0CON — Comparator0 Control Register: EAH, BANK0
CMP1CON — Comparator1 Control Register: EBH, BANK0
CMP2CON — Comparator1 Control Register: ECH, BANK0
CMP3CON — Comparator1 Control Register: EDH, BANK0
CMPINT — Comparator Interrupt Mode Control Register: EEH, BANK0
FLAGS — System Flags Register: D5H, BANK0
FMCON — Flash Memory Control Register: F5H, BANK1
FMSECL — Flash Memory Sector Address Register (Low Byte): F8H, BANK1
IMR — Interrupt Mask Register: DDH, BANK0
IPH — Instruction Pointer (High Byte): DAH, BANK0
IPR — Interrupt Priority Register: FFH, BANK0
IRQ — Interrupt Request Register: DCH, BANK0
OPACON — OP AMP Control Register: E0H, BANK1
P0CONH — Port 0 Control Register (High Byte): E4H, Bank0
P0CONL — Port 0 Control Register (Low Byte): E5H, BANK0
P0INT — Port 0 Interrupt Control Register: E3H, BANK0
P0PND — Port 0 Interrupt Pending Register: E6H, BANK0
P1CON — Port 1 Control Register: E7H, BANK0
P2CONH — Port 2 Control Register (High Byte): E8H, BANK0
P2CONL — Port 2 Control Register (Low Byte): E9H, BANK0
PWMCON — PWM Control Register: EFH, BANK0
PWMCCON — PWM CMP Control Register: F0H, BANK0
PWMDL — Comparator0 Output Delay Register: F5H, Bank0
RESETID — Reset Source Indicating Register: F2H, BANK1
RP0 — Register Pointer 0: D6H, BANK0
SPL — Stack Pointer: D9H, BANK0
SYM — System Mode Register: DEH, BANK0
TACON — Timer A Control Register: E1H, BANK1
TAPS — TA Pre-scalar Register: E2H, BANK1
TCCON — Timer C Control Register: E5H, BANK1
TCPS — TC Pre-scalar Register: E6H, BANK1
TDCON — Timer D Control Register: E9H, BANK1
TDPS — TD Pre-scalar Register: EAH, BANK1
INTERRUPT STRUCTURE
Interrupt Types
S3F84B8 Interrupt Structure
Interrupt Vector Addresses
System-Level Interrupt Control Registers
Interrupt Processing Control Points
Peripheral Interrupt Control Registers
System Mode Register (SYM)
Interrupt Mask Register (IMR)
Interrupt Priority Register (IPR)
Interrupt Request Register (IRQ)
Interrupt Pending Function Types
Interrupt Source Polling Sequence
Generating Interrupt Vector Addresses
Instruction Pointer (IP)
Procedure for Initiating Fast Interrupts
INSTRUCTION SET
Flags Register (FLAGS)
Flag Descriptions
Instruction Set Notation
Table 6-4 Instruction Notation Conventions
Table 6-5 Opcode Quick Reference
Condition Codes
Instruction Descriptions
ADC — Add with Carry
ADD — Add
AND — Logical AND
BAND — Bit AND
BCP — Bit Compare
BITC — Bit Complement
BITR — Bit Reset
BITS — Bit Set
BOR — Bit OR
BTJRF — Bit Test, Jump Relative on False
BTJRT — Bit Test, Jump Relative on True
BXOR — Bit XOR
CALL — Call Procedure
CCF — Complement Carry Flag
CLR — Clear
COM — Complement
CP — Compare
CPIJE — Compare, Increment, and Jump on Equal
CPIJNE — Compare, Increment, and Jump on Non-Equal
DA — Decimal Adjust
DA — Decimal Adjust (Continued)
DEC — Decrement
DECW — Decrement Word
DI — Disable Interrupts
DIV — Divide (Unsigned)
DJNZ — Decrement and Jump if Non-Zero
EI — Enable Interrupts
ENTER — Enter
Figure 6-3 Example of the usage of EXIT statement
IDLE — Idle Operation
INC — Increment
INCW — Increment Word
IRET — Interrupt Return
JP — Jump
JR — Jump Relative
LD — Load
LD — Load (Continued)
LDB — Load Bit
LDC/LDE — Load Memory
LDC/LDE — Load Memory (Continued)
LDCD/LDED — Load Memory and Decrement
LDCI/LDEI — Load Memory and Increment
LDCPD/LDEPD — Load Memory with Pre-Decrement
LDCPI/LDEPI — Load Memory with Pre-Increment
LDW — Load Word
MULT — Multiply (Unsigned)
NEXT — Next
NOP — No Operation
OR — Logical OR
POP — Pop From Stack
POPUD — Pop User Stack (Decrementing)
POPUI — Pop User Stack (Incrementing)
PUSH — Push To Stack
PUSHUD — Push User Stack (Decrementing)
PUSHUI — Push User Stack (Incrementing)
RCF — Reset Carry Flag
RET — Return
RL — Rotate Left
RLC — Rotate Left Through Carry
RR — Rotate Right
RRC — Rotate Right Through Carry
SB0 — Select Bank 0
SBC — Subtract with Carry
SCF — Set Carry Flag
SRA — Shift Right Arithmetic
RP/SRP0/SRP1 — Set Register Pointer
STOP — Stop Operation
SUB — Subtract
SWAP — Swap Nibbles
TCM — Test Complement Under Mask
TM — Test Under Mask
WFI — Wait for Interrupt
XOR — Logical Exclusive OR
CLOCK CIRCUIT
Clock Status During Power-Down Modes
RESET AND POWER-DOWN
MCU Initialization Sequence
Power-down Modes
Idle Mode
Hardware Reset Values
I/O PORT
Port 0
Figure 9-1 Port 0 Control Register High Byte (P0CONH)
Figure 9-2 Port 0 Control Register Low Byte (P0CONL)
Figure 9-3 Port 0 Interrupt Control Register (P0INT)
Figure 9-4 Port 0 Interrupt Pending Register (P0PND)
Port 1
Port 2
Figure 9-6 Port 2 High-Byte Control Register (P2CONH)
Figure 9-7 Port 2 Low-Byte Control Register (P2CONL)
BASIC TIMER
Basic Timer Control Register (BTCON)
Basic Timer Function Description
Figure 10-2 Oscillation Stabilization Time on RESET
Figure 10-3 Oscillation Stabilization Time on STOP Mode Release
BIT TIMER A
Functional Description
Timer A Control Register (TACON)
Block Diagram of Timer A
TIMER
Functional Description of One 16-bit Timer Mode (Timer 0)
Block Diagram of Timer 0
Two 8-bit Timers Mode (Timer C and D)
Figure 12-5 Timer C Prescaler Register (TCPS)
Functional Description of Two 8-bit Timers Mode (Timer C and D)
Figure 12-8 Timers C and D Function Block Diagram
Pulse Width Modulation Mode (Timer D)
A/D CONVERTER
Using A/D Pins for Standard Digital Input
Internal Reference Voltage Levels
Conversion Timing
COMPARATOR
Figure 14-2 CMP Interrupt Mode Control Register (CMPINT)
Comparator 1/2/3
Figure 14-7 CMP Interrupt Mode Control Register (CMPINT)
OPERATIONAL AMPLIFIER
OPAMP Control Register
Reference Circuit
BIT IH-PWM
Functional Description of 10-bit IH-PWM
PWM Functional Description
PWM Control Register (PWMCON)
PWM CMP linkage Control Register (PWMCCON)
Block Diagram of PWM Module
Figure 16-6 Example of the cooperation of PWM and Comparator 0_Delay Trigger
PROGRAMMABLE BUZZER
BUZ Frequency Table (@4MHz)
FLASH MCU ROM
EMBEDDED FLASH MEMORY INTERFACE
User Program Mode
Flash Memory Control Registers (User Program Mode)
Flash Memory Sector Address Registers
Sector Erase
Figure 19-7 Sector Erase Flowchart in User Program Mode
Programming
Figure 19-8 Byte Program Flowchart in a User Program Mode
Figure 19-9 Program Flowchart in a User Program Mode
Reading
Hard Lock Protection
LOW VOLTAGE RESET
ELECTRICAL DATA
Table 21-1 Absolute Maximum Ratings
Figure 21-2 Operating Voltage Range @ External clock
Figure 21-4 Stop Mode Release Timing When Initiated by a RESET
Table 21-7 A/D Converter Electrical Characteristics
Table 21-8 OP AMP Electrical Characteristics
Table 21-11 Flash Memory AC Electrical Characteristics
Figure 21-6 Circuit Diagram to Improve the EFT Characteristics
DEVELOPMENT TOOLS
Development System Configuration
TB84B8 Target Board
Figure 22-5 S3F84B8 Probe Adapter for 20-DIP Package
Third Parties for Development Tools
OTP/MTP Programmer (Writer)
MECHANICAL DATA
S3F84B8
8-bit CMOS Microcontrollers
Revision 1.00
June 2010
U
Us
se
er
r'
's
s M
Ma
an
nu
ua
al
l
2010
Samsung Electronics Co., Ltd. All rights reserved.
Next
/ 322
Zoom view
Related manuals for Samsung S3F84B8
Samsung S3F80P5X User Manual
Samsung S3C9444 User Manual
Samsung S3P80C5 User Manual
Samsung S3C84I8 User Manual
Samsung S3C9228 User Manual
Samsung S3C8248 User Manual
Samsung S3C8275X User Manual
Samsung S3C9454B User Manual
Samsung S3C80M4/F80M4 User Manual
Samsung KS57C0302 User Manual
This manual is suitable for:
S3F84B8