12f675_fuse_about_to_blow!


Closed Thread
Results 1 to 40 of 929

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Hi mackrackit

    Well that was easy....
    Only because you and Henrik are such good teachers....!

    We need to think of something harder
    Ok, but be gentle with me.

    How about this:

    Yup, Write code and set the hardware up so whatever you send to the PIC® echos bach to the PC
    From an earlier brief.

    Dave

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,626


    Did you find this post helpful? Yes | No

    Default

    Looking good Dave! As you see the Select Case can provide a much cleaner look than the IF THEN in some cases. What you also can do is have a CASE ELSE where you "capture" invalid input (anything BUT + - / *).

    You have a lot of Pauses in there that doesn't need to be there if there's no specific reason for it.

    Now, since you have the LCD, why not make the messages appear on it instead of the PC-screen? You can still receive the "commands" thru the PC, to begin with.

  3. #3
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Hi Henrik,

    Now, since you have the LCD, why not make the messages appear on it instead of the PC-screen? You can still receive the "commands" thru the PC, to begin with.


    That would be brilliant, I'm ready when you are!

    I've uploaded the PDF for the LCD.

    Quick point, on my PICkit1, I'm using two 22k resistors on the DB9 data cable (pin2&3) do I still use these for the LCD?

    Dave
    Attached Images Attached Images

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Hey Dave,
    I will but back in....

    Check out the LCD section of the manual and compare to the LCD data sheet for the pin outs. Make needed adjustments and....
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Make needed adjustments and....
    I'm not sure how much of the display I need to connect up?

    How does this look / sound:

    PIN1 - VSS - GND
    PIN2 - VDD - +5V
    PIN3 - V0 - 20k pot (contrast)
    PIN4 - RegSel - PORTA.4? with 10k pull res.
    PIN5 - ReadWrite - GND
    PIN6 - PORTB.3?

    PIN11 - D4 - I/O - Data LSB - PORTA.0?
    PIN12 - D5 - I/O - Data - PORTA.1?
    PIN13 - D6 - I/O - Data - PORTA.2?
    PIN14 - D7 - I/O - Data MSB - PORTA.3?

    The manual qoutes for a PIC16F84 I'm using a 16F684, don't forget, hence the question marks.
    I'm thinking it still applies the same though.

    Dave
    Last edited by LEDave; - 19th April 2010 at 00:32.

  6. #6
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,626


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,
    That looks OK to me. Don't forget that if your pin assignment differs from the "standard" shown in the manual (I haven't checked but I think yours is different) you need to DEFINE that as shown in the manual. Simply copy the complete DEFINE-block to your code and change it to match your setup.

    /Henrik.

  7. #7
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Hi Henrik

    I've bought a breadboard today and have decided to make the project on it.
    So starting from scratch really.

    Yes the code does need adjusting to match the manual (probably the best way around at this stage) so lots to do and think about.

    If this LCD ever fires up and works it'll be a minor, no major miracle!

    Dave

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