Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Project: Digital Clock using MC68HC11 (in assembly language)

Status
Not open for further replies.

snorazizul

Junior Member level 1
Joined
Nov 22, 2007
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,360
project assembly digital clock

Hello,
I need help, I want to make digital clock using 68HC11 and LCD but I need some basic module to start. I want to know how to control LCD using 68HC11 microcontroller?

anybody please send me example of program that control LCD using this 68HC11 microcontroller. (just in Assembly language)


Thank u
 

digital clock using mc68hc11

Hi, this may help.
Code:
*       LCD1.ASM
portb   equ      $1004
portc   equ      $1003
ddrc    equ      $1007

start   clr      portc
        ldaa     #240
        staa     ddrc
        jsr      lcdinit

        bsr      go
        bra      *

go      ldx      #text1
textut  ldaa     0,x
        beq      texend
        bsr      lcddata
        inx
        bra      textut
texend  rts


lcdcom  staa     portb
        clra
        bra      strba

lcddata staa     portb
        ldaa     #%01000000

strba   staa     portc
        oraa      #%00010000
        staa     portc
        ldaa     #%11101111
        anda     portc
        staa     portc

        ldy      #30
        bra      paus

p5m     ldy      #2000
paus    dey
        bne      paus
        rts

lcdinit bsr      lints
        bsr      lints
        bsr      lints

lcdclr  ldaa     #%00000001
        bsr      lintb
        ldaa     #%00111000
        bsr      lcdcom
        ldaa     #%00001100
        bsr      lcdcom
        ldaa     #%00000110
        bsr      lcdcom
        rts

lints   ldaa     #%00110000
lintb   bsr      lcdcom
        bsr      p5m
        rts


text1   fcc      'EDAboard'        
        fcb      0
 

mc68hc11 projects

Thank u


Im still need to know how u declare the no of line and no of character
 

project of mc68hc11

Code:
line0	equ 	128
line1	equ 	192

	ldaa	#line_no + char_no   
	jsr	lcdcom

example:
Code:
	ldaa	#line1	+ 5   
	jsr	lcdcom
Places the cursor at second line and fifth character.

(PortB=data0-7, PortC bit6=RS, PortC bit5=W/R, PortC bit4=E)
 

digital project of using assembled language

thank u

just want to know, can u give me the circuit of your project. I think I use 48pin 6811

ora #%00010000 (WHAT IS THIS INSTRUCTION)
 

mc68hc11

Sorry it should be "oraa #%00010000"

I have used this code in many designs, but I can't find any schematic for the moment.
 

mc68hc11 48 pin

Here comes one of my constructions, a generic network unit.
It is designed to be a part of a, low cost, networked alarm and information system.

The zip contains schematic and component layout.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top