uart

2019-2020-1 20175307 20175308 20175319 实验二 固件程序设计

好久不见. 提交于 2019-12-04 16:36:35
2019-2020-1 20175307 20175308 20175319 实验二 固件程序设计 小组成员 20175307高士淳 20175308杨元 20175319江野 实验步骤 1.MDK 实验要求 0.注意不经老师允许不准烧写自己修改的代码 1.三人一组 2.参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.1-1.5安装MDK,JLink驱动,注意,要用系统管理员身分运行uVision4,破解MDK(破解程序中target一定选ARM) 3.提交破解程序中产生LIC的截图 4.提交破解成功的截图 实验步骤 下载并运行安装程序,安装MDK MDK安装结束页面,点击安装ULINK驱动 Ulink安装结束后自动退出,安装结束 运行uVision4,点击 文件>>许可证管理 ,复制CID 运行keil-MDK注册机,粘贴CID并选择 ARM ,点击 generate 生成 LIC 将生成的LIC复制到keil4中的LIC输入框中,点击 Add LIC ,破解完成。 2.LED 实验要求 0.注意不经老师允许不准烧写自己修改的代码 1.参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.4” KEIL-MDK 中添加 Z32 SC-000 芯片库,提交安装截图 2.参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.9”完成LED实验

2019-2020-1 20175208 20175218 20175230 实验二 固件程序设计

不想你离开。 提交于 2019-12-04 15:55:24
2019-2020-1 20175208 20175218 20175230 实验二 固件程序设计 一、实验内容 1、固件程序设计-1-MDK 注意不经老师允许不准烧写自己修改的代码 三人一组 参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.1-1.5安装MDK,JLink驱动,注意,要用系统管理员身分运行uVision4,破解MDK(破解程序中target一定选ARM) 提交破解程序中产生LIC的截图 提交破解成功的截图 2、固件程序设计-2-LED 注意不经老师允许不准烧写自己修改的代码 参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.4” KEIL-MDK 中添加 Z32 SC-000 芯片库,提交安装截图 参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.9”完成LED实验,注意“打开Z32的电源开关前,按住Reboot按键不放,两次打开电源开关,Z32即可被电脑识别,进行下载调试。提交运行结果截图 实验报告中分析代码 3、固件程序设计-3-UART 注意不经老师允许不准烧写自己修改的代码 参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.4” KEIL-MDK 中添加 Z32 SC-000 芯片库,提交安装截图 参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.0

RS232 (UART) on STM32F4-Discovery (STM32F429ZIT6) with HAL library?

不问归期 提交于 2019-12-04 10:10:28
Background Here is some of my background so that your guy could know what related knowledge I have or I don't have. I'm totally a newbie of this kind of embedded system. And I don't really know anything about electronics, I'm a pure software guy. My only experience of embedded system is Raspberry Pi, which is quite different from STM32F4 Discovery. I could implement a UART read / write programming by using standard Linux C library on Raspberry Pi, which is connected to a PC with an USB-to-RS232 adapter with a voltage converter IC. My Device and development environment An STM32F429I-DISCO board

Unable to open UART port on Windows IoT with Raspberry Pi 3

心不动则不痛 提交于 2019-12-04 06:02:25
问题 I have null in the serial port after I open the SerialDevice in C# on Windows IoT Core 10 running on Raspberry Pi 3. Here is the code: string aqs = SerialDevice.GetDeviceSelector(); DeviceInformationCollection devices = await DeviceInformation.FindAllAsync(aqs); List<DeviceInformation> list = devices.ToList(); DeviceInformation di = list.First(); serialPort = await SerialDevice.FromIdAsync(di.Id); serialPort is null . di.Id equals: Id "\\\\?\\ACPI#BCM2836#0#{86e0d1e0-8089-11d0-9ce4

UART controller or RS232 controller? Is UART a general word?

别来无恙 提交于 2019-12-03 20:44:48
I have a question regarding UART controller. Is UART controller a general name? i mean that if we use RS-232 protocol, we should name this UART controller, RS-232 controller and if we use RS-485 as protocol, we should call this UART controller, a RS-485 controller and so on? I've noticed that we generally say network controller (protocols:Ethernet, token ring,ATM,..) and if the protocol implemented is Ethernet for example, we say Ethernet controller. Is it a correct comparison between UART controller and Network controller meaing that they both are general names? Thanks a lot for your

quartus使用串口IP模块

烈酒焚心 提交于 2019-12-03 11:40:30
在quartus平台中使用串口模块的IP,需要使用到platform designer软件来实现。 1、在quartus界面调出IP Catalog界面。 2、在IP catalog中搜索UART,找到RS2323模块,并双击打开,选择合适的路径和存放。 3、使用该模块若不搭建nios软核,则使用streaming。 在右上角电机Block Symbol或者在菜单选择View->Block Symbol打开模块符号。 4、串口配置了波特率,其自动配置的参数与时钟有关,因此需要加入时钟模块,告知系统输入时钟为多少。 操作如下: 5、打开系统连接的界面,为其添加时钟输入模块。 6、在IP搜索栏搜索clock,双击选择的模块添加时钟模块,输入模块。 7、根据板载资源,设置时钟的参考时钟。 8、连接时钟模块和串口模块的clk和reset。 9、点击Generate HDL生成模块。 10、在quartus中添加生成的sys系统。 11、从platform designer生成模块实例将实例拷贝到添加到quartus的顶层文件中,添加写数据和读数据的时序。 这里只测试一下串口发送数据的功能,接收数据的操作基本是一样的。 12、在platform designer查看串口模块发送数据的时序。 同理在这里一样可以查看到接收数据的时序。 需要注意的是,时序中的数据其实是在to_uart

How to Read Data from Serial Port in R

时光怂恿深爱的人放手 提交于 2019-12-03 10:08:30
问题 I'm wanting to plot live data from the serial port. I figured R would be a good tool for the job. I'm stumbling on trying to read data from the serial port (COM4). I've verified the data is coming in through terra term (and close the session before trying R), but I can't seem to get anything in R. I've checked a few places, including these threads: How to invoke script that uses scan() on Windows? How to include interactive input in script to be run from the command line I've also found this

contiki 开发日记之串口开发

前提是你 提交于 2019-12-03 08:34:46
cc2430平台有2个串口uart0(P0_2,P0_3) 和uart1(P0_4,P0_5) 在contiki开发过程中因为牵扯到步骤调试这里有 platform/sensinode-debug.h文件。 里面的putstring即相当于printf在其他编译器中控制台输出功能。 在加入头文件后即可实现printf函数的使用。 其中注意platform/contiki-conf.h头文件。此文件是配置contiki的各种资源。 如果你在使用uart0_init()会报错的情况下,需要设置里面的资源,如下: /* * UARTs: 1=>Enabled, 0=>Disabled. Default: Both Disabled (see uart.h) * Disabling UART0 saves ~200 bytes of CODE. * Disabling UART1 saves ~500 bytes of CODE but also disables all debugging * output. Should be used when nodes are meant to run on batteries * * On N740, by enabling UART1, you are also enabling an ugly hack which aims * to

Nordic SDK printing to serial

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an Arduino device that runs on the Nordic SDK (it's a Red Bear Lab BLE nano). I want to be able to do a serial print into GTKTerm to be able to debug what is going on in my code. To do this I have the following code: /* * Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is confidential property of Nordic Semiconductor. The use, * copying, transfer or disclosure of such information is prohibited except by express written * agreement with Nordic Semiconductor. * */ /** * @brief BLE Heart

FPGA--UART串口通信

心不动则不痛 提交于 2019-12-03 01:32:25
一,串口相关知识 UART 通信 UART 首先将接收到的并行数据转换成串行数据来传输。消息帧从一个低位起始位开始,后面是 7 个或 8 个数据位,一个可用的奇偶位和一个或几个高位停止位。接收器发现开始位时它就知道数据准备发送,并尝试与发送器时钟频率同步。如果选择了奇偶校验,UART 就在数据位后面加上奇偶位。奇偶位可用来帮助错误校验。在接收过程中, UART 从消 息帧中去掉起始位和结束位,对进来的字节进行奇偶校验,并将数据字节从串行转换成并行。UART 传输时序如下图所示 : 串口通讯4根线:Vcc ,Gnd , Tx , Rx;TX-TTL发送端;RX--TTL接收端; 比特率:9600bps 就是每秒中传输9600bit; 串行通信的分类: 1、按照数据传送方向,分为: 单工:数据传输只支持数据在一个方向上传输; 半双工:允许数据在两个方向上传输。但是,在某一时刻,只允许数据在一个方向上传输,它实际上是一种切换方向的单工通信;它不需要独立的接收端和发送端,两者可以合并一起使用一个端口。 全双工:允许数据同时在两个方向上传输。因此,全双工通信是两个单工通信方式的结合,需要独立的接收端和发送端。 2、 按照通信方式 ,分为: 同步通信:带时钟同步信号传输。比如:SPI,IIC通信接口。 异步通信:不带时钟同步信号。比如:UART(通用异步收发器),单总线。 在同步通讯中