Usage of built-in DAC ?


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Usage of built-in DAC ?

    Robert: กกก PROBLEM SOLVED กกก
    The power supply is 5 V. I am checking Portb.7 because I config the DACCON0 as $90.
    This enable the DAC and select Portb.7 as output.
    I move the DACCON0 register as you suggest,but the result is the same.
    Also I do not why,PORTA.6 remains lit when is making the voltage loop.
    It is configured as output and I clear the port at the begginning.
    I am using the EASYPIC V7 for development,and I realize I was loading
    The portb with the panel Leds. I turnoff the led selection and now all is working OK.

    Thanks for your comments...
    Ruben de la Pena

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Usage of built-in DAC ?

    Have you tried this?

    Code:
    LED var LATa.7

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Usage of built-in DAC ?

    Why do this?

    Code:
    FOR AUX = 0 TO 4
    LED = 1
    PORTA = 255
    PORTC = 255
    PAUSE 500
    LED = 0
    PORTA = 0
    PORTC = 0
    PAUSE 500
    NEXT AUX
    Robert

  4. #4
    Join Date
    Aug 2004
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Usage of built-in DAC ?

    Robert:
    It works... the problem with Porta.6 was configuration. It was as oscilator output.
    Changing & _CLKOUTEN_ON TO & _CLKOUTEN_OFF , in _CONFIG2 ,turn off the porta,6 and then
    can be used as normal i/o port.
    Thanks again...
    Ruben de la Pena

    Edited: I was testing the ports as IO.

    Greetings...
    Ruben de la Pena
    Last edited by Ruben Pena; - 5th December 2014 at 00:01. Reason: I forgot to anwer to your cuestion..

Similar Threads

  1. Anybody built one of these yet?
    By Byte_Butcher in forum Off Topic
    Replies: 1
    Last Post: - 21st April 2010, 16:44
  2. Skipping link step. Not all sources built successfully
    By Jalves in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th March 2009, 19:25
  3. Looking for a DAC
    By RussMartin in forum Off Topic
    Replies: 4
    Last Post: - 25th November 2007, 06:21
  4. Using PWM built in Module 16F628
    By earltyso in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th October 2007, 06:40
  5. how to built a device that can be interface using sms?
    By fazan83 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 21st January 2007, 02: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