PIC resets every now and then


Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    May 2007
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    AceTronics

    My circuit looks exactly like the one on p.96 of the PBP manual that shows the default setup for connecting a LCD. (except for the fact that I am using a pic16f73 and a 20MHz crystal).

    Thus default connections for LCD.

    DEFINE OSC 20

    DEFINE LCD_DREG PORTA
    DEFINE LCD_DBIT 0
    DEFINE LCD_RSREG PORTA
    DEFINE LCD_RSBIT 4
    DEFINE LCD_EREG PORTB
    DEFINE LCD_EBIT 3

    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 4
    DEFINE LCD_COMMANDUS 2000
    DEFINE LCD_DATAUS 50
    DEFINE NO_CLRWDT 1 ' Don't insert CLRWDTs

    TRISB=0 ' PORTB is output

    ADCON1 =7 ' PORTA is digital


    Thanking you in advance for any help or suggestions!
    Last edited by passion1; - 10th June 2007 at 21:03.

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