Subscribe
 


Serial LCD demo



Serial LCD demo
Code to drive an LCD and a serial routine so that serial data can be displayed.

;**************************************************************************
; LC001.ASM
;
; PROGRAM: Simple LCD project
;
; DESCRIPTION: 
; 
; AUTHOR:  Douglas Rice
; Copyright 2000
;
;	Crystal:	4MHz
;
;	I/O used:-
;
;	; Port B is used for the LCD
;

	INCLUDE "p16F84.inc"       
;
;**************************************************************************

        LIST P=16F84, R=DEC
	__idlocs  0x1234
	__config  _XT_OSC&_PWRTE_ON & _WDT_OFF

;	NOEXPAND
	cblock 	0x0c
	endc

;--------------------------------------------------------------------------
; Sec 1. Equates and Constants
;--------------------------------------------------------------------------
; The General Purpose Registers start at the end of the 
; Special Purpose Registers.

; IPMentState values
; in normal running or in time setting modes
;

; DoTimeSlice bits
; these bits are set to schedule a timer chain event
DTsS4event	EQU	0	; 
DTsSevent	EQU	1
DTsMevent	EQU	2
DTSTriggered	EQU	3	; a capture should take place
DTsTurnOff	EQU	4
DTsMeasFreq	EQU	5
DTsDispFreq	EQU	6
DTsDispCount	EQU	7

; IPtrigMenu
DTSWaitForEdge	EQU	0	; if set, then wait for 0 to 1 edge on PA0
DTSSingle	EQU	1

; IPtrigMenu
DTSFast		EQU	0
Authored by Douglas Rice at Douglas Rice's Homepage, Added: Dec 17, 2006



http://www.dougrice.plus.com/hp/lcd/index.htm

Unsorted Pool