基于AVR和ARM架构的曼彻斯特编解码器在信息传输系统中的实现

А. V. Sadchenko, O. Kushnirenko, N. Kushnirenko, O. Sadchenko, O. Troyanskiy
{"title":"基于AVR和ARM架构的曼彻斯特编解码器在信息传输系统中的实现","authors":"А. V. Sadchenko, O. Kushnirenko, N. Kushnirenko, O. Sadchenko, O. Troyanskiy","doi":"10.15222/tkea2022.4-6.17","DOIUrl":null,"url":null,"abstract":"ATmega series AVR microcontrollers (e.g., ATmega8A or ATmega16A) and ARM microcontrollers with a Cortex M3 core (e.g., STM32F103С8T6) are among the most popular controllers used in solving engineering problems related to servicing various fire and security alarm sensors and devices for metering household and industrial power consumption. At the same time, to transfer the data via a twisted pair or AC voltage network, it needs to be encoded using Manchester 1 or Manchester 2 code, and said AVR and ARM microcontroller units (MCU) contain no hardware encoder and decoder for the Manchester code.\nThe study aimed at solving the engineering problem of implementing the codec (encoder-decoder) of the Manchester code based on the hardware interfaces of low-performance microcontrollers.\nThe direct implementation of the encoding algorithm with the Manchester code using a purely software-driven approach significantly decreases the information transfer rate. At the same time, among the hardware interfaces of the MCU, there is always a serial universal asynchronous data transceiver (UART). However, the UART data transfer protocol is not generally suitable for Manchester encoding and, therefore, needs to be software adapted.\nIn order to adapt the UART protocol to the conditions of Manchester encoding, the 8N1 mode is selected at the hardware level, which means 8 data bits, 1 stop and 1 start bit. The software implementation of the encoder consists in the fact that out of the total possible volume of 256 code combinations, 16 are selected that satisfy the Manchester 2 code, while the start and stop conditions for data bytes transmitted in a row also satisfy the structure of the Manchester code.\nTo maximize the efficiency of the program code, all code words are stored in the memory of the MCU in such a way that their serial number corresponds to the decimal interpretation of 4 bits of the input data. The decoding of the received data is also performed as efficiently as possible using the decoding table.\nThe implementation of the software and hardware codec of the Manchester code significantly expands the scope of popular AVR and ARM microcontrollers and reduces the cost of the finished product by excluding any additional units that perform the function of encoding and decoding the Manchester code.","PeriodicalId":231412,"journal":{"name":"Технология и конструирование в электронной аппаратуре","volume":"39 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Implementation of Manchester codec for information transmission systems based on AVR and ARM architecture microcontrollers\",\"authors\":\"А. V. Sadchenko, O. Kushnirenko, N. Kushnirenko, O. Sadchenko, O. Troyanskiy\",\"doi\":\"10.15222/tkea2022.4-6.17\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"ATmega series AVR microcontrollers (e.g., ATmega8A or ATmega16A) and ARM microcontrollers with a Cortex M3 core (e.g., STM32F103С8T6) are among the most popular controllers used in solving engineering problems related to servicing various fire and security alarm sensors and devices for metering household and industrial power consumption. At the same time, to transfer the data via a twisted pair or AC voltage network, it needs to be encoded using Manchester 1 or Manchester 2 code, and said AVR and ARM microcontroller units (MCU) contain no hardware encoder and decoder for the Manchester code.\\nThe study aimed at solving the engineering problem of implementing the codec (encoder-decoder) of the Manchester code based on the hardware interfaces of low-performance microcontrollers.\\nThe direct implementation of the encoding algorithm with the Manchester code using a purely software-driven approach significantly decreases the information transfer rate. At the same time, among the hardware interfaces of the MCU, there is always a serial universal asynchronous data transceiver (UART). However, the UART data transfer protocol is not generally suitable for Manchester encoding and, therefore, needs to be software adapted.\\nIn order to adapt the UART protocol to the conditions of Manchester encoding, the 8N1 mode is selected at the hardware level, which means 8 data bits, 1 stop and 1 start bit. The software implementation of the encoder consists in the fact that out of the total possible volume of 256 code combinations, 16 are selected that satisfy the Manchester 2 code, while the start and stop conditions for data bytes transmitted in a row also satisfy the structure of the Manchester code.\\nTo maximize the efficiency of the program code, all code words are stored in the memory of the MCU in such a way that their serial number corresponds to the decimal interpretation of 4 bits of the input data. The decoding of the received data is also performed as efficiently as possible using the decoding table.\\nThe implementation of the software and hardware codec of the Manchester code significantly expands the scope of popular AVR and ARM microcontrollers and reduces the cost of the finished product by excluding any additional units that perform the function of encoding and decoding the Manchester code.\",\"PeriodicalId\":231412,\"journal\":{\"name\":\"Технология и конструирование в электронной аппаратуре\",\"volume\":\"39 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1900-01-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Технология и конструирование в электронной аппаратуре\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.15222/tkea2022.4-6.17\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Технология и конструирование в электронной аппаратуре","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.15222/tkea2022.4-6.17","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

ATmega系列AVR微控制器(例如,ATmega8A或ATmega16A)和带有Cortex M3核心的ARM微控制器(例如,STM32F103С8T6)是用于解决与服务各种火灾和安全报警传感器和设备相关的工程问题的最受欢迎的控制器,用于计量家庭和工业功耗。同时,为了通过双绞线或交流电压网络传输数据,需要使用曼彻斯特1或曼彻斯特2码进行编码,并且AVR和ARM微控制器单元(MCU)不包含曼彻斯特码的硬件编码器和解码器。本研究旨在解决基于低性能微控制器硬件接口实现曼彻斯特码编解码器(编码器-解码器)的工程问题。使用纯软件驱动的方法直接实现曼彻斯特码的编码算法显著降低了信息传输速率。同时,在单片机的硬件接口中,总是有一个串行通用异步数据收发器(UART)。然而,UART数据传输协议通常不适合曼彻斯特编码,因此需要软件调整。为了使UART协议适应曼彻斯特编码的条件,在硬件层选择8N1模式,即8个数据位,1个停止位和1个开始位。该编码器的软件实现在于,在256个可能的编码组合总量中,选择16个满足曼切斯特2码,而一行传输的数据字节的开始和停止条件也满足曼切斯特码的结构。为了最大限度地提高程序代码的效率,所有码字都以这样一种方式存储在MCU的存储器中,即它们的序列号对应于输入数据的4位的十进制解释。接收到的数据的解码也使用解码表尽可能高效地执行。曼彻斯特码的软硬件编解码器的实现大大扩展了流行的AVR和ARM微控制器的范围,并且通过排除执行曼彻斯特码编码和解码功能的任何额外单元,降低了成品的成本。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Implementation of Manchester codec for information transmission systems based on AVR and ARM architecture microcontrollers
ATmega series AVR microcontrollers (e.g., ATmega8A or ATmega16A) and ARM microcontrollers with a Cortex M3 core (e.g., STM32F103С8T6) are among the most popular controllers used in solving engineering problems related to servicing various fire and security alarm sensors and devices for metering household and industrial power consumption. At the same time, to transfer the data via a twisted pair or AC voltage network, it needs to be encoded using Manchester 1 or Manchester 2 code, and said AVR and ARM microcontroller units (MCU) contain no hardware encoder and decoder for the Manchester code. The study aimed at solving the engineering problem of implementing the codec (encoder-decoder) of the Manchester code based on the hardware interfaces of low-performance microcontrollers. The direct implementation of the encoding algorithm with the Manchester code using a purely software-driven approach significantly decreases the information transfer rate. At the same time, among the hardware interfaces of the MCU, there is always a serial universal asynchronous data transceiver (UART). However, the UART data transfer protocol is not generally suitable for Manchester encoding and, therefore, needs to be software adapted. In order to adapt the UART protocol to the conditions of Manchester encoding, the 8N1 mode is selected at the hardware level, which means 8 data bits, 1 stop and 1 start bit. The software implementation of the encoder consists in the fact that out of the total possible volume of 256 code combinations, 16 are selected that satisfy the Manchester 2 code, while the start and stop conditions for data bytes transmitted in a row also satisfy the structure of the Manchester code. To maximize the efficiency of the program code, all code words are stored in the memory of the MCU in such a way that their serial number corresponds to the decimal interpretation of 4 bits of the input data. The decoding of the received data is also performed as efficiently as possible using the decoding table. The implementation of the software and hardware codec of the Manchester code significantly expands the scope of popular AVR and ARM microcontrollers and reduces the cost of the finished product by excluding any additional units that perform the function of encoding and decoding the Manchester code.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Changes in the characteristics of silicon photovoltaic cells of solar arrays after current overloads Electrical conductivity of thermosensitive glass-ceramics based on nanosized vanadium dioxide Resistive humidity sensors based on nanocellulose films for biodegradable electronics Synchronization of pulsed and continuous-wave IMPATT oscillators in the millimeter wavelength range. Part 2. Stabilizing microwave parameters of synchronized generators Matrix calculation of correlation characteristics based on spectral methods
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1