New to coding - Please look at my code thanks!


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    So does this look right;

    [html]
    '---------- Options ------------------------------------------------------------

    define OSC 4 'Set oscillator (clk) to 4MHz
    OSCCON = %01100111 'Oscillator Settings
    ANSEL = %000000 'Analog/Digital ports
    INTCON = %00000001 'GPIO External interrupts
    GPIO = %000000 'Set High/Low GPIO.5 -> GPIO.0 (all low)
    TRISIO = %001001 'Set input/output GPIO.5 -> GPIO.0 (GP0 & 3 input)
    [/html]

    Problem it is throwin some errors on it.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    no compilation error here...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    it is saying

    thinks they are symbols
    Attached Images Attached Images  

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by erice1984 View Post
    it is saying

    thinks they are symbols
    Doesn't look like you've got 12F683 selected in the drop down...

  5. #5
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    ya got me, thanks.. I didn't realize that was important, thought it was only used for programming


    All I need to do is make use of interrupts and I think this thing is ready for a try
    Last edited by erice1984; - 5th July 2007 at 19:29.

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. Timer PIC16F57
    By leonel in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 1st July 2005, 08:14

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