当前位置:网站首页>Simulation Keil et vspd
Simulation Keil et vspd
2022-06-22 15:00:00 【Haut de la page】
J'ai lu beaucoup d'articles,Tout ce qui est écrit est très simple(C'est très simple.:)).Donnez un tutoriel plus détaillé.
1. UtilisationVSPDOui.PCLes deux ports série virtuels sont connectés.Comme vous pouvez le voir, je vaisCOM2 EtCOM3Connectez - vous..Cliquez surAddr pair.

2. Je vois.Virtual portsConnectez les deux ports série virtuels ensemble.
3.Le port série virtuel est prêt.Commencez par déboguer en entrant directement la commande.On ouvre.KEIL MDKDe,En mode Simulation.PointDEBUG.InCOMMANDEntrée série:MODE COM2 38400, 0, 8, 1

Description:
MODELa commande est utilisée pour définir les paramètres du port série de l'ordinateur lié.L'utilisation de base est:
MODE COMx baudrate, parity, databits, stopbits
Parmi eux:
COMx(x = 1,2,…)Numéro de port série représentant l'ordinateur;
baudrate Taux Baud représentant le port série ;parity Représente la méthode de vérification ;
databits Représente la longueur du BIT de données ;
stopbits Représente la longueur du BIT d'arrêt .
Par exemple:MODE COM1 9600, n, 8, 1
Configuration du port série1.Taux de Baud9 600,Pas de bit de contrôle,8Données binaires,1Bit stop bit.
MODE COM2 19200, 1, 8, 1
Configuration du port série2.Taux de Baud19 200,Contrôle impair,8Données binaires,1Bit stop bit.
4、 Après le retour du point ,Re - Input ASSIGN COM2 <S1IN> S1OUT

Description:
COMx Port série représentant l'ordinateur ,C'est possible.COM1、COM2、COM3Ou autre;
inregEtoutreg Port série représentant un micro - ordinateur à puce unique . Pour un micro - ordinateur à puce simple ordinaire avec un seul port série ,C'est - à - dire:SINEtSOUT; Pour un micro - ordinateur à puce unique avec deux ports série ou plus ,C'est - à - dire:SnINEtSnOUT(n=0,1,… C'est - à - dire le numéro de port série du micro - ordinateur à puce unique ).
Par exemple:ASSIGN COM1 < SIN > SOUT
Connectez le port série de l'ordinateur 1 Port série lié à un micro - ordinateur à puce unique ( Pour un micro - ordinateur à puce unique avec un seul port série ).
ASSIGN COM2 < SIN > SOUT
Connectez le port série de l'ordinateur 2 Port série lié à un micro - ordinateur à puce unique 0( Pour un micro - ordinateur à puce unique avec plusieurs ports série , Notez la position du numéro de port série ).
Il est important de noter que, Les parenthèses du paramètre ne peuvent pas être omises ,Etoutreg Il n'y a pas de parenthèses .
5、Puis déboguer le programme. Le port série est visible COM3 Port série imprimé 1Les données de.

边栏推荐
- 利用图片实现APP元素定位sikulix
- Network address translation nat
- Nested assignment of D
- Differences and performance of array, list, ArrayList, directory and LinkedList in C #
- What is the value of a website? Why build an independent station
- Fluentd is easy to get started. Combined with the rainbow plug-in market, log collection is faster
- 山东泰安“6·21”燃气爆炸事故后续:全面排查整治餐饮场所燃气安全隐患
- [Software Engineering] planning and project management
- Bochs software usage record
- Biden signe deux nouvelles lois visant à renforcer la cybersécurité du Gouvernement
猜你喜欢

How location coding (PE) works in transformers

UE4 obtains local files through blueprints

看完这篇 教你玩转渗透测试靶机Vulnhub——DriftingBlues-5
![[Software Engineering] acquire requirements](/img/52/01320eee5e519910a62f48d604b180.png)
[Software Engineering] acquire requirements

个人免签支付方案推荐

Deadlock found when trying to get lock; Try restarting transaction

数据采集之:巧用布隆过滤器提取数据摘要

轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
![[PR] basic process](/img/e6/13a5703cfb8e5c51ed06fe9b0d9485.png)
[PR] basic process

Madcap flare 2022, documentation in language or format
随机推荐
Front and back management system of dessert beverage store based on SSM framework dessert mall cake store [source code + database]
Verification code is the natural enemy of automation? See how the great God solved it
全新混合架构iFormer!将卷积和最大池化灵活移植到Transformer
[Software Engineering] planning and project management
flutter video_ Player monitors and automatically plays the next song
Struggle, programmer chapter 45 tenderness is like water and a good time is like a dream
[graduation project] Research on emotion analysis based on semi supervised learning and integrated learning
Is the encryption market a "natural disaster" or a "man-made disaster" in the cold winter?
11 method reference and constructor application
[untitled]
How to compare the size of two dates in unity and C #
Nested assignment of D
U++ 迭代 排序 查询 学习笔记
PowerPoint tutorial, how to add watermarks in PowerPoint?
推动制造业高效增长,用友U9 cloud不断精进背后的密码
一文彻底弄懂单例模式(Singleton)
大会倒计时 | 亚马逊云科技创新大会邀您一起构建AI新引擎 !
After reading this article, I will teach you to play with the penetration test target vulnhub - drivetingblues-5
At 19:00 this Thursday evening, the 7th live broadcast of battle code Pioneer - how third-party application developers contribute to open source
Software architecture