16F636 Picbasic pro 2.60 / MPLAB 8.43 / Windows 7


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2010
    Posts
    2

    Default 16F636 Picbasic pro 2.60 / MPLAB 8.43 / Windows 7

    Hi, I think I'm doing something silly:

    "
    TRISC = %00000000 ' Set PORTC to all output
    TRISA = %11111111 ' Set PORTA to all inputs

    mainloop: Pause 250
    PortC.0=0
    PortC.1=0
    PortC.2=0

    Pause 250
    PortC.0=1
    Pause 250
    PortC.1=1
    Pause 250
    PortC.2=1
    Goto mainloop

    End
    "

    I expect all the PortC ouputs to turn off, and then ouput 0, output 1, and output to turn on in series.... until they're all on.

    In practice the outputs turn on in series.... but turn off the other outputs i.e. only one output is on at a time.

    I've tried setting things like 'CMCON = 7' but this gives "ERROR: Unable to execute mpasmwin.Error[113] C:\PBP\PBPPIC14.LIB 449 : Symbol not previously defined (CMCON)
    Error[113] C:\PBP\PBPPIC14.LIB 463 : Symbol not previously defined (CMCON)
    Error[113] C:\PBP\PBPPIC14.LIB 477 : Symbol not previously defined (CMCON)
    Error[113] C:\PBP\PBPPIC14.LIB 491 : Symbol not previously defined (CMCON)
    Error[113] C:\PBP\PBPPIC14.LIB 899 : Symbol not previously defined (CMCON)
    Halting build on first failure as requested.
    "

    Any help would be appreciated. Thanks.

  2. #2
    Join Date
    Feb 2010
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    Fixed.

    CMCON0=7

    Thanks.

Similar Threads

  1. Conversion from picbasic pro to hex for mplab
    By pr2don in forum Forum Requests
    Replies: 5
    Last Post: - 10th October 2010, 19:53
  2. picbasic pro and mplab IDE
    By soelinnhtet in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st March 2010, 08:57
  3. Windows 7 / MPLab 8.2 and later
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 3rd February 2010, 23:50
  4. Replies: 3
    Last Post: - 20th December 2009, 12:57
  5. PICBASIC Pro & MPLAB integration syllabus
    By chris vp in forum PBP Wish List
    Replies: 16
    Last Post: - 25th July 2009, 10:35

Members who have read this thread : 1

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