求一个单片机汇编程序
这是个AD转换控制程序,并将结果在LCD上显示的程序。不过程序比较罗嗦,个人觉得有些程序没用。
说明的部分用“////”标注了,应该比较清楚了。你自己看吧。
LED_0 EQU 30H ;
LED_1 EQU 31H
LED_2 EQU 32H ;存放段码
ADC EQU 35H ;/////////AD转换结果存储单元
CLOCK BIT P2.4 ;定义ADC0808时钟位
ST BIT P2.5
EOC BIT P2.6
OE BIT P2.7
ORG 00H
SJMP START
ORG 0BH
LJMP INT_T0
START: MOV LED_0,#00H
MOV LED_1,#00H
MOV LED_2,#00H
MOV DPTR,#TABLE ;段码表首地址
MOV TMOD,#02H
MOV TH0,#245
MOV TL0,#00H
MOV IE,#82H
SETB TR0
////////////启动AD转换//////////////////
WAIT: CLR ST
SETB ST
CLR ST ;启动AD转换
JNB EOC,$ ;等待转换结束
SETB OE
MOV ADC,P1 ;读取AD转换结果
CLR OE
MOV A,ADC
/////////////////分别取AD结果的个/十/百/位/////////////////////////////
MOV B,#100 ;AD转换结果转换成BCD码
DIV AB
MOV LED_2,A
MOV A,B
MOV B,#10
DIV AB
MOV LED_1,A
MOV LED_0,B
/////////////LCD显示///////////////////////
LCALL DISP
SJMP WAIT
INT_T0: CPL CLOCK ;提供ADC0808时钟信号
RETI
///////送LCD显控制的子程序//////////////
DISP: mov dptr,#table
MOV A,LED_0 ;数码显示子程序
MOVC A,@A+DPTR
CLR P2.3
MOV P0,A
LCALL DELAY
SETB P2.3
mov dptr,#table
MOV A,LED_1
MOVC A,@A+DPTR
CLR P2.2
MOV P0,A
LCALL DELAY
SETB P2.2
mov dptr,#table
MOV A,LED_2
MOVC A,@A+DPTR
setb acc.7
CLR P2.1
MOV P0,A
LCALL DELAY
SETB P2.1
RET
/////////这段程序,比较怪,因为你没说具体功能,我没看明白//////////
/////////只知道是对AD结果按TAB表进行处理,也是取个/十/百/位/////////
DELAY: MOV R6,#10 ;延时5毫秒
D1: MOV R7,#250
DJNZ R7,$
DJNZ R6,D1
ntov:
mov dptr,#tab
mov a,adc
movc a,@a+dptr
mov b,#2
div ab
mov r1,b
mov r1,b
mov b,#10
div ab
mov led_2,a
mov led_1,b
cjne r1,#01,kk1
mov led_0,#05
back: ret
kk1: mov led_0,#00
ajmp back
RET
TABLE: DB 3FH,06H,5BH,4FH,66H
DB 6DH,7DH,07H,7FH,6FH
tab:
db 0, 0 , 0 , 1, 0, 2, 0, 0, 3, 0
db 4, 0, 0, 5, 0, 6, 0, 0, 7, 0
db 8, 0, 0, 9, 0, 0, 10, 0, 11, 0
db 0, 12, 0, 13, 0, 0, 14, 0, 15, 0
db 0, 16, 0, 17, 0, 0, 18, 0, 19, 0
db 0, 20, 0, 0, 21, 0, 22, 0, 0, 23
db 0, 24, 0, 0, 25, 0, 26, 0, 0, 27
db 0, 28, 0, 0, 29, 0, 0, 30, 0, 31
db 0, 0, 32, 0, 33, 0, 0, 34, 0, 35
db 0, 0, 36, 0, 37, 0, 0, 38, 0, 39
db 0, 0, 40, 0, 0, 41, 0, 42, 0, 0
db 43, 0, 44, 0, 0, 45, 0, 46, 0, 0
db 47, 0, 48, 0, 0, 49, 0, 50, 0, 0
db 51, 0, 0, 52, 0, 53, 0, 0, 54, 0
db 55, 0, 0, 56, 0, 57, 0, 0, 58, 0
db 59, 0, 0, 60, 0, 0, 61, 0, 62, 0
db 0, 63, 0, 64, 0, 0, 65, 0, 66, 0
db 0, 67, 0, 68, 0, 0, 69, 0, 70, 0
db 0, 71, 0, 0, 72, 0, 73, 0, 0, 74
db 0, 75, 0, 0, 76, 0, 77, 0, 0, 78
db 0, 79, 0, 0, 80, 0, 0, 81, 0, 82
db 0, 0, 83, 0, 84, 0, 0, 85, 0, 86
db 0, 0, 87, 0, 88, 0, 0, 89, 0, 90
db 0, 0, 91, 0, 0, 92, 0, 93, 0, 0
db 94, 0, 95, 0, 0, 96, 0, 97, 0, 0
db 98, 0, 99, 0, 0, 100, 0, 0, 0
END
谁知道英语竞赛初三年级决赛的答案
2006年全国中学生英语能力竞赛(NEPCS)决赛初三年级组试题参考答案
听力部分(共四大题,计30分)
I. 听辨单词(Words)
1—5 ADCBD
II. 句子理解(Sentences)
6—10 CABDB
III. 对话理解(Dialogues)
A) 11—15 DDBAC B) 16—20 ADCBA
IV. 短文理解(Passages)
A) 21—25 BCDCA
B) 26. feed / give food to 27. frightened 28. car windows 29. rubbish bags 30. noise
笔试部分(共七大题,计120分)
I. 选择填空(Vocabulary and structure)
31—35 DBBAC 36—40 BDCCA 41—45 ACBCB 46—50 DCCBC
II. 阅读理解(Reading comprehension)
51—55 ACADA 56—60 DDBCA
61. Revenge in Paris; Century 2000
62. later
63. far; cheap
64. Not only their age but what type of people they are.
65. 他也比较有耐心,而且在他想要帮助别人时也的确能帮上忙。
66. intelligent / clever / bright; better
67. He isn't as happy as Tom.
68. 日记是你写下你最私密的想法和感觉的地方,你知道没人会读到它。
69. Because they feel free to write anything they like online.
70. He doesn't think it is a big deal for other people to read his online diary.
III. 完形填空(Cloze)
A) 71. famous 72. more 73. early 74. realized / realised 75. humo(u)r 76. success 77. because 78. senses 79. make 80. different
B) 81. to say 82. had started 83. were led 84. had been watching / had watched 85. hit 86. was sitting / sat 87. did 88. threw 89. is sitting 90. would catch
IV. 句式转换(Sentence pattern transformation)
A) 91. didn't do anything 92. had lost weight 93. Are girls given 94. can't leave 95. What an embarrassing
B) 96. looks like 97. looking forward 98. make; noise 99. find out 100. have / need to
V. 翻译(Translation)
101. I don't think sixteen-year-olds should be allowed to drive.
102. As a child she has been sent to six different schools.
103. In general, Americans spend Christmas with their families.
104. You are sure to succeed if you do it this way.
105. Jack was too tired to come along with us to the party.
VI. 智力测试(IQ)
106. rice 107. ① MILK ② SOME 108. ① LOAF ② 5681 109. Queue. 110. SMALL
VII. 写作(Writing)
A) One possible version:
Dear Sir / Madam,
I am writing regarding your advertisement about the ten-day tour of Thailand. I am very interested in the tour and would be grateful if you could answer a few questions.
Your advertisement states that the price includes a return flight from Gatwick. What time does the flight leave?
The advertisement also mentions that the price includes 10 nights accommodation in a five-star hotel. Where exactly in Thailand is the hotel?
Finally, the advertisement mentions that there will be sightseeing tours of Thailand. Will there also be time to go shopping?
Thank you for your help.
Yours faithfully,
Danny Burns
B) Possible versions:
a) Have you ever considered becoming a teacher? There are many advantages and disadvantages to doing this kind of job.
One of the main advantages to being a teacher is that it is rewarding because you work with children. Besides, it is exciting as you will teach lots of different things.
Nevertheless, a teacher's job can be difficult sometimes. First of all, it can be stressful because you have to do things in a very short time. Moreover, it is tiring because you have a lot of homework to correct.
All things considered, I think becoming a teacher is a good idea.
b) Have you ever considered becoming a doctor? There are many advantages and disadvantages to doing this kind of job.
One of the main advantages of being a doctor is that it is rewarding as you treat people. Besides, it is well paid because the job takes a lot of skill.
Nevertheless, a doctor's job can be very difficult sometimes. First of all, it can be depressing because you have to be around sick people all day. Moreover, it is a stressful job as you have to work long hours.
All things considered, I think becoming a doctor is a good idea as long as you know the disadvantages.
一、 评分原则:
1. 本题总分为: A) 10分; B) 15分。按四个档次给分。
2. 评分时,先根据文章的内容和语言初步确定其所属档次,然后以该档次的要求来衡量,确定或调整本档次,最后给分。
3. 作文词数少于50或多于100的, 从总分中减去2分。
4. 如书写较差,以致影响交流,将分数降低一个档次。
二、 各档次的给分范围和要求:
第四档(很好):A) 9—10分; B) 12—15分
完全完成了试题规定的要求,覆盖所有内容要点,符合英语表达习惯, 应用了较多的语法结构和词汇,没有语法和词汇错误,具备较强的语言运用能力,完全达到了预期的写作目的。
第三档(好):A) 6—8分; B) 9—11分
完成了试题规定的要求,应用的语法结构和词汇能满足题目的要求,符合英语表达习惯, 基本没有语法和词汇错误,达到了预期的写作目的。
第二档(一般):A) 4—5分; B) 5—8分
未恰当完成试题规定的要求,漏掉内容要点,未描述清楚主要内容,写了一些无关内容,有语法和词汇错误,影响了对写作内容的理解,信息未能清楚地传达给读者。
第一档(差):A) 1—3分; B) 1—4分
未完成试题规定的要求,明显遗漏主要内容,写了一些无关内容,语法结构单调,词汇项目有限,有较多语法和词汇错误,影响对写作内容的理解,信息未能传达给读者。
0分
未能传达给读者任何信息:没有内容或内容太少,无法评判,写的内容均与所要求内容无关或所写内容无法看清。
2006年全国中学生英语能力竞赛(NEPCS)决赛初三年级组试题听力部分录音原文
Part I. Words
Choose the word which you hear in the sentence. Each sentence will be read only once.
1. I heard Tom had an accident yesterday and hurt his leg.
2. I tried to cheer him up because he was feeling down.
3. She was very surprised and didn't know what to say.
4. The local people are always welcoming to foreign visitors.
5. Could you get some more of those biscuits in the supermarket?
Part II. Sentences
Choose the sentence which has the same or a similar meaning as the sentence you hear. Each sentence will be read only once.
6. John is a student, so a major part of his day is spent in class.
7. Sue's job gives her lots of stress, so she finds it difficult to relax.
8. My old jeans don't fit anymore because I'm bigger than I used to be.
9. Our peaceful evening was invaded by the noise of a party next door.
10. Leo was embarrassed because he hadn't brought enough money to pay for the dinner.
Part III. Dialogues
A) You will hear five mini-dialogues. There is one question for each dialogue. Look at the following five groups of pictures. Choose the best one to answer each question. The dialogues and questions will be read twice.
11. W: I'll have a cup of coffee, please.
M: Would you like a slice of cake with it? Our cook has just made a very nice chocolate one.
W: I'd prefer some bread, if you've got some.
M: Certainly. I won't be a moment.
Question: What will the woman eat with her coffee?
12. W: I've bought this postcard to send to Tony. Do you have a stamp?
M: Sorry, I haven't got any left. Let me have the card and I'll post it later.
W: OK. Just let me write her address. Can I use your pen?
M: Here you are.
Question: What will the woman give the man?
13. M: Can I help you?
W: Yes, I want these white sports socks. I know they're usually £5 but are they half price in the sale?
M: £2.50, you mean? No, they are cheaper this week, but the sale price is £3.99.
Question: How much do the woman's sports socks cost?
14. M: You are coming to my party tomorrow, aren't you Joy?
W: I hope so, but I have to play in a concert at seven and it won't end until about half past nine.
M: That's all right. Everybody's coming at nine o'clock so you'll only be half an hour late.
W: Oh good. I'll see you then.
Question: What time will the party start?
15. M: Mum, it's Jack. I won't be home until seven, I'm afraid. I'm on the bus now.
W: Were you playing football with your friends after school again? You've got lots of homework to do.
M: I know. That's what I was doing, at Peter's house.
W: OK. Well, there's no traffic, so the bus should be quick.
Question: Why is Jack late?
B) You will hear a dialogue. Choose the best answer to each question. The dialogue will be read twice.
Boy: Summer vacation is finally here!
Girl: This was the hardest school year ever. So, what are you doing this summer?
Boy: Not too much. I plan to spend a lot of time with my new computer. I just got some new games. I'm also making a webpage. How about you?
Girl: My parents want me to take more cello lessons.
Boy: Do you want to?
Girl: I guess so. Besides, my dad says that if I go to every lesson, he'll take me to a Yo Yo Ma concert.
Boy: Who?
Girl: You don't know who Yo Yo Ma is? He's the best cello player in the world!
Boy: Hey, sorry, I don't listen to classical music. So, what else are you going to do?
Girl: My family always goes somewhere in July. This year, we may go to Spain.
Boy: Really? We're thinking about going to Europe, too. Maybe I'll see you there.
Part IV. Passages
A) You will hear a telephone message. Choose the best answer to each question. The message will be read twice.
This is a message for Marco Daniele. My name's David Dolby. I'm sorry I missed your call. I understand that you want some information about the volleyball club. The club meets once a week, on Wednesday evening. There are sometimes matches on Sunday morning, but those are just for our team players. Our meetings begin at a quarter to eight, and are about two and a quarter hours long, so we finish at ten. People like to get home in time for the 10:15 sports programme on television. We meet in the Jubilee Hall in Park Lane, behind the High Street. The hall doesn't have very good heating so you'll need to bring a sweater to put on afterwards. It's also quite expensive to rent, so our players pay £2.75 each week. I hope this answers all your questions and we'll be very pleased to see you at our next meeting!
B) You will hear a passage. Complete each blank according to passage you hear. The passage will be read twice.
Park Keeper: Now, ladies and gentlemen, just a few safety regulations before you drive off. The most important one is, stay in your car at all times. Otherwise you might end up as fast food; and you mustn't feed the animals; sometimes the zebras come close if they see you eating, but they don't need any more food, believe me! Never use flash photography, not even with koala bears hidden in the trees; they might be frightened. Also, you should keep your car windows closed; animals can be very curious! Last week, a monkey jumped into a car and the people were bitten. You are allowed to eat and drink in your cars, of course, but please remember that every car has been given rubbish bags. So throw any rubbish in there and not out of the window. And finally, please, don't make too much noise. If you listen, you will hear beautiful sounds, the animals, the water, the wind in the trees. And now ... [fade]