18f4523 support ?


Results 1 to 7 of 7

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    V2.47 support this PIC.

    BUT the built-in command don't allow you to read 12 bit ADC directly... well i think, 10 or 8 bit are listed. Maybe DEFINE ADC_BITS 12 work....

    Anyway, it's not hard to read/write the PIC register manually. Few lines of code, not much.

    EDIT: DEFINE ADC_BITS 12 should work... IF NOT... here's a easy workaround
    Code:
    DUMMY var word
    TwelveBitResult var word
    
    START:
            adcin 0,dUMMY
            twelvebitresult.LOWBYTE=ADRESL
            twelvebitresult.HIGHBYTE=ADRESH
            lcdout $FE,1,#dummy,_   
                   $FE,$C0,#TWELVEBITRESULT 
            PAUSE 250
            GOTO START
    I still prefer the read/write PIC register route..
    Last edited by mister_e; - 1st March 2007 at 21:29.
    Steve

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

Similar Threads

  1. PBP PIC32 series support?
    By foss in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th August 2008, 13:10
  2. Melabs PIC Basic Pro - 16 bit devices support
    By rod27cn in forum PBP Wish List
    Replies: 10
    Last Post: - 21st November 2007, 09:21
  3. PicBasic Pro CAN Support?
    By RMUTR in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th November 2006, 01:19
  4. DSPIC Support
    By GeoJoe in forum PBP Wish List
    Replies: 14
    Last Post: - 5th May 2006, 16:47
  5. cell phone support text mode
    By microkam in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 23rd July 2005, 11:05

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