It’s already week 3. Time flies on internship. Its really not boring either. I sometimes spend +8 hours in the office but I’m never thinking “Oh man when can I leave?” Instead its “shit I’ve been here for 10 hours I should probably leave”.

This week’s work was a continuation of last weeks’. First I wanted to make my tests better by not using “no operation for loops” as delays. It would take a different amount of time on every board even when they were all programmed to the same clock. I realized I needed to use the on board clock to create an accurate delay. And then my university education flashed before my eyes… and I began writing… into google search on how to create a delay function for a PIC32.

#define READ_CORE_TIMER()     _CP0_GET_COUNT() \\to header file

void Delay_us(uint32_t microseconds)
{
uint32_t time;

}