欢迎访问ic37.com |
会员登录 免费注册
发布采购

ST2601B 参数 Datasheet PDF下载

ST2601B图片预览
型号: ST2601B
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器的集成 [8-bit Integrated Microcontroller]
分类和应用: 微控制器
文件页数/大小: 35 页 / 613 K
品牌: SITRONIX [ SITRONIX TECHNOLOGY CO., LTD. ]
 浏览型号ST2601B的Datasheet PDF文件第23页浏览型号ST2601B的Datasheet PDF文件第24页浏览型号ST2601B的Datasheet PDF文件第25页浏览型号ST2601B的Datasheet PDF文件第26页浏览型号ST2601B的Datasheet PDF文件第28页浏览型号ST2601B的Datasheet PDF文件第29页浏览型号ST2601B的Datasheet PDF文件第30页浏览型号ST2601B的Datasheet PDF文件第31页  
ST2601B  
Step1: use the macro SWITCH_SYSCLK_32K_TO_RC to change Sysclk to RC  
(7) sample code  
1. When B/W, 4G, 16G mode change to fast B/W mode or fast B/W mode change to B/W, 4G, 16G mode, must turn off LCD.  
for example: B/W, 4G, 16G mode change to fast B/W mode.  
;====Step1 LCD OFF ===  
LDA LCTR  
ORA #10000000B  
STA  
LCTR  
;====Step2 set GL[3:2]=11, fast B/W mode ===  
LDA LCTR  
ORA #00001100B  
STA  
LCTR  
;=== Step3 set Frame rate about 65 Hz ===  
LDA #6  
STA  
;when Sysclk is changed to 32k, LFRA cant be modified. Thus LFRA  
;is determined by equation2. Let the frame rate in sysclk=32k mode is  
;about 65hz  
LFRA  
LDA #00001000B  
STA LCKR  
;since LFRA has been determined, LCKR is determined by frame rate equation.  
;Let the frame rate in Sysclk=RC mode is about 65hz  
;===Step4 LCD ON ===  
LDA LCTR  
AND #~10000000B  
STA LCTR  
[After setting up fast B/W mode, then switch SYSCK from RC to 32k]  
2. Sysck from RC change to 32k…  
Please use the macro SWITCH_SYSCLK_RC_TO_32K.  
This macro will use 4 bytes RAM. They are show below.  
;===== used ram ====  
LCD_FLAG  
IENAL_BAK  
IENAH_BAK  
LPCK_BAK  
DS  
1
DS  
DS  
1
1
DS 1  
And this macro will also use LCD interrupt. Please copy below program in LCD interrupt service routine.  
;==== LCD interrupt service routine ===  
LCDFR_ISR:  
PHA  
LDA #FFH  
STA  
RMB7  
PLA  
RTI  
LCD_FLAG  
IENAL  
;DISABPLE LCD INTERRUPT  
The declaration of this macro is show below (please dont modify this macro)  
SWITCH_SYSCLK_RC_TO_32K  
.MACRO  
;=== backup LPCK ===  
LDA LPCK  
STA  
LPCK_BAK  
LDA #2  
STA  
LPCK  
;=== BACKUP IENAL/H AND ONLY ENABLE LCD INT ===  
SEI  
LDA IENAL  
STA  
IENAL_BAK  
LDA IENAH  
STA  
IENAH_BAK  
LDA #10000000B  
;ONLY ENABLE LCD INT  
STA  
STZ  
IENAL  
IENAH  
LDA #01111111B  
27/35  
 复制成功!