background image

5

HARDWARE DESCRIPTION

KEYPAD INTERFACE

When a connection is made between an X and Y axis, the
P3.3/INT1 line will be brought low and will stay low as long as
a key is pressed, signaling that a value may be read from the
KEYPAD port.  The chart  shows what hex number will be
returned.  The value should be ANDed with 00011111b to
mask off the unused bits.

A key closure may be detected by polling P3.3, or by a better
method which involves enabling the pin's INT1 function and
configuring it to sense a negative transition. This is done as
follows:

KEYPAD CN4
 o   Y5

o

  X4

o

  X3

o

  X2

o

  X1

o

  Y4

o

  Y3

o

  Y2

o

  Y1

o

  GND

9

 
RETURN VALUES
 X1 X2 X3 X4

00

01

02

03

Y1

04

05

06

07

Y2

08

09

0A

0B

Y3

0C

0D

0E

0F

Y4

10

11

12

13

Y5

CLR

P5.1

; ENABLE MMIO

SETB

TCON.2

; INT1 IS FALLING EDGE SENSITIVE

CLR

IEN0.2

; DISABLE INT1, FROM VECTORING (INT FLAG.. 
; STILL GETS SET ON FALLING EDGE THOUGH)

A subroutine may be written which waits for a key to be pressed and returns the value in A, like the following:

GETKEY:

JNB

TCON.3,GETKEY

; LOOP TILL TRANSITION SENSED

MOV

DPH,KEYPORT

; POINT TO KEYPAD PORT

MOVX

A,@DPTR

; GET THE KEY

ANL

A,00011111B

; MASK OFF UNUSED BITS

CLR

TCON.3

; CLEAR INT1 EDGE FLAG

RET

DIGITAL TO ANALOG CONVERTER

The D/A converter has four channels of eight bit resolution with 
0 to 5 volt analog output range. Writing to ports 10 to 13 hex will
write to channels A, B, C, and D respectively.  Writing 0 to a port
causes 0V to be output and writing FF hex causes 5V to be
output.  

+Vin is the unregulated DC that is applied to ST1 and PX9 is a
port line which can be programmed as a digital input or output,
or an interrupt line.

LCD INTERFACE

 

D/A HDR2
 1

+VIN 

o o

 GND 

VOUTA 

o o

 GND  

VOUTB 

o o

 GND  

VOUTC 

o o

 GND  

VOUTD 

o o

 GND  

PX9 

o o

 GND

11

12

The LCD interface allows the MicroPac to control OPTREX
and compatible LCD panels.  The power for LED
backlighting may be turned on by setting OP7.  The
contrast level may be controlled by a fixed resistor on the
MicroPac or by a remote potentiometer.  See the
distribution disk's assembly language drivers for
programming examples.

LCD PANEL HDR5

 1

2 VCC 

o o

 GND

      RS 

o o

 CONTRAST

   E 

o o

 R/W*

D1 

o o

 DO

D3 

o o

 D2

D5 

o o

 D4

D7 

o o

 D6

 BACKLIGHT K 

o o

 BACKLIGHT  A

15

16

Содержание MicroPac 535

Страница 1: ...AND CONTROL CARBONDALE IL 62901 618 529 4525 MicroPac 535 HARDWARE REFERENCE MANUAL for Revision 2 boards MANUAL Revision 2 0 Copyright 1993 1997 EMAC Inc UNAUTHORIZED COPYING DISTRIBUTION OR MODIFIC...

Страница 2: ...use of this manual or the equipment that it documents EMAC reserves the right to make changes at any time FCC COMPLIANCE EMAC s MicroPac series of computers and accessories are classified as sub assem...

Страница 3: ...G INPUTS 7 SERIAL PORTS 8 COM0 8 COM0 HANDSHAKE LINES 9 COM1 AND COM2 9 COM1 COM2 HANDSHAKE LINES 11 TIMER COUNTERS 13 TIMER 0 AND TIMER 1 13 TIMER 2 13 C T 13 SIGNAL OUTPUTS 14 WATCHDOG TIMER 14 INTE...

Страница 4: ...4 CHANNELS OF D A This Digital to Analog convertor provides 4 channels of 8 bit resolution in the range of 0 to 5V 24 BITS OF DIGITAL I O There are 3 input lines 3 output lines and 18 lines programmab...

