找回密码
 立即注册
楼主: suc***

申请STC核心板,用于测试RTOS和BASIC编程

[复制链接]
  • TA的每日心情
    开心
    1 小时前
  • 签到天数: 164 天

    [LV.7]常住居民III

    67

    主题

    838

    回帖

    2808

    积分

    金牌会员

    积分
    2808
    发表于 2024-1-8 12:04:45 | 显示全部楼层

    即使有了BASIC 解释器支持,但是可以实现的功能,估计不多吧。
    用单片机我一直都用C语言,需要一些软件工具什么的,就用VB。
    回复 支持 反对 送花

    使用道具 举报

    该用户从未签到

    4

    主题

    85

    回帖

    652

    积分

    高级会员

    积分
    652
    发表于 2024-1-8 12:21:04 | 显示全部楼层
    本帖最后由 jmg 于 2024-1-9 06:27 编辑
    xxkj2010 published on 2024-1-8 11:50
    I don't understand English. It is estimated that BASIC cannot be applied to microcontrollers, and there is very little relevant information.

    Google Chrome has a translate function.
    Google Chrome has a translation function


    hackaday.io has a Jan 2023 project: 8052ah basic single board computer, that runs BASIC52 on a FPGA & has links to the 1.31 source code.


    Addit: dos4ever site has 8031board, that includes an extension to BASIC51 v1.31, adding  I2C command extensions designed by H.-J. Böhling.
    The features in the original BASIC52 were very constrained by the 8K code limit of the intel 8752 parts.
    回复 支持 反对 送花

    使用道具 举报

  • TA的每日心情
    开心
    2024-2-12 09:21
  • 签到天数: 7 天

    [LV.3]偶尔看看II

    2

    主题

    21

    回帖

    132

    积分

    注册会员

    积分
    132
     楼主| 发表于 2024-1-8 13:40:52 | 显示全部楼层
    非常感谢大家对BASIC编程的热心,我竟然尝试成功了......
    回复 支持 反对 送花

    使用道具 举报

  • TA的每日心情
    开心
    2024-2-12 09:21
  • 签到天数: 7 天

    [LV.3]偶尔看看II

    2

    主题

    21

    回帖

    132

    积分

    注册会员

    积分
    132
     楼主| 发表于 2024-1-8 13:45:16 | 显示全部楼层
    一个简单的点灯灭灯程序
    点灭灯.png
    回复 支持 反对 送花

    使用道具 举报

  • TA的每日心情
    开心
    2024-2-12 09:21
  • 签到天数: 7 天

    [LV.3]偶尔看看II

    2

    主题

    21

    回帖

    132

    积分

    注册会员

    积分
    132
     楼主| 发表于 2024-1-8 13:52:00 | 显示全部楼层
    本帖最后由 success 于 2024-1-8 13:55 编辑

    非常感谢大家对BASIC编程如此热心!
    回复 支持 反对 送花

    使用道具 举报

  • TA的每日心情
    开心
    1 小时前
  • 签到天数: 164 天

    [LV.7]常住居民III

    67

    主题

    838

    回帖

    2808

    积分

    金牌会员

    积分
    2808
    发表于 2024-1-8 15:49:47 | 显示全部楼层
    本帖最后由 xxkj2010 于 2024-1-8 15:59 编辑
    success 发表于 2024-1-8 13:45
    一个简单的点灯灭灯程序

    看起来有点像VB,我以前曾做过一个24c并口读写器,上位机用VB程序编写,也需要把C转变B
    回复 支持 反对 送花

    使用道具 举报

    该用户从未签到

    4

    主题

    85

    回帖

    652

    积分

    高级会员

    积分
    652
    发表于 2024-1-8 16:06:43 | 显示全部楼层
    本帖最后由 jmg 于 2024-1-8 16:10 编辑
    success Published on 2024-1-8 13:45
    A simple program to turn on and off lights

    Which version of BASIC did you test here?  
    I think that is BASCOM51, a commercial (e110) BASIC compiler, not an interpreter ?
    回复 支持 反对 送花

    使用道具 举报

    该用户从未签到

    63

    主题

    661

    回帖

    1万

    积分

    荣誉版主

    积分
    10810
    发表于 2024-1-8 16:29:18 | 显示全部楼层
    success 发表于 2024-1-2 19:17
    噢,BASIC是可以的,可以一起学习和交流一下。

    请问什么软件可以实现用BASIC语言编程,然后生成可以在8051单片机上运行的代码?
    回复 支持 反对 送花

    使用道具 举报

    该用户从未签到

    4

    主题

    85

    回帖

    652

    积分

    高级会员

    积分
    652
    发表于 2024-1-8 16:46:11 | 显示全部楼层
    本帖最后由 jmg 于 2024-1-8 16:50 编辑
    杨为民 发表于 2024-1-8 16:29
    请问什么软件可以实现用BASIC语言编程,然后生成可以在8051单片机上运行的代码? ...

    There are two broad types :
    Compilers : that operate very like C compilers - source code is parsed and converted into HEX on a PC, and the HEX is downloaded to the 8051.
    Search BASCOM-8051, for a commercial compiler example.
    Drawbacks: no floats, and not great at supporting 1T 8051 parts
    Not BASIC, but another readable compiler is Turbo51, based on Turbo Pascal. Free download.

    Interpreters: These operate like Python, also an interpreted language. The first PC languages were BASICs, and intel released a ROM BASIC52 back in 1980's.

    Here, a BASIC engine is programmed into the 8051 Flash once, and then ASCII source is sent to RAM/EEPROM, and it can be listed and run.
    One limitation is the RAM size of the host 8051.

    点评

    谢谢  详情 回复 发表于 2024-1-8 23:18
    回复 支持 反对 送花

    使用道具 举报

    该用户从未签到

    63

    主题

    661

    回帖

    1万

    积分

    荣誉版主

    积分
    10810
    发表于 2024-1-8 23:18:13 | 显示全部楼层
    jmg 发表于 2024-1-8 16:46
    There are two broad types :
    Compilers : that operate very like C compilers - source code is parsed  ...

    谢谢
    回复 支持 反对 送花

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|手机版|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )

    GMT+8, 2024-5-9 09:08 , Processed in 0.099805 second(s), 70 queries .

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表