Registers for UART, SPI and TWI

This week Dr Shawn has explained to me the internal registers of UART, SPI and TWI. Basically these modules has two registers: status register and data register. Status register, from its name we know that this register contains information about the state of the device. Data register contains the data Read more…

UART in Simulator

This week I am working with UART (Universal asynchronous receiver/transmitter). UART is a device that used for serial communication over a peripheral device serial port or computer. UART takes bytes of data and transmits the individual bits in a sequential fashion. UART consists of a data bus with several data Read more…

SPI down, Uart on the way.

This week I’ve finished the second version of SPI. I basically adjusted the formatting of the codeĀ  to be more professional, easier to read and interpret and better commented. My guide is the code for AEMB, it’s formatting, nomenclature and comments. I’ve come across a bug in SPI. Apparantely the Read more…

UART Rx

This week I finished up the Rx portion of the UART device that follows the RS232 protocol. I was able to implement it onto the Spartan3 board. When I first tested it, I was a little confused because I didnt know that the letters were represented in ASCII code. My Read more…

Week 2 : UART & TCPIP Stack

In order to allow communication between PIC microcontroller and PC, UART communication needs to be set up.  I wrote a program to send data byte from PIC microcontroller to PC which the output was displayed through Minicom, a hyper terminal for linux. At first, the displayed output was gibberish. This Read more…