update: 3-9-29 11:08
filename: pt6524.txt

 - v1.0.0.1
 		1. modify some macro define
 				3-9-29 11:07

 - v1.0.0.0
		1. success
 				3-9-26 9:47
 				
=============================================================
 - filename: 3316ram.hea
=============================================================

; =============================================================
; pt6524 variables define

.ifdef		__PT6524__

; pt6524 variables  ( 37 pin data for LCD iso9155p)
g1PT6524_Begin:         .equ        0d9h
g1PT6524_Lacol_Flag:    .equ        g1PT6524_Begin+00h
g1PT6524_Section:       .equ        g1PT6524_Begin+01h
g1PT6524_Buffer:        .equ        g1PT6524_Begin+02h  ; 25h (37) = 100h - 0d9h - 002h
g1PT6524_End:           .equ        00h ; 100h

; pt6524 flag
g1PT6524_Refresh_Flag:  .equ        g1PT6524_Lacol_Flag
f1PT6524_Refresh_0:     .bit        g1PT6524_Refresh_Flag.0
f1PT6524_Refresh_1:     .bit        g1PT6524_Refresh_Flag.1
f1PT6524_Refresh_2:     .bit        g1PT6524_Refresh_Flag.2
f1PT6524_Refresh_3:     .bit        g1PT6524_Refresh_Flag.3

g1PT6524_Flag:          .equ        g1Main_Flag00
f1PT6524_Refresh_Enable:.bit        g1PT6524_Flag.0

.endif		; __PT6524__

=======================
˵
=======================

g1PT6524_Lacol_Flag	ˢµı־λӦöӦı־λǣԶӦ ram ν
						ˢ¡
g1PT6524_Section:		ӦĶ
g1PT6524_Buffer:		PT6524 Ӱڴַʼֵ￪ʼ 37 ram 4bitַ
						Ҫʾ LCD ֵ

f1PT6524_Refresh_0:		ˢµһ
f1PT6524_Refresh_1:		ˢµڶ
f1PT6524_Refresh_2:		ˢµ
f1PT6524_Refresh_3:		ˢµĶ
						
f1PT6524_Refresh_Enable:	ˢµʹܿ

ע⣺
	1еı bank 1 С


=============================================================
壺	- filename: pt6524.hea
=============================================================

; =============================================================
; const define
cPT6524_Address:		.equ		041h		; PT6524 Address: 41H

cPT6524_Section3:       .equ        00000001b   ; section 3
cPT6524_Section2:       .equ        00000010b   ; section 2
cPT6524_Section1:       .equ        00000100b   ; section 1
cPT6524_Section0:       .equ        00001000b   ; section 0

; =============================================================
; buffer begin address
cPT6524_Buffer:			.equ		g1PT6524_Buffer

; =============================================================
; pin define
pPT6524_CE:				.bit		IOP7.0		; Chip Enable Pin
pPT6524_CLK:			.bit		IOP7.1		; Clock Input Pin
pPT6524_DI:				.bit		IOP7.2		; Data Input Pin

=======================
˵
=======================

cPT6524_Address:		pt6524 ic ַʶֵ

cPT6524_Section3:		Ķֵ
cPT6524_Section2:		ֵ	
cPT6524_Section1:		ڶֵ
cPT6524_Section0:		һֵ

cPT6524_Buffer:			ڴ濪ʼַӰֵ

pPT6524_CE:				Ƭѡ I/O Ŷ
pPT6524_CLK:			ʱ I/O Ŷ
pPT6524_DI:				 I/O Ŷ

============================================================= 
ܶ壺	- filename: pt6524.src
=============================================================

pt6524_refresh:			ˢ¶ӦĵֵַѶӦĵֵַ I/O ŷͳȥ
						ͳ˳⣺pt6524 ic ַʶֵ -> 13 * 4bit ֵ
						-> 12 bit ֵ
pt6524_init:			pt6524 ʼ
pt6524_input_4bit:		 I/O ͳ 4bit ֵ