timer2a.bas
来自「82 sample programs written in BASCOM-805」· BAS 代码 · 共 24 行
BAS
24 行
'--------------------------------------------------------------
' (c) 1997-1999 MCS Electronics
'--------------------------------------------------------------
' file: TIMER2.BAS
' *TIMER2 is used as a baudrate generator
' Select 8052.dat or 89s8252.dat !!
'--------------------------------------------------------------
'Note that timer2 can be used to generate greather baud rates
'as possible with the timer1 baudrate generator
'--------------- TIMER 2 modes ------------------
'0=16-bit auto reload
'1=16-bit capture
'2=baudrate generator
'3=receive only
'4=transmit only
'5=clock output
Config Timer2 = Timer , Gate = Internal , Mode = 2'use timer2 as a baudrate generator
Print "timer 2 as a baudrate generator"
End
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?