Страница 5: ...ex to select the same RAM addresses To enable this the jumpers should be set as shown below 1 2 3 4 5 6 JP1 o o o o o o MEMORY MAP 0000 8000 FFFF PROGRAM MEMORY 32K EPROM PROGRAM DATA MEMORY 32K RAM A...

Страница 6: ...routines could handle bank switching to allow calling of routines in another bank reading data memory and reading writing external RAM When 128K devices are used in both U11 and U12 the upper 64K of R...

Страница 7: ...d into the Flash starting at 1 0000 instead of 0 0000 In circuit writing to a 128K Flash with a 128K RAM installed requires the same as the previous with the following exceptions The subroutine which...

Страница 8: ...nnels A B C and D correspond to DPH values 10H to 13H respectively 00H 0FH 0000H 0FFFH SC26C92 COM1 COM2 timer counter and digital I O ports Below is a detailed list of the SC26C92 s ports wr indicate...

Страница 9: ...CON 3 GETKEY LOOP TILL TRANSITION SENSED MOV DPH KEYPORT POINT TO KEYPAD PORT MOVX A DPTR GET THE KEY ANL A 00011111B MASK OFF UNUSED BITS CLR TCON 3 CLEAR INT1 EDGE FLAG RET DIGITAL TO ANALOG CONVERT...

Страница 10: ...ndices PX18 PX23 and IP0 IP1 The remaining lines PX18 PX23 are supplied by the SC26C92 with OP2 OP3 and OP4 being output only and IP0 IP1 IP2 IP3 and IP6 being input only The inputs IP0 and IP1 are on...

Страница 11: ...IP3 have a unique feature in that they can also detect a change in state This is defined as a high to low or low to high input transition that lasts longer than 50 uS When the IPCR port is read bits...

Страница 12: ...or received a start bit of 0 8 data a programmable 9th bit and a stop bit of 1 When transmitting the 9th bit comes from TB8 in SCON This could be used to hold the parity of the data When receiving th...

Страница 13: ...ts are in the SC26C92 with COM1 and COM2 corresponding to channel A and channel B respectively The ports are very versatile as seen in the following list of features Quadruple buffered receiver data r...

Страница 14: ...2 level one bit time afterward In the RS 422 configuration OP0 and OP1 are used to enable the transmitters for COM1 and COM2 respectively Use the OUTRES command to enable and OUTSET to disable Because...

Страница 15: ...RET Serial port B input SERINB MOV P2 SRB SERINB1 MOVX A R1 JNB ACC 0 SERINB1 LOOP TILL RXrdy MOV P2 RHRB READ DATA PORT MOVX A R1 RET Serial port A output SEROUTA MOV P2 SRA PUSH ACC SAVE CHAR SOUTA...

Страница 16: ...GND o o PX22 OP4 GND o o PX23 IP6 2 1 Capture mode 0 can be used to decode 4 PWM signals with 16 bits of resolution again using the CC0 CC1 CC2 and CC3 lines as capture input signals remember P1 0 1...

Страница 17: ...6C92 has a single interrupt output with eight maskable interrupt sources As these devices are configured on the MicroPac 535 this works out to 9 external interrupt sources 10 available when timer 2 re...

Страница 18: ...ge of state occurs on any of the IP0 IP3 inputs See Digital I O section for description of change of state and see the SC26C92 data sheets for detailed information interrupts and associated registers...

Страница 19: ...APPENDIX A SAB 80515 80535 Single Chip Microcontroller User s Manual Reprinted with permission from Siemens Components Inc Copyright Siemens Components Inc...

Страница 20: ...APPENDIX B SC26C92 Programming and Data Reference Sheets Reprinted with permission from Philips Semiconductors Copyright Philips Semiconductors...

Страница 21: ...APPENDIX C SAB 8051 Family Instruction Set Reprinted with permission from Siemens Components Inc Copyright Siemens Components Inc...

Страница 22: ...APPENDIX D MicroPac 535 Schematics...

Страница 23: ......

Страница 24: ......

Страница 25: ......

Страница 26: ......

Страница 27: ...EPROM and is now used as a selector which exchanges the locations of the memory devices this jumper position also connects DO to DI which requires different SEEPROM drivers On reset P5 4 is high which...

Отзывы: