VTech Alphabert s Magic Readport User Manual Page 53

  • Download
  • Add to my manuals
  • Print
  • Page
    / 80
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 52
BM Dept., Govt. Engg. College, Gandhinagar Page 53
ACALL DELAY
MOV P1,A ;Get data for display
SETB P3.0 ;Select data register
CLR P3.2 ;Enable Write
SETB P3.1 ;Enable LCD (Strobe LCD)
CLR P3.1 ;Clear Enable and latch data
POP DPL
POP DPH
RET
DISP_MSG:
ACALL DELAY
CLR A
MOVC A,@A+DPTR
JZ EXIT
ACALL DISP_DATA
INC DPTR
SJMP DISP_MSG
EXIT: RET
DELAY: MOV R7,#22H
LOOP2: MOV R6,#0FFH
LOOP1: DJNZ R6,LOOP1
DJNZ R7,LOOP2
RET
MSG: DB 'FREQ:',0
END
Connect signal from the function generator to the input of opto-coupler and measure frequency
of the signal.
:: WORKSHEET ::
Exercise:
A. Simplify program to count external pulses given at T0 pin. Display this pulses on seven
segment display connected at port P0.
Memory
Location
HEX
code
Label Opcode Operands Comments
Page view 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 79 80

Comments to this Manuals

No comments