找回密码
 立即注册
楼主: success

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

[复制链接]
  • 打卡等级:以坛为家II
  • 打卡总天数:521
  • 最近打卡:2025-05-02 09:38:13

109

主题

1900

回帖

5214

积分

论坛元老

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

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

使用道具 举报 送花

  • 打卡等级:初来乍到
  • 打卡总天数:4
  • 最近打卡:2025-05-01 06:58:22

5

主题

184

回帖

1333

积分

金牌会员

积分
1333
发表于 2024-1-8 12:21:04 | 显示全部楼层
本帖最后由 jmg 于 2024-1-9 06:27 编辑
xxkj*** 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.
回复 支持 反对

使用道具 举报 送花

  • 打卡等级:初来乍到
  • 打卡总天数:7
  • 最近打卡:2024-02-12 09:21:26

3

主题

21

回帖

149

积分

注册会员

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

使用道具 举报 送花

  • 打卡等级:初来乍到
  • 打卡总天数:7
  • 最近打卡:2024-02-12 09:21:26

3

主题

21

回帖

149

积分

注册会员

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

使用道具 举报 送花

  • 打卡等级:初来乍到
  • 打卡总天数:7
  • 最近打卡:2024-02-12 09:21:26

3

主题

21

回帖

149

积分

注册会员

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

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

使用道具 举报 送花

  • 打卡等级:以坛为家II
  • 打卡总天数:521
  • 最近打卡:2025-05-02 09:38:13

109

主题

1900

回帖

5214

积分

论坛元老

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

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

使用道具 举报 送花

  • 打卡等级:初来乍到
  • 打卡总天数:4
  • 最近打卡:2025-05-01 06:58:22

5

主题

184

回帖

1333

积分

金牌会员

积分
1333
发表于 2024-1-8 16:06:43 | 显示全部楼层
本帖最后由 jmg 于 2024-1-8 16:10 编辑
succ*** 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 ?
回复 支持 反对

使用道具 举报 送花

  • 打卡等级:偶尔看看I
  • 打卡总天数:16
  • 最近打卡:2025-04-30 08:41:32

105

主题

1215

回帖

1万

积分

荣誉版主

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

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

使用道具 举报 送花

  • 打卡等级:初来乍到
  • 打卡总天数:4
  • 最近打卡:2025-05-01 06:58:22

5

主题

184

回帖

1333

积分

金牌会员

积分
1333
发表于 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
回复 支持 反对

使用道具 举报 送花

  • 打卡等级:偶尔看看I
  • 打卡总天数:16
  • 最近打卡:2025-04-30 08:41:32

105

主题

1215

回帖

1万

积分

荣誉版主

积分
12882
发表于 2024-1-8 23:18:13 | 显示全部楼层
jm*** 发表于 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, 2025-5-2 11:16 , Processed in 0.143957 second(s), 114 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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