Category Archives: Notes

Bitwise operators

& bitwise AND | bitwise OR ^ bitwise XOR ~ 1’s compliment >> right shift << left shift

Posted in Notes | Leave a comment

Tranistor Saturation State

Transistors: base resistor selection for saturation state. Need to know Maximum current load for the device to be turned on. Need to know minimum HFE for transistor. Divide (Maximum Current)/(Minimum HFE) to get the minimum base current Add 30% to … Continue reading

Posted in Notes | Leave a comment

Decimal to two 8 bit numbers

Example: 5813 1.  Divide the number by 256 : 5813/256 =  22.70703125 The whole number is the High Byte 2.  Multiply the whole number * 256 = 22 * 256 =  5632 3.  Subtract that number from the origional for … Continue reading

Posted in Notes | Leave a comment

Pic Timer Calculations

Overflow = 256 for 8 bit, 65536 for 16bit Delay in seconds: Delay = ((Overflow – InitTMR)*prescalar) /(Frequency/4) Value to put in InitTMR – delay is in Seconds InitTMR = Overflow – ((Delay * Frequency)/(4 * Prescalar))

Posted in Notes | Leave a comment