Tr28X10(p5)-LH-7e-L怎么读还有Tr28x

2020-11-25 21:43:23 字数 8759 阅读 7666

1楼:匿名用户

对,10是导程,p5的5是单线的螺距,所以这个螺纹是双线螺纹,导程为10

梯形螺纹tr100×8—7h和tr100×8—7e有什么不同?

2楼:匿名用户

梯形螺纹tr100×8-7h表示梯形螺纹大径尺寸为∮100,螺距为8毫米,螺纹中径、顶径公差为7级标准公差,偏差为h,旋向为右旋的螺纹孔。

梯形螺纹tr100×8-7e表示梯形螺纹大径尺寸为∮100,螺距为8毫米,螺纹中径、顶径公差为7级标准公差,偏差为e,旋向为右旋的梯形螺杆。

偏差代号区分基准制;以偏差代号h确定。当孔的偏差代号为h时,就是基孔制,轴的偏差代号为h时就是基轴制。

tr9x5(p2.5)-7e

3楼:

汇编可以么

led_1 equ 30h

led_2 equ 31h

led_3 equ 32h

led_4 equ 33h

led_5 equ 34h

led_6 equ 35h

led_7 equ 36h

led_8 equ 37h

timer equ 38h

mode equ 39h ;模式判断

flash equ 40h ;闪烁判断 1亮 0不亮

button1 equ 41h ;按钮开关

button2 equ 42h ;按钮开关

button3 equ 43h ;按钮开关

button4 equ 44h ;按钮灵敏

cs1 equ p2.0

cs2 equ p2.1

wr_on equ p2.2

;-------------------------------

; 按钮

;-------------------------------

in_set equ p2.3

in_gal equ p2.4

in_sub equ p2.5

;-------------------------------

; 主程序

;接口:d0-d7 接 p1.0-p1.7

; cs1 p2.0 cs2 p2.1 wr p2.2

;-------------------------------

*** 0000h

jmp main

*** 000bh

jmp t0int

*** 0030h

main:

call sysinit

;-------------------------------

start:

jmp start

;-------------------------------

; 计时器子程序

;-------------------------------

t0int:

mov th0,#03ch

mov tl0,#0afh

call show

djnz button4,t0int1

mov button4,#10

call aj1

call aj3

call aj5

t0int1:

djnz timer,t0intend

call mode_pd1

t0intend:

reti

;-------------------------------

; 模式判断

;-------------------------------

mode_pd1:

mov a,mode

cjne a,#0,mode_pd2

mov timer,#200

call cadd

jmp mode_pdend

mode_pd2:

mov a,mode

cjne a,#1,mode_pd3

mov timer,#50

call flash1

jmp mode_pdend

mode_pd3:

mov a,mode

cjne a,#2,mode_pd4

mov timer,#50

call flash3

jmp mode_pdend

mode_pd4:

mov a,mode

cjne a,#3,mode_pdend

mov timer,#50

call flash5

mode_pdend:

ret;-------------------------------

; 按钮

;-------------------------------

aj1:

mov a,button1

cjne a,#1,aj2

jb in_set,ajend

mov button1,#0

call save2

mov timer,#1

inc mode

mov a,mode

cjne a,#4,ajend

mov mode,#0

mov timer,#100

jmp ajend

aj2:

mov a,button1

cjne a,#0,aj1

jnb in_set,ajend

mov button1,#1

jmp ajend

aj3:

mov a,button2

cjne a,#1,aj4

jb in_gal,ajend

mov button2,#0

call gal1

jmp ajend

aj4:

mov a,button2

cjne a,#0,aj3

jnb in_gal,ajend

mov button2,#1

jmp ajend

aj5:

mov a,button3

cjne a,#1,aj6

jb in_sub,ajend

mov button3,#0

call sub1

jmp ajend

aj6:

mov a,button3

cjne a,#0,aj5

jnb in_sub,ajend

mov button3,#1

jmp ajend

ajend:

ret;-------------------------------

; 加法

;-------------------------------

gal1:

mov a,mode

cjne a,#3,gal2

inc 58h

mov a,58h

cjne a,#10,galend

mov 58h,#0

inc 57h

mov a,57h

cjne a,#6,galend

mov 57h,#0

gal2:

mov a,mode

cjne a,#2,gal3

inc 55h

mov a,55h

cjne a,#10,galend

mov 55h,#0

inc 54h

mov a,54h

cjne a,#6,galend

mov 54h,#0

gal3:

mov a,mode

cjne a,#1,galend

inc 52h

mov a,52h

cjne a,#10,gal32

mov 52h,#0

inc 51h

gal32:

cjne a,#4,galend

mov a,51h

cjne a,#2,galend

mov 52h,#0

mov 51h,#0

galend:

call save2

ret;-------------------------------

; 减法

;-------------------------------

sub1:

mov a,mode

cjne a,#3,sub2

dec 58h

mov a,58h

cjne a,#-1,subend

mov 58h,#9

dec 57h

mov a,57h

cjne a,#-1,subend

mov 57h,#5

sub2:

mov a,mode

cjne a,#2,sub3

dec 55h

mov a,55h

cjne a,#-1,subend

mov 55h,#9

dec 54h

mov a,54h

cjne a,#-1,subend

mov 54h,#5

sub3:

mov a,mode

cjne a,#1,subend

dec 52h

mov a,52h

cjne a,#-1,subend

mov 52h,#9

dec 51h

mov a,51h

cjne a,#-1,galend

mov 52h,#3

mov 51h,#2

subend:

call save2

ret;-------------------------------

; 闪烁

;-------------------------------

flash1:

mov a,flash

cjne a,#0,flash2

mov 51h,led_1

mov 52h,led_2

mov led_1,#11

mov led_2,#11

mov flash,#1

jmp flashend

flash2:

mov a,flash

cjne a,#1,flashend

mov led_1,51h

mov led_2,52h

mov flash,#0

jmp flashend ;小时闪烁

flash3:

mov a,flash

cjne a,#0,flash4

mov 54h,led_4

mov 55h,led_5

mov led_4,#11

mov led_5,#11

mov flash,#1

jmp flashend

flash4:

mov a,flash

cjne a,#1,flashend

mov led_4,54h

mov led_5,55h

mov flash,#0

jmp flashend ;分钟闪烁

flash5:

mov a,flash

cjne a,#0,flash6

mov 57h,led_7

mov 58h,led_8

mov led_7,#11

mov led_8,#11

mov flash,#1

jmp flashend

flash6:

mov a,flash

cjne a,#1,flashend

mov led_7,57h

mov led_8,58h

mov flash,#0 ;秒钟闪烁

flashend:

ret;-------------------------------

; 数据加减

;-------------------------------

cadd:

inc led_8

mov a,led_8

cjne a,#10,caddend

mov led_8,#0

inc led_7

mov a,led_7

cjne a,#6,caddend

mov led_7,#0

inc led_5

mov a,led_5

cjne a,#10,caddend

mov led_5,#0

inc led_4

mov a,led_4

cjne a,#6,caddend

mov led_4,#0

inc led_2

mov a,led_2

cjne a,#10,cadd2

mov led_2,#0

inc led_1

cadd2:

cjne a,#4,caddend

mov a,led_1

cjne a,#2,caddend

call sysinit

caddend:

call save1

ret;-------------------------------

; 数据显示

;-------------------------------

show:

mov r0,#30h

mov r1,#8

mov r2,#b

show1:

mov a,r2

mov p0,a

call cs2_on

rr a

mov r2,a

mov a,@r0

movc a,@a+dptr

mov p0,a

call cs1_on

call delay

mov p0,#0ffh

call cs1_on

call cs2_on

inc r0

djnz r1,show1

retcs1_on:

clr wr_on

clr cs1

setb wr_on

setb cs1

retcs2_on:

clr wr_on

clr cs2

setb wr_on

setb cs2

ret;-------------------------------

; 数据储存

;-------------------------------

save1:

mov 51h,led_1

mov 52h,led_2

mov 54h,led_4

mov 55h,led_5

mov 57h,led_7

mov 58h,led_8

retsave2:

mov led_1,51h

mov led_2,52h

mov led_4,54h

mov led_5,55h

mov led_7,57h

mov led_8,58h

ret;-------------------------------

; 数据初始化

;-------------------------------

sysinit:

mov led_1,#0

mov led_2,#0

mov led_3,#10

mov led_4,#0

mov led_5,#0

mov led_6,#10

mov led_7,#0

mov led_8,#0

call save1

mov timer,#200

mov mode,#0

mov flash,#0

mov button1,#1

mov button2,#1

mov button3,#1

mov button4,#3

mov th0,#03ch

mov tl0,#0afh

setb tr0

setb et0

setb ea

mov dptr,#tab

ret;-------------------------------

; 延迟

;-------------------------------

delay:

mov r6,#255

djnz r6,$

ret;-------------------------------

; 段码

;-------------------------------

tab:

db 0c0h,0f9h,0a4h,0b0h,99h,92h,82h,0f8h,80h,90h,0bfh,0ffh

;0- "0"

;1- "1"

;2- "2"

;;9- "9"

;10-"-"

;11-" "end