Does my code look alright?


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Cool What about temp and OSC tolerance?

    Hi emtark,

    Make sure you do not put your pic circuit somewhere near the heater of your tank. If the temp changes couple of degrees per half an hour (or per hour), then tolerance (precision) of your OSC will change a lot and will provide a very fast running timer (or vice versa).

    May be you can give a long pause to every hour.

    Just a thought.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2
    emtark's Avatar
    emtark Guest


    Did you find this post helpful? Yes | No

    Default

    Hi,

    the pic and oscillator will be sitting in a project box under the tank, in the drawer. In terms of coding, I can't seem to get the microcode studio to compile this for me. Can someone do a compilation, into ASM for a pic 16f627a, just so i can make sure the programming works. I'll spend tonight trying to figure out why it isn't compiling.

    Hopefully the code will be ok, and I can get the circuit going

    Cheers guys,

    Tim.

    btw: for those interested I have just added the water to the tank and it looks sweet!

  3. #3
    emtark's Avatar
    emtark Guest


    Did you find this post helpful? Yes | No

    Default

    OK I still can't get this to work.. I'm probably going to have to uninstall and reinstall these programs, what exactly do i need to compile this..

    MicroCode Studio complains about ICD or something, and not have PicBasic Pro 2.20 or higher.. where can I get these.

    Also if anyone has another quick once-over of the code can they see any errors or why it may not work.

    Thanks in advance,

    Tim.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Programs and Upgrades can be obtained from MeLabs... www.melabs.com

    Your compiler version is around five years or so old, it would be prudent to upgrade before posting any "my program doesn't work" messages as it's unlikely anyone else has versions that old still installed on their computer to compare against.

  5. #5
    emtark's Avatar
    emtark Guest


    Did you find this post helpful? Yes | No

    Default

    OK I deleted everything and i've completely started again. When I attempt to compile my code, im getting "Macro HPWM?TBW not found in macro file."

    Any help on this is appreciated

    oh btw: I'm using pic 16f627A

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts