Algorithm of 32-bit Data Transmission Among Microcontrollers Through an 8-bit Port

Midriem Mirdanies, Hendri Maja Saputra, Estiko Rijanto

Abstract

This paper proposes an algorithm for 32-bit data transmission among microcontrollers through one 8-bit port. This method was motivated by a need to overcome limitations of microcontroller I/O as well as to fulfill the requirement of data transmission which is more than 10 bits. In this paper, the use of an 8-bit port has been optimized for 32-bit data transmission using unsigned long integer, long integer, and float types. Thirty-two bit data is extracted into
binary number, then sent through a series of 8-bit ports by transmitter microcontroller. At receiver microcontroller, the binary data received through 8-bit port is reconverted into 32 bits with the same data type. The algorithm has been implemented and tested using C language in ATMega32A microcontroller. Experiments have been done using two microcontrollers as well as four microcontrollers in the parallel, tree, and series connections. Based on the experiments, it is known that the data transmitted can be accurately received without data loss. Maximum transmission times among two microcontrollers for unsigned long integer, long integer, and float are 630 μs, 1,880 μs, and 7,830 μs, respectively. Maximum transmission times using four microcontrollers in parallel connection are the same as those using two microcontrollers, while in series connection are 1,930 μs for unsigned long integer, 5,640 μs for long integer, and 23,540 μs for float. The maximum transmission times of tree connection is close to those of the parallel connection. These results prove that the algorithm works well.




Keywords


transmission algorithm; 32-bit data; data transmission; 8-bit port; microcontroller; C language

Full Text:

PDF


References


Roni Permana Saputra et al., "DC brushless motor control design and preliminary testing for independent 4-wheel drive REV-11 robotic platform," Journal of Mechatronics, Electrical Power, and Vehicular Technology, vol. 2, no. 2, Dec, 2011, pp. 85-94. crossref

Midriem Mirdanies and Roni Permana Saputra, "Control system of solar tracking mechanism using combination of astronomy algorithm and light sensor," in Seminar Nasional Rekayasa Energi, Mekatronik, dan Teknologi Kendaraan (RIMTEK 2013), Bandung, 2013, pp. 213-222.

M. Raghupathi Reddy, et al., "Touch screen and Zigbee based wireless communication assistant," International Journal of Combined Research & Development (IJCRD), vol. 1, no. 4, Aug 2013, pp. 6-10.

Dhawan S Thakur and Aditi Sharma, "Voice recognition wireless home automation system based on Zigbee," IOSR Journal of Electronics and Communication Engineering (IOSR-JECE), vol. 6, no. 1, June, 2013, pp. 65-75.

Marc Leeman, et al., "Bridging the educational gap in embedded systems curricula: Developing an e-commerce audio streaming system," in Ninth Annual IEEE International Conference and Workshop on the Engineering of Computer-Based Systems, Lund, 2002, pp. 211-220. crossref

Munja Solanke et al., "Automatic override of speed and brake control and ABS system," International Journal of Thesis Projects and Dissertations (IJTPD), vol. 2, no. 2, June, 2014, pp. 04-08.

Paul W Prickett, et al., "A microcontroller-based end milling cutter monitoring and management system," The International Journal of Advanced Manufacturing Technology, vol. 55, no. 9, Aug, 2011, pp. 855–867. crossref

A Kutlu, "MicroLab: A Web-based Multi-user Remote Microcontroller Laboratory for Engineering Education*," International Journal of Engineering Education, 2004, pp. 879-885.

Mikro Elektronika, "PORT Expander Manual," Zemun, Manual Book 2014.

C Pozrikidis, Introduction to C++ Programming and Graphics, 1st ed. University of California, San Diego: Springer Science+Business Media, LLC, 2007.

Atmel. (2015, Oct.) ATmega32A 8-bit AVR microcontroller Datasheet Complete. [Online]. http://www.atmel.com/images/atmel-8155-8-bit-microcontroller-avr-atmega32a_datasheet.pdf

IEEE, "IEEE standard Floating-Point Arithmetic," IEEE Std 754-2008, Aug, 2008, pp. 1-58. crossref

Microsoft. (2014) Floating point types. [Online]. https://msdn.microsoft.com/en-us/library/aa691146%28v=vs.71%29.aspx


Article Metrics

Metrics Loading ...

Metrics powered by PLOS ALM

Refbacks

  • There are currently no refbacks.




Copyright (c) 2015 Journal of Mechatronics, Electrical Power, and Vehicular Technology

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.