lost in lcd land


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Arrow forgot

    picbasic pro 2.46

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


    Did you find this post helpful? Yes | No

    Default

    Ahhhh, read the long story there
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Pay attention to post #5

    As far as i remind, it should work anyway but it's still unpleasant to see some error message

    I don't know why Melabs define them anyways... i always comment out all of them for all PIC i use.
    Steve

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

  3. #3


    Did you find this post helpful? Yes | No

    Talking still trying

    we come a long way in the past couple of days however it still does not work even with known operating programs its tough to get the int osc functioning
    dont know whats left

    side thought pbp creates 6 files for a program hex-asm-bas-cod-lst-mac
    know what the first three function be see no informaion on the last 3

    still think the manuals need upgradeing to deal with beginers unless they dont want any
    Last edited by jcleaver; - 21st May 2006 at 03:34.

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


    Did you find this post helpful? Yes | No

    Default

    is a simple LED blink work with the same config fuse as posted before?
    Steve

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

  5. #5


    Did you find this post helpful? Yes | No

    Default answer

    no | none of my working programs with external osc will work with int osc
    and the described settings.
    thats why i wanted info on files to see if it was really getting changed

  6. #6
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    1. Save the following code as MyTest.BAS into your PBP directory...

    Code:
    	'
    	'	Device Programming Options
    	'	--------------------------
    	@ DEVICE pic16F628, INTRC_OSC_NOCLKOUT
    			' System Clock Options	
    	@ DEVICE pic16F628, WDT_ON
    			' Watchdog Timer
    	@ DEVICE pic16F628, PWRT_ON
    			' Power-On Timer
    	@ DEVICE pic16F628, BOD_ON
    			' Brown-Out Detect
    	@ DEVICE pic16F628, MCLR_OFF
    			' Master Clear Options (Internal)
    	@ DEVICE pic16F628, LVP_OFF
    			' Low-Voltage Programming
    	@ DEVICE pic16F628, CPD_OFF
    			' Data Memory Code Protect
    	@ DEVICE pic16F628, PROTECT_OFF
    			' Program Code Protection
    
    	'
    	'	Hardware Assignments
    	'	--------------------
    	LEDA var PortA.0
    	LEDB var PortB.0
    
    	'
    	'	Initialise PIC
    	'	--------------
    	TRISA=%00000000			' PortA all OUTPUT
    	TRISB=%00000000			' PortB all OUTPUT
    	CMCON=%00000111			' Comparators OFF
    
    	'
    	'	Main Program
    	'	------------
    Loop:
    	Toggle LEDA
    	Pause 500
    	Toggle LEDB
    	Pause 500
    	Goto Loop
    
    	'
    	End
    2. Compile (approx 67 words) by opening up a DOS box, logging into the PBP directory and from it use the command line...

    PBP -p16F628 MyTest -v

    3. Program your PIC...

    Results...

    1. If it fails to Compile you have a bum PBP installation
    2. If it fails to compile you may not have logged into your PBP directory
    3. If it compiles but doesn't program you have a bum programmer/software
    4. If the PIC does not run, your programmer may have changed the CONFIG Fuse Settings - check this before you hit the BURN Button...
    5. If the PIC does not run you have a Bad PIC or have forgotten to pay your electric company.
    6. I'm making assumptions you can wire Vss and Vdd to your PIC (MCLR or xtal/resonator not required), and that you can hang an couple of LEDs with a Series Resistors (any value between 180R-390R) between the approprate PIC pin and Vss (or Vdd), and you can figure which way around to nail it.

    A program compiled for a 16F628 will happilly burn into an 'A' version without needing recompilation.

  7. #7


    Did you find this post helpful? Yes | No

    Default ok

    your a sweetheart. it works fine using this method
    now for the million dollar question why??/

    dont know what to do to get it to function out of microstudio

    any help?//\



    thanks

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 19:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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