PIC18F4620 , what's wrong with my A/D converter code


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Talking

    Hello Porcusoru,

    It looks like your code is suffering from a general lack of PicBasic commands. I personally, would throw a lot of the picbasic commands in, and take most of the assembly out. For instance, debug, serout or serout2 should solve the serial problem, and ADCIN pretty much would solve the rest. But your professor may have other ideas.
    Last edited by ScaleRobotics; - 2nd July 2009 at 18:57.
    http://www.scalerobotics.com

  2. #2
    Join Date
    Jul 2009
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Thanks

    U were kind of right. I addes this lines and now the b*tch works just fine

    CONFIG WDT=OFF; disable watchdog timer
    CONFIG MCLRE=ON;
    CONFIG DEBUG=ON;
    CONFIG LVP = OFF; Low-Voltage programming disabled (necessary for debugging)
    CONFIG OSC = INTIO67; (INTO67 was NOT in the 400 page datasheet, i found it somewhere else)

Similar Threads

  1. DC volts and A/D converter
    By michel in forum Schematics
    Replies: 3
    Last Post: - 17th September 2008, 12:44
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  3. A/D converter with pic16f84, i need a help
    By micro in forum General
    Replies: 0
    Last Post: - 13th December 2005, 22:17
  4. HDD IDE ATA 2 interface problems. code wrong?
    By rastan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th March 2005, 17:01
  5. Need help, high speed D/A converter, see code
    By rpatel in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 20th December 2004, 02:33

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