12f675_fuse_about_to_blow!


Closed Thread
Results 1 to 40 of 929

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Interrupt on change (interrupt when the state of a pin changes)
    Again this is a snippet from another chip (16F873A) but it will give you something to start with.
    Code:
    ON INTERRUPT GOTO MYINT
    INTCON = %10010000   'PORTB.0 CHANGE
    
    DISABLE
    MYINT:
    IF PORTB.0 = 1 THEN
        ' DO SOMETHING
    ELSE
        'DO SOMETHING ELSE
    ENDIF
    INTCON.1 = 0
    RESUME
    ENABLE
     'THE ABOVE WILL ALSO DEBOUNCE THE SWITCH
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Cheers mackrackit,

    I made a little table up that other newbies who are maybe following this thread might find useful. It hinges on what you said the other day about setting the prescaler (TMR0) and using that with (I = I +1) to set up a delay of your choosing.

    BIT TMR0 Time_u_secs HZ
    000 1:2 512 976
    001 1:4 1024 488
    010 1:8 2048 244
    011 1:16 4096 122
    100 1:32 8192 61
    101 1:64 16384 30.5
    110 1:128 32768 15.2
    111 1:256 65536 7.6
    Didn't quite come out as planned and every time I edit it the changes I make it just resets.
    Still, I'm sure you get the drift (might be worth checking my figures as well though).


    Any thoughts on that LCD?

    Dave
    Last edited by LEDave; - 29th March 2010 at 16:39.

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


    Did you find this post helpful? Yes | No

    Default

    I've just had a thought.

    It's probably dangerous for me to offer advice right now, no matter how well intensioned. As some of my conclusions maybe a little off the mark.

    Dave

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by LEDave View Post
    I've just had a thought.

    It's probably dangerous for me to offer advice right now, no matter how well intensioned. As some of my conclusions maybe a little off the mark.

    Dave
    Most of mine are, does not stop me...

    LCD... Back-light would be nice but I did not see very many options from your supplier. So that is why I was looking at one with four lines.
    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

    Most of mine are, does not stop me...
    LCD... Back-light would be nice but I did not see very many options from your supplier. So that is why I was looking at one with four lines.
    In the LCD product spec page (15/17) it says:
    (8) In particular do not forcibly bend the I/O cable or the backlight cable.
    So maybe it does have a backlight?

    That's for the display we were looking at:

    http://uk.rs-online.com/web/search/s...duct&R=5326795

    Page (15/17) in here:

    http://docs-europe.origin.electrocom...6b806dda19.pdf

    Dave
    Last edited by LEDave; - 29th March 2010 at 18:14.

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


    Did you find this post helpful? Yes | No

    Default

    It also list specs for a LED and EL back light.
    So I am not sure. Might be worth contacting them to find out.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Might be worth contacting them to find out.
    I'll try and contact the technical department tomorrow.

    So what exactly are we after here? I'll try and find out if this one anything else they have exactly fits the bill.

    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