Comparison of 8051 family - modes Generate a square wave of...

Info icon This preview shows pages 1–15. Sign up to view the full content.

View Full Document Right Arrow Icon
Feature 8031 8051 8052 8751 89C51 *DS5000 Make Intel Intel Intel Intel Atmel Dallas On –chip ROM type - RO M PROM UV- EPROM Flash NV- RAM Rom size - 4K 8K 4K 4K/8K 8K/32K RAM size 128 128 256 128 128 128 Timers 2 2 3 2 2 2 I/O Pins 32 32 32 32 32 32 Serial Port 1 1 1 1 1 1 Interrupt Sources 6 6 8 6 6 6 *DS 5000 also contains inbuilt Real time clock: Comparison of 8051 family
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Special Function Registers
Image of page 2
PSW: Program Status Word
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
TMOD: Timer/Counter Mode Control Register
Image of page 4
TCON: Timer/Counter Control Register (bit addressable)
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
TMOD: Timer/Counter Mode Control Register (not bit addressable)
Image of page 6
Timer/Counters 8051 has two 16-bit Timer/Counter registers Timer/Counter 0 Timer/Counter 1 These registers can be used as timers or as event counters When a register is in “Timer” state, it is incremented every machine cycle In “Counter” state, the register is incremented when there is a 1-to-0 transition at its external input pin, pin T0 or T1 Both registers have additional four operating
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
Image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 10
Image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 12
Image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 14
Image of page 15
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: modes Generate a square wave of 50% duty cycleon the port P1.5, Timer 0 is used to generate the time delay • Mov TMOD,#01;Timer 0 mode 1 • Here:MOV TL0,#0f2h • Mov TH0,#0ffh; • CPL P1.5; toggle p1.5 • ACALL delay • SJMP here • Delay:SETB TR0;start timer 0 • Again :JNB TF0,Again ;monitor Timer0 flag • CLR TR0; stop timer 0 • CLR TF0;clear timer0 flag • RET IE: Interrupt Enable Register (bit addressable) • If the bit is 0, the corresponding interrupt is disabled. Otherwise, the interrupt is enabled. IP: Interrupt Priority Register (bit addressable) • If the bit is 0, the corresponding interrupt has a lower priority and if the bit is 1, the interrupt has a higher priority Arithmetic Instructions Logical Instructions Data Transfers Boolean Instructions Jump Instructions...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern