???????? EX 7.5 ??? ?? - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

???????? EX 7.5 ??? ??

Description:

Title: 7.5 Author: home Last modified by: home Created Date: 11/29/2006 12:36:53 PM Document presentation format – PowerPoint PPT presentation

Number of Views:48
Avg rating:3.0/5.0
Slides: 13
Provided by: home
Category:
Tags:

less

Transcript and Presenter's Notes

Title: ???????? EX 7.5 ??? ??


1
????????EX 7.5 ??? ??
  • 11? ???
  • ???
  • ???

2
??
  • ???? ??
  • ???
  • ???? ??
  • ?? ??

3
??
  • ???? ???? ???? ??? ??? ?? T1? ??? ???? ?? ??? ??
    1? LED? ??? ???? ?? ??? ? ??.

4
? ?
???/??? 1? ??1? ????
TMODlt-01010000B
TH1 lt- FF TL1 lt- FF
??? 1?? ? ???? ????? ????? TH1? TL1? ?? ??
???? enable ???? 1
IE lt- 10001000B IP lt- 00001000B
P1 lt- 11111111B
LED ?? off
TR1 lt- 1
???/??? 1 run
???? ??? ??
NOP
???? ??
TR1 lt- 0
???.??? 1 stop
??? A? ?? ????.
???? T1? ?? ?? ??? ???? ??? ????.
A? ??? ?? 1?
P1 lt- A
P1 lt- A
TH1 lt- FF TL1 lt- FF
???? ??? 1?? ? ???? ????? ????? TH1, TL1? ?? ?? ??
???? ??? 1?? ? ???? ????? ????? TH1, TL1? ?? ?? ??
TR1 lt- 1
???/??? 1 run
TR1 lt- 1
RETI
5
  • ORG 00H ?? ??
  • JMP START
  • ORG 1BH ???1? ???? ??
  • JMP TIMER1
  • START MOV SP,70H
  • MOV TMOD,01010000B ??? 1? ?? 1? ????
  • MOV TH1,0FFH ??? T1? ??? ???? ????? ?????
  • MOV TL1,0FFH
  • SETB ET1 TMR1 ???? ?? ????
  • SETB EA ?? ????
  • SETB PT1 ????? high?
  • MOV A,0FFH LED? ????(????0)
  • MOV P1,A
  • SETB TR1 ???1 run
  • LOOP NOP ???? ??? ??

6
  • include ltreg41.hgt /8051 ?? ??? include
  • Unsigned char counter /number8?? ??
  • Viod TMR1_int(void) interrupt 3 /?? ??3? ????
    ?? TMR1_int
  • EA 0 /???? ??? ?? ???? ??
  • counter-- /counter? ??? ?? ??. LED? ??
  • P1 counter
  • TH1 0xff /TH1? TL1 ?? ?? ??
  • TL1 0xff
  • EA 1 /???? enable
  • return
  • Void main(void) /?? ??
  • TMOD 0x50 /???1? ?? 1? ????

7
(No Transcript)
8
(No Transcript)
9
(No Transcript)
10
(No Transcript)
11
(No Transcript)
12
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com