EasyManua.ls Logo

Intel MCS 51 User Manual

Intel MCS 51
334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #323 background imageLoading...
Page #323 background image
i~e
83C152HARDWARE DESCRIPTION
The
resultis thatin this @c* css c~el o hss
FunctionRegister(SFR).If DAS = 1and IDA = 1,
to waituntil channel1completesits BurstmodeDMA,
the destinationis in Internal Data WM.
and then hasto wait for an Instructioncycleto begen-
erated,beforeit cartcontinueits ownDMAto TFIFO.
IDA (IncrementDestinationAddress)If IDA = 1,the
The delayin servicingTFIFO can causean Underflow
destinationaddressis automaticallyincrementedafter
conditionin the GSC transmission.
each bytetransfer. If IDA = O,it is not.
The delay will not occur if channel 1 is configuredto
SASspeeitlesthe SourceAddressSpace.If SAS = 0,
Alternate Cyclesma sincechannelOwouldthen see
the sourceis in External Data Memory.If SAS = 1
the Instructioncyclesit needsto completeits logicre-
and ISA = O,the sourceis an SFR. If SAS = 1 and
quirementsfor amertingits request.
ISA = 1,the sourceis internal Data RAM.
4.4.1 DMA Arbitration with Hold/Hold Ack
ISA (Increment source Address) If ISA = 1, the
sourceaddressis automaticallyincrementedafter each
TheHold/Hold Acknowledgefeatureis invokedby set-
bytetransfer. If ISA = O,it is not.
ting eitherthe ARBor REQ bit in PCON.Theireffect
is to add the requirementsof the Hold/Hold Ack pro-
DM (D
emandMode)If DM = 1,the DMA Channel
tocolto mode-logic (). This amountsto replacingev-
opcrates in
Demand Mode. In Demand Mcde the
ery expression“return 1“ in Figure 4.13 with the ex-
DMA is initiated either by an external signal or by a
pression “return hld-hlda-logic ( )“, where
SerialPort tlag, dependingon the valueof the TM bit.
hld-idda-logic ( ) is a fimctionwhichreturns 1if the
If DM = O,the DMA is requestedby settingthe GO
Hold/Hold Ackmotocolis satisfied,andreturnsOoth-
bit in software.
erwise.A suitabfi definitionfor hltida-logic ( ) is
shownin Figure4.14.
TM (Transf~ Mode) If DM = 1 then TM selects
whethera DMA is initiatedby an
external signal (TM
= 1)
or by a SerialPort flag (TM = O).If DM = O
4.5Summaryof DMA ControlBita
then TM selectswhethertie data transfersare to be in
bursts (TM = 1)or in alternate cycles(TM = O).
DCONn [ DAS / IDA I SAS I ISA I DMI TMI DONEI GOI
DONE indicatesthe completionof a DMA operation
DASspccitlesthe Destination AddressSpace.If DAS
andtlagsan interrupt.It is setto 1byon-chiphardware
= O,the destinationis in External Data Memory.If
whenBCRn = O,and is clearedto Oby on-chiphard-
DAS = 1 and IDA = O,the destinationis a Special
ware whenthe interrupt is vectoredto. It can also be
setor clearedby software.
hold-holda( ) :
if (ARB
= O .AND. REQ= O) return 1;
if sARn =
XRAM. OR. DARn= XRAM)
{
if (ARB =
1 .AND. ~ = 1) return 1 ;
if (REQ =
1 .AND. HLDA=
O) return 1;
else return
O ;
)
return 1 ;
end hold-holda ( ) ;
Figure 4.14. Hold/Hold Acknowledge Logic as a Paeudo-HLL Function
7-59

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Intel MCS 51 and is the answer not in the manual?

Intel MCS 51 Specifications

General IconGeneral
Architecture8-bit
Number of Instructions111
Clock Speed12 MHz
Register Size8-bit
Internal RAM128 bytes
Internal ROM4 KB
External Memory64 KB
I/O Pins32
Timers2
Serial Port1
Interrupts5
Operating Voltage5V
UARTYes
Program Memory4 KB
RAM128 bytes
Instruction SetCISC

Summary

MCS® 51 Family of Microcontrollers Architectural Overview

THE MCS®-51 INSTRUCTION SET

Provides an overview of the MCS®-51 instruction set, optimized for 8-bit control applications.

Interrupt Structure

Overview of the 8051 interrupt structure, sources, and vectoring.

MCS® 51 Programmer’s Guide and Instruction Set

MCS®-51 INSTRUCTION SET

Provides a summary of the 8051 instruction set, including mnemonics and operands.

8051, 8052 and 80C51 Hardware Description

TIMER/COUNTERS

Describes Timer 0 and Timer 1, including operating modes and control registers.

8XC52/54/58 Hardware Description

8XC51FX Hardware Description

PORT STRUCTURES AND OPERATION

Details port structures, I/O configurations, and external memory access.

SERIAL INTERFACE

Covers serial port modes, framing error detection, and baud rate generation.

87C51GB Hardware Description

SPECIAL FUNCTION REGISTERS

Provides a map of the SFR space and their reset values.

SERIAL PORT

Details the serial port's modes, framing error detection, and baud rates.

INTERRUPTS

Covers interrupt sources, enable registers, and priority levels.

83C152 HARDWARE DESCRIPTION

Related product manuals