Month: June 2011

  • Great link for calculating

    Great link for calculating

    PIC Timer Just play with the slider to obtain the frequency you require then input the register values it generates into your source code!

  • Generating servo pulses with TMR0

    I successfully wrote and tested code to generate 50 hz pulses to send position information to servos.   The next step will be to use the interrupt to toggle a pin high for 1-2 ms then back to low for 18-19 ms. The test software is as follows: ; ;16F876 Micro Serial Communications, 2 servo, pwm…

  • 16F876 RS-232 working as intended

    The heart and soul of my airsoft turret project will be getting the PC to send serial data to the microcontroller that will control the pan, tilt, and rate of fire of the airsoft gun.  Today I successfully setup the 16F876 for async communication with my PC. The code below configures porta for digital I/O…