fs3862 Fortune Semiconductor Corporation, fs3862 Datasheet - Page 21

no-image

fs3862

Manufacturer Part Number
fs3862
Description
8-bit Mcu With 1k Program Eprom, 64-byte Sram, 5-bit I/o Port, Intelligent Charger Management Controller
Manufacturer
Fortune Semiconductor Corporation
Datasheet
Rev. 1.3
FS3862 provides a regular resource with 1% accuracy, which to put the calibrating vale into the Peripheral
special registers (15H) of Data Memory Structure in IC. They would be burned into ICs during producing. In
order to running the calibrating value before the program is running, the Start up /Reset Vector in Program
Memory of FS3862 is set to 0000h. Therefore, please add up the following codes during programming:
FS3862 supports low power working mode. When the user want FS3862 to do nothing and just stand by,
FS3862 could be set to Halt mode or Sleep mode to reduce the power consumption by stopping the CPU core
working. The two modes will be described below.
After CPU executes a Halt command, CPU Program Counter (PC) stops counting until an interrupt command is
issued. To avoid program errors caused by Interrupt Return, it is suggested to add a NOP command after Halt to
guarantee the program’s normal execution when turning back.
It is recommended that users execute the following program before issuing the Sleep command:
The FS3862 instruction set consists of 37 instructions. Each instruction is a 16-bit word with an OPCODE and
one or more operands. The detailed descriptions are shown as below.
10. Calibration
11. Halt and Sleep Modes
11.1
11.2
After CPU executes Sleep command, all oscillators stop working until an external interrupt command is issued
or the CPU is reset. To avoid program errors caused by Interrupt return, it is suggested to add a NOP command
after Sleep to guarantee the program’s normal execution. The sleep mode power consumption is about 25uA.
To make sure that CPU consumes minimum power in Sleep mode, it is necessary to close all power blocks and
analog circuits before issuing the Sleep command, and make sure that all I/O Ports are in VDD or VSS voltage
levels.
MOVLW 080h
MOVWF POWER
CLRF
CLRF
CLRF
CLRF
CLRF
MOVLW 082h
MOVWF INTE
SLEEP
NOP
12. Instruction Set
ORG
MOVLW
MOVWF
Halt Mode
Sleep Mode
GENIO
LEDCTL
CCCTL
CVCTL
INTF
0
0ffh
15h
; Current regulation reference current is off.
; Power is off.
; Pull up resistor is disconnected and assigned to be input ports.
; Pull up resistor is disconnected and assigned to be input ports.
; Voltage regulation reference current is off.
; Clear the interrupt flags.
; Enable the external interrupt.
; Set the FS3862 into Sleep mode.
; Guarantee that the program works normally when CPU wakes up.
FS3862
21/32

Related parts for fs3862