Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About huckster505

  • Rank
  1. Walshy, This is a fragment of program for a PIC16F873 which worked well. I hope you can get what you need from it. Huck //************************************************************* // * // Interface to Joystick * // * //************************************************************* // 7 Feb 2007 changed data conversion to prevent spillover top and bottom #include <system.h> #include "adc.inc" #pragma DATA 0x2007, _HS_OSC & _WDT_OFF & _LVP_OFF & _BODEN_OFF & _CPD_OFF & _PWRTE_ON #pragma CLOCK_FREQ 10000000
  2. Dear Myrmidon, Notice that after your time delay you set the port B conditions and the program returns to the top...where they are immediately reset to initial condition. If you add another 1 second delay at end of while block, the LED block will behave as you desire (I think) Good Luck and Enjoy Huck
  3. sri about that.. Using Sourceboost Ver. 6.3, boostC also ref. edited first post. tnx again.
  4. huckster505


    I believe that adc.h or adc.inc needs to be modified to resolve use of adc_on or adc_go bitname. adc.inc uses adc_on and causes error on build. Modified adc.inc adc_on=1; to set_bit(adcon0,ADON); all is again happy
  5. Dave, Using 6.11 Regards, Huck
  6. Gentlemen; The program fragment below illustrates what I believe to be a bug. It is intended to drive an LED bargraph, but always produces a dark display. When I replaced the variable governing the shift in the portb assignment, the display works properly; and the .casm results show this. However, the portc assignment results in assembly which will shift the temporary variable Con_Temp_Var85 the proper number of times with the count variable "fuel" tracked in "W". When "W" reaches 0, the value in "W" (now 0) is moved to portc. C program fragment: disp = 0x01; // turn on bit
  • Create New...