SN8P1829
8-Bit MCU build-in 12-bit ADC + PGIA + Charge-pump Reg 128 dots LCD driver
SONiX TECHNOLOGY CO., LTD
Page 122
Version 1.0
CPCKS-Charge Pump Clock Register
096H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
CPCKS
CPCKS7 CPCKS6 CPCKS5 CPCKS4 CPCKS3 CPCKS2 CPCKS1 CPCKS0
R/W R/W R/W R/W R/W R/W R/W R/W
CPCKS [7:0]
register sets the Charge-Pump working clock; the suggestion Charge-Pump clock is 100K Hz.
Refer to the following table for CPCKS [7:0] register value setting in different Fosc frequency.
Charge-Pump Clock= (Fosc /(256- CPCKS [7:0])) / 2
CPCKS [7:0]
F
OSC
CP Working Clock
236
4M
(4M / 20) / 2 = 100K
216
8M
(8M / 40) / 2 = 100K
206
10M
(10M / 50) / 2 = 100K
196
12M
(12M / 60) / 2 = 100K
156
20M
(20M / 100) / 2 = 100K
Note: In general application, CP working clock is 100K Hz..
Example: Charge-Pump setting (Fosc = 4M X’tal)
@CPREG_Init:
MOV
A,
#04h
B0MOV
CPM, A
; Set Charge-Pump as Auto Mode
MOV
A,
#0236
B0MOV
CPCKS, A
; Set CPCKS = 236 for CP working clock = 100K @ 4M X’tal
@CP_Enable:
B0BSET
FCPRENB
; Enable Charge-Pump / Regulator function
@Delay_10ms:
CALL
@Wait_10ms
; Delay 10ms for Charge-Pump Stabilize
…
…