This is my second week in AESTE. This week I continue to workout the USB function in PIC32 starter kit. Before that, I had studied the USB theory in order to know how it works and how the USB device can communication with the USB host(PC). There are 3 stages: dynamic detection, enumeration and configuration. Dynamic detection is the recognition of a change in the state of a USB port. Enumeration is the process of assigning a unique address to a newly attached device and directly follows the device detection. Configuration is the process of determining a device’s capabilities by an exchange of device requests. More detail here.

Up next, I will do some experiments and plot a graph to know which factors that will make the PIC32 USB Keyboard type the character faster. There are few factors that may affect the speed of the keyboard typing, which are USB buffer size and CPU frequency.

Dr Shawn told me to write a C program to run in terminal. This is to test the time(ms) needed for a PIC32 starter kit to type a single character. This process was repeated 50 times by typing 100-1000 characters with different buffer size(8,16 and 32) and different CPU frequency. When I started to test the typing speed, Dr Shawn noticed the exact time cannot be viewed clearly by using millisecond as the measuring unit. Therefore, I had changed the C program to measure the time in microsecond which is more accurate.

As an intern in AESTE, there are more I need to learn from Dr Shawn. Thanks a lot to Dr Shawn for always advises me in my mistakes and make me become better. I will never give up and I hope I can contribute something to AESTE before end of internship.


0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.