<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>金双石科技 - 系统开发</title>
    <link>http://jinshuangshi.com/forum.php?mod=forumdisplay&amp;fid=52</link>
    <description>Latest 20 threads of 系统开发</description>
    <copyright>Copyright(C) 金双石科技</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Thu, 30 Apr 2026 19:14:18 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://jinshuangshi.com/static/image/common/logo_88_31.gif</url>
      <title>金双石科技</title>
      <link>http://jinshuangshi.com/</link>
    </image>
    <item>
      <title>设置 Timer2 时钟源</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664691</link>
      <description><![CDATA[CKCON |= 0x10;

含义：选择：Timer2 Clock = SYSCLK
如果 SYSCLK = 12MHz：Timer2 每秒计数：12,000,000 次

Timer2 是16位：0x0000 ~ 0xFFFF。 溢出条件：计数到65535后+1溢出，若希望定时 X 次：Reload = 65536 - 计数次数

SYSCLK / 512 / N_sec 

如果是0.000400秒 ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Tue, 28 Apr 2026 05:03:12 +0000</pubDate>
    </item>
    <item>
      <title>固件如何加密</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664690</link>
      <description><![CDATA[做固件加密，本质上是防止别人读取或复制你的程序。常见做法分为“芯片级保护 + 软件级保护”两层，通常需要一起用。

一、最关键：启用芯片读保护（Flash Lock）

C8051 内部有 Flash 锁定位（Lock Byte），这是最核心的防护手段。

🔒 作用
禁止通过调试接口（如 C2 / ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Mon, 06 Apr 2026 12:57:44 +0000</pubDate>
    </item>
    <item>
      <title>如何从16位中取10位</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664689</link>
      <description><![CDATA[ADC 数据不是连续存的，被拆成：
高 8 位（ADC0H）
低 2 位（ADC0L 高位）
如何从一个 16 位数据里拆出低字节和高字节组成10位，
在数据产生的时候就去掉了高字节的前6位：

1.取出低字节的8位：
buffer &amp; 0xFF

2.取出高字节的2位：
adc_buffer &gt;&gt; 6

3.限制10位防止高 ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Sat, 28 Mar 2026 02:40:56 +0000</pubDate>
    </item>
    <item>
      <title>自动扫描 ADC通道</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664687</link>
      <description><![CDATA[//-----------------------------------------------------------------------------
// F32x_ADC_ScanAllChannels.c
//-----------------------------------------------------------------------------
// 示例说明:
// 本程序自动扫描 ADC0 的 通道，找出那个真正在 ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Thu, 26 Mar 2026 11:00:18 +0000</pubDate>
    </item>
    <item>
      <title>ADC 采样周期计算</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664686</link>
      <description><![CDATA[次 ADC 采样周期分成两段,
|--------Settling-------|==Conversion==|----Settling--- . . .
 Timer 2 overflow        ^                          
 ADC0 ISR                               ^

1️⃣ Settling（稳定时间）
输入电压“充到ADC内部电容”的过程
还不准 ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Wed, 25 Mar 2026 11:50:51 +0000</pubDate>
    </item>
    <item>
      <title>三种ADC触发方式</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664685</link>
      <description><![CDATA[① 硬件自动触发
ADC0CN = 0x02;   // Timer2触发

👉 意思：

Timer2一溢出 → ADC自动开始转换

✔️ 优点：稳定
❌ 缺点：不好控制通道切换


② 软件触发（你现在要用的）
ADC0CN |= 0x10;

👉 意思：

CPU执行到这句 → ADC开始转换

✔️ 优点：完全可控（推荐你 ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Tue, 24 Mar 2026 07:50:05 +0000</pubDate>
    </item>
    <item>
      <title>固件调试</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664684</link>
      <description><![CDATA[Keil 如何调试固件
进入调试模式
Debug → Start/Stop Debug Session
或者快捷键：
Ctrl + F5

1️⃣ 单步执行（最重要）
工具栏按钮：

▶️ Run（全速运行）
⏸ Stop（暂停）
🔁 Reset（复位）
⬇️ Step Into（单步进入）
⤵️ Step Over（单步跳过函数）

👉 推荐新 ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Tue, 24 Mar 2026 07:17:01 +0000</pubDate>
    </item>
    <item>
      <title>调试适配器（下载器）需要重新编程</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664683</link>
      <description><![CDATA[---------------------------
SiC8051F
---------------------------
The debug adapter must be reprogrammed in order to function properly with this version of the software.
Do you want to update the serial adapter now?
New Version: 40, Old Version: 25 
]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Tue, 24 Mar 2026 06:23:49 +0000</pubDate>
    </item>
    <item>
      <title>空Flash</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664682</link>
      <description><![CDATA[C:0x0000    FF       MOV      R7,A
C:0x0001    FF       MOV      R7,A
C:0x0002    FF       MOV      R7,A
C:0x0003    FF       MOV      R7,A
C:0x0004    FF       MOV      R7,A
C:0x0005    FF       MOV      R7,A
C:0x0006    FF       MOV      R7,A
C:0]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Tue, 24 Mar 2026 01:39:35 +0000</pubDate>
    </item>
    <item>
      <title>程序或调试操作“越界写到了 Flash 保留区”</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664681</link>
      <description><![CDATA[---------------------------
SiC8051F
---------------------------
Warning! An attempt was made to modify address 3FC0
which is restricted!

Code edit has been cancelled
---------------------------
确定   
---------------------------


错误提示：
***]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Mon, 23 Mar 2026 12:47:19 +0000</pubDate>
    </item>
    <item>
      <title>固件调试信息</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664680</link>
      <description><![CDATA[*** AGDI-Msg: AG_Init code 786
*** AGDI-Msg: AG_Init Status: Flash Download in Progress.
*** AGDI-Msg: AG_Init code 256
*** AGDI-Msg: AG_Init code 513
*** AGDI-Msg: AG_Init code 514
*** AGDI-Msg: AG_Init code 515
*** AGDI-Msg: AG_Init code 516
***]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Thu, 12 Mar 2026 02:20:29 +0000</pubDate>
    </item>
    <item>
      <title>什么是 Nuitka</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664678</link>
      <description><![CDATA[Nuitka 不是普通打包工具（比如 PyInstaller）。

它是：

✅ 真正的 Python 编译器
✅ 把 Python 转成 C
✅ 再编译成机器码

流程是：

.py
   ↓
转换成 C 代码
   ↓
调用 C 编译器（MSVC / GCC）
   ↓
生成机器码
   ↓
EXE

和 PyInstaller 最大区别：

工具]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Wed, 25 Feb 2026 04:13:22 +0000</pubDate>
    </item>
    <item>
      <title>只发布 pyc</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664677</link>
      <description><![CDATA[python -m compileall src/
生成文件地址：
src/__pycache__/xxx.cpython-39.pyc

python -m compileall -b src/
加了-b之后pyc 和 py 在同级目录

入口文件必须是 .py
再在 .spec 文件手动指定 pyc，.spec 是 PyInstaller 的构建脚本文件，本质上是一个 Python 脚本， ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Thu, 12 Feb 2026 06:58:54 +0000</pubDate>
    </item>
    <item>
      <title>Cython</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664676</link>
      <description><![CDATA[Python 是一种高级、解释型的动态编程语言，以简洁易读的语法和丰富的生态著称，适合快速开发、数据分析、Web 后端等各类应用。它的代码通常由 CPython 解释器直接执行，运行时进行类型推导，因此开发效率高，但执行速度相对较慢。

Cython 则是一个将 Python 代码编译 ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Thu, 12 Feb 2026 03:53:12 +0000</pubDate>
    </item>
    <item>
      <title>onedir</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664675</link>
      <description><![CDATA[--onefile 每次启动都要：

解压 100MB

再启动 Python

onedir：不用解压 → 启动秒开

onefile]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
<enclosure url="/forum/⚡ 0.5~1 秒

所有依赖都已经在磁盘上

exe 不需要解压任何东西

Windows 直接加载 DLL / PYD

主程序设置运行环境，
设置 sys.path

指向当前目录
./
./_i ..." length="" type="image/jpeg" />      <pubDate>Fri, 06 Feb 2026 15:52:11 +0000</pubDate>
    </item>
    <item>
      <title>180秒中断版</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664674</link>
      <description><![CDATA[elif msg[\&quot;type\&quot;] == \&quot;in60\&quot;:
                    #停止更新界面
                    self._updating = False
                    # 弹窗前
                    self.root.attributes(\'-topmost\', False)
                    alpha_peaks = []
    ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Tue, 27 Jan 2026 00:41:49 +0000</pubDate>
    </item>
    <item>
      <title>隐藏Matplotlib 自带的「工具栏 / 状态栏」</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664673</link>
      <description><![CDATA[底部显示：

一排图标（放大、缩小、保存等）

鼠标移动时显示 (x, y) 坐标

这是 Matplotlib 的 Navigation Toolbar（导航工具栏）
不属于系统窗口，而是 Matplotlib 自己画的

在 创建 figure 之前，加一句：

plt.rcParams[\'toolbar\'] = \'None\' ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Sat, 24 Jan 2026 04:31:33 +0000</pubDate>
    </item>
    <item>
      <title>3D坐标系</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664672</link>
      <description><![CDATA[3D坐标系：
Z（功率）
        ↑
        │
        │
Y（频率）←────→ X（时间）

在Z轴的左边写文字]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Fri, 23 Jan 2026 08:12:19 +0000</pubDate>
    </item>
    <item>
      <title>一个面向开发者的 AI 编程助手工具（CLI / IDE 集成）</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664555</link>
      <description><![CDATA[一、Claude 是什么？

Claude 是 Anthropic（前 OpenAI 成员创立）开发的大语言模型，对标 ChatGPT。

特点：

擅长 长上下文理解（非常适合读大项目代码）

对 复杂逻辑、系统设计、代码重构 理解能力强

强调“安全、可控、可解释”

二、Claude Code 是什么意思？

 ...]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Mon, 12 Jan 2026 02:03:26 +0000</pubDate>
    </item>
    <item>
      <title>程序关闭了但是还有后台进程残存</title>
      <link>http://jinshuangshi.com/forum.php?mod=viewthread&amp;tid=664548</link>
      <description><![CDATA[程序关闭了但是还有后台进程残存]]></description>
      <category>系统开发</category>
      <author>崎山小鹿</author>
      <pubDate>Thu, 01 Jan 2026 16:11:26 +0000</pubDate>
    </item>
  </channel>
</rss>