C Programming Using CCS Compiler For PIC Microcontrollers
Here is a link for a good tutorial on programming PIC microcontroller in C.
http://harfordhackerspace.org/2010/02/programming-pic-microcontrollers-in-c/
Motor Control using Pulse-Width Modulation (PWM)
In this program, a jumper on Port B directly selects the PWM output. PWM output is only present if a jumper to ground is present on one of the least significant 3 bits of port B.
The program demonstrates the use of control registers to effect PWM operation. One thing to notice is the fact that the program waits for a change on the input pins before selecting a new pulse-width duty cycle and reloading CCPR1.
Wednesday, June 1, 2016
Subscribe to:
Posts (Atom)
Designing Thermal Vias
Enhancing thermal transfer for FR-4 PCBs can be achieved cost-effectively by incorporating thermal vias and plated through-holes (PTH) betwe...
-
A voltage divider resistor network could be used for stepping the monitored voltage down to the range necessary for A/D conversion. A pass...
-
VGS (th) = 1.3 V (Threshold Voltage) Input = 0V ; VGS > VGS(th) ; FET = ON ; Output = 0V Input = 3.3V ; VGS < VGS(th) ; FET =...