The objective of this video is to teach how to write byte of data to a microcontroller port with typical example usage. The first part of this section of the tutorial showed you how to send or write specific 8 bit of data to the port. Here we show other examples of usage of sending byte of data to a port. For example sending ASCII character, sending numbers, sending and toggling port bits and inserting time delay.
Notes for this video:
To send ASCII character to the microcontroller port, we store the characters that we want to send in an array. Then using a for loop we send each of them one by one to the port. Similarly for numbers we do the same.
A delay in microcontroller programming in C can be implemented in two ways. The first method is to use simple loop directly in the line of code where we want the program to halt for a while. The second method is to create a delay function and use it in the main program.
If you think this was helpful or was found some error or have suggestion, please leave a comment.