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…

SPI ADC with PIC32 Harmony

This week I continue doing emulating ADC based on the proper protocol of SPI ADC from Microchip – MCP3204/3208 From the document table 5-1: state that to initiate a ADC read for specific channel, Master SPI will first send 4bit of ‘Control Bit Selection’ to read the data of the particular Read more…

Emulating ADC

This week I did some programming on PIC32 ADC and SPI functions. The goal is to transfer ADC value from PIC through SPI to a FPGA chip. FPGA chip will act as a ‘Master’ while PIC32 will be the ‘Slave’. I will be coding for PIC32 only therefore the following Read more…

Quadcopter Remote Eavesdropping

Almost all of the week was spent trying to read the SPI bus on the Quadcopter remote control to try to understand as well as decipher the communication protocols and the reading addresses for the Quadcopter. There were some useful reading from the Quadcopter remote which are discussed in detail Read more…

Week 3: MSPI Driver

There goes another week. Task for this week is quite similar to last week’s, I was asked to write a MSPI driver. Before I started, I had no idea what it is and what does it do, so I was waiting for my supervisor to fill me up with all Read more…

http://www.sxc.hu/photo/1159613

Week 0011

Miracle! The design we’ve been working on in the previous week works perfectly! Honestly speaking the main merit goes to my colleagues, as their part was more crucial (mine was just a wishbone master sending some 8-bit combinations through switches), but still, I feel relieved. Funny, I’m pretty sure I Read more…

My 2nd week at AESTE

They say the first week is always the hardest. At the start of my second week, I was supposed to get the computer to read and write into an SD card by programming the PIC18F8722. After being on the receiving end of the massive scolding last week, I was being Read more…

Week 5: SPI done!

So it has been 2 weeks since the last time I’ve blogged and a lot have happened since then. Today we just finished the design and testing of the SPI peripheral device. That includes an SPI Master and slave that are wishbone compatible and a dummy master to test those Read more…