background image

13

SIGNAL OUTPUTS

For applications that need a signal output, there are 3 sources available:

CLOCKOUT 

this can be programmed to provide a system clock output of 1/12 the oscillator frequency.

OP2

this can output channel A's transmitter clock, transmitter clock times 16, or receiver clock.

OP3 

this can output channel B's transmitter clock, receiver clock, or the C/T output 

WATCHDOG TIMER

The watchdog timer is built into the SAB 80535 processor and is used to reset the MicroPac 535 in the event that a hardware or software
crash occurs.  When the watchdog timer is enabled the software must clear the timer at least once every 65532 machine cycles (a
machine cycle is 1/12 of the oscillator frequency), otherwise a reset will occur.  This reset is the same as an external reset, except that bit
WDTS (bit 6 of IP0) is set.  Using this, the software can determine the source of the reset.

To enable the watchdog timer (it is disabled by default), set the SWDT bit which is bit 6 of IEN1.  Once it has been enabled, the only way it
can be disabled is through an external reset.  Once it is enabled, to clear the timer you must set the WDT bit (IEN0.6) and then the  SWDT
bit.  The requirement of setting two bits independently lessens the possibility of a crashing program from clearing the watchdog timer.  See
also section 3.7 of the SAB 80515/80535 Single-Chip Microcontroller User's Manual included in the appendices.

INTERRUPTS

The 80535 has 5 internal interrupt sources and 7 external sources, and the SC26C92 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
reload mode is disabled) and 9 on-board.  The external interrupts IP0 and IP1 are available on
the expansion connector (the connector is discussed later) and the rest are all available on
HDR3.    For more information on 80535 interrupts, see section 3.6 of the SAB 80515/80535
Single-Chip Microcontroller User's Manual included in the appendices.  The interrupt sources are
as follows:

EXTERNAL

INT2* (programmable  for rising or falling edge trigger)
INT3* (programmable  for rising or falling edge trigger)
INT4  (rising edge triggered)
INT5  (rising edge triggered)
INT6  (rising edge triggered)
T2EX/P1.5 (when timer 2 reload mode is disabled, it is falling edge triggered)
Through INT0/P3.2 the following SC26C92 interrupts are detected: 

IP0 (rising AND falling edge triggered)
IP1 (rising AND falling edge triggered)
IP2 (rising AND falling edge triggered)
IP3 (rising AND falling edge triggered)

INTERNAL

A/D Convertor
Timer 0
Timer 1
Timer 2
COM0

(80535 serial port)

INT1/P3.3 (keypad)

    

  EXTERNAL
DIGITAL I/O 
    HDR3

   50 49
   

 

GND

o o

VCC

GND

o o

PX0 P4.0

GND

o o

PX1 P4.1

GND

o o

PX2 P4.2

GND

o o

PX3 P4.3

GND

o o

PX4 P4.4

GND

o o

PX5 P4.5

GND

o o

PX6 P4.6

GND

o o

PX7 P4.7

GND

o o

PX8 P1.O/INT3*/CC0

GND

o o

PX9 P1.1/INT4/CC1

GND

o o

PX10 P1.2/INT5/CC2

GND

o o

PX11 P1.3/INT6/CC3

GND

o o

PX12 P1.4/INT2*

GND

o o

PX13 P1.5/T2EX

GND

o o

PX14 P1.6/CLKOUT

GND

o o

PX15 P1.7/T2

GND

o o

PX16 P3.4/TO

GND

o o

PX17 P3.5/T1

GND

o o

PX18 OP2

GND

o o

PX19 IP2

GND

o o

PX20 OP3

GND

o o

PX21 IP3

GND

o o

PX22 OP4

GND

o o

PX23 IP6

   

 

    2  1

Содержание 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...

Отзывы: