Pic 16f737 lcd


Closed Thread
Results 1 to 4 of 4

Thread: Pic 16f737 lcd

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: Pic 16f737 lcd

    Try adding DEFINE OSC 4 (by memory, doublecheck syntax).

    PAUSE 5 turning into 5000 is usually timing issue.

    Are you sure about your cap size? I thought I used about 20pF, what does PBP manual recommend?

    Edit: 5 milliseconds is extremely fast, try 1000, it is easier to check for 1 second visually.

    Robert
    Last edited by Demon; - 6th May 2014 at 01:11.

  2. #2
    Join Date
    May 2014
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Pic 16f737 lcd

    Demon

    I need to use Channel 13 for ADC. Here is what is in the manual

    REGISTER 12-1: ADCON0: A/D CONTROL REGISTER 0 (ADDRESS 1Fh)
    R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
    ADCS1 ADCS0 CHS2 CHS1 CHS0 GO/DONE CHS3 ADON
    bit 7 bit 0
    bit 7-6 ADCS1:ADCS0: A/D Conversion Clock Select bits
    If ADCS2 = 0:
    000 = FOSC/2
    001 = FOSC/8
    010 = FOSC/32
    011 = FRC (clock derived from an RC oscillation)
    If ADCS2 = 1:
    00 = FOSC/4
    01 = FOSC/16
    10 = FOSC/64
    11 = FRC (clock derived from an RC oscillation)
    bit 5-3 CHS<2:0>: Analog Channel Select bits
    0000 = Channel 00 (AN0)
    0001 = Channel 01 (AN1)
    0010 = Channel 02 (AN2)
    0011 = Channel 03 (AN3)
    0100 = Channel 04 (AN4)
    0101 = Channel 05 (AN5)(1)
    0110 = Channel 06 (AN6)(1)
    0111 = Channel 07 (AN7)(1)
    1000 = Channel 08 (AN8)
    1001 = Channel 09 (AN9)
    1010 = Channel 10 (AN10)
    1011 = Channel 11 (AN11)
    1100 = Channel 12 (AN12)
    1101 = Channel 13 (AN13)
    111x = Unused
    Note 1: Selecting AN5 through AN7 on the 28-pin product variant (PIC16F737 and
    PIC16F767) will result in a full-scale conversion as unimplemented channels are
    connected to VDD.
    bit 2 GO/DONE: A/D Conversion Status bit
    1 = A/D conversion cycle in progress. Setting this bit starts an A/D conversion cycle. This bit is
    automatically cleared by hardware when the A/D conversion has completed.
    0 = A/D conversion completed/not in progress
    bit 1 CHS<3>: Analog Channel Select bit (see bit 5-3 for bit settings)
    bit 0 ADON: A/D Conversion Status bit
    1 = A/D converter module is operating
    0 = A/D converter is shut-off and consumes no operating current
    Legend:
    R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
    -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
    Can you tell me what is the ADCON0 Value if i use a 4MHZ and need to use CHANNEL 13 ?

Similar Threads

  1. Problem with 16F737
    By rangerdoc in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th November 2007, 04:09
  2. Configuration of 16F737
    By Robson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th August 2007, 04:14
  3. readcode on 16F737
    By joeri in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th July 2006, 17:01
  4. PID controller in 16F737
    By joeri in forum mel PIC BASIC
    Replies: 8
    Last Post: - 24th June 2006, 12:39
  5. 16F737 Microcode studio
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th February 2006, 18:45

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