微芯片PIC项目 [英] microchip PIC project

查看:114
本文介绍了微芯片PIC项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我使用 PIC控制器启动了一个新项目

想法是编程它通过USB与基于C#的GUI或任何其他类型的程序leng

我的意思是用户将网格连接8输入到8输出并使用菜单或类似于右边的东西点击菜单添加函数outputX = function(inputY)

函数可以包含有限命令的数量,如WHILE IF FOR和XOR等。

i有一个想法如何转换从GUI到C程序的代码自己没有直接共享图书馆和类似的东西

我的想法是使用.txt而不是使用这张表进行模拟(我忘了提它但是它早期关注编写特定功能)和C程序将自动与芯片通信



我需要你的建议:编写芯片代码的简单方法是什么?

一旦我实现专业版gress我会发布我的代码和GUI的照片

Hello everyone
I have started a new project using PIC controller
the idea is to program it through USB with a GUI based on C# or any other type of program leng
what i mean is that the user will a grid the connects 8 input to 8 output and using a menu or something similar to the right click menu to add function outputX=function(inputY)
the function can contain amount of finite commands like WHILE IF FOR AND XOR etc.
i had an idea how to convert the code from the GUI to the C program it self without directly sharing librarys and stuff like that
my idea is to with to .txt and than use this sheet for the simulation (i forgot to mention it but it to early for to concern writing that specific feature ) and the C program that will communicate with the chip it self

i need your advise : what is the easy and best way to write the code for the chip ?
once i achieve progress i''ll post my code and photos of the GUI

推荐答案

你的项目看起来雄心勃勃: C#应用程序应该将每个函数(实际上它们看起来更像程序)转换为 PIC 可以理解的一组语句。那就是你必须在 PC C#)一侧和一个翻译器上实现一个编译器(到一个中间语言) (能够理解中间语言)在 PIC 方面(你还要编写通信代码)。

虽然任务不是很容易,你应该考虑 PIC 微控制器通常没有大量的 RAM
Your project looks ambitious: the C# application should convert each function (actually they looks more similar to a programs) into a set of statements the PIC can understand. That is you have to implement a compiler (to an intermediate language) on the PC (C#) side and an interpreter (able to understand the intermediate language) on the PIC side (you have also to code the communication).
While the task isn''t easy by itself, you should consider that PIC microcontrollers usually have not large amounts of RAM.


我已将我对该类型项目的看法更改为更原始的形式

所以当时问题已解决...

很快见到你修改后的项目:)
i had change my view about that type of project to a more primitive form of it
so for the time PROBLEM SOLVED ...
see you soon with the modified project :)


这篇关于微芯片PIC项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