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

    North of the Arctic Circle on that one...
    Lol......!

    It was a bit of a howler wan't it, oh dear.

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


    Did you find this post helpful? Yes | No

    Default

    I've just re-read the brief mackrackit.

    What happens if you do not send data?
    I thought you meant from the PIC to the pc, that's why I kept going towards a change of state on SEROUT2 (PORTC.3).

    I see what you're saying now (I still don't now the answer (yet)) at least I'm looking in the right area now (I think).

    Dave

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


    Did you find this post helpful? Yes | No

    Default

    Yup, you are heading South now.
    While I am on my way North with the gizmo I am playing with.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Yup, you are heading South now.


    While I am on my way North with the gizmo I am playing with.
    I'm intrigued, what you working on then mackrackit

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


    Did you find this post helpful? Yes | No

    Default

    I got the bright idea that would figure this one out.
    http://www.picbasic.co.uk/forum/showthread.php?t=12948
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Mmm,

    I'm might be able to help you, in about 15 years....!

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


    Did you find this post helpful? Yes | No

    Default

    Hi mackrackit,

    I've got something that 'works'

    Code:
    ANSEL   = %00000000    'Disable analog select so ports work as digital i/o.
    CMCON0  = %00000111    'Disable analog comparators.
    TRISA   = %00000000    'Set PORTA as OUTPUT.
    PORTA   = %00000000    'Set PORTA pins all low.
    TRISC   = %00000000    'Set PORTC as OUTPUT.
    PORTC   = %00000000    'Set PORTC pins all low.
    
    DEFINE OSC 4
    
    NUM1 VAR BYTE
    
    NUM2 VAR BYTE 
    
    TOTAL VAR BYTE
    
    Timeout con 10000
     
    MAIN:
    PAUSE 250
    
    SERIN2 PORTC.5, 16780,Timeout,Data_Not_Sent,[DEC NUM1, DEC2 NUM2]  
    PAUSE 6000
    HIGH PORTA.5
    PAUSE 1000
    LOW PORTA.5
    
    LET TOTAL = NUM1 + NUM2
    PAUSE 250
    
    SEROUT2 PORTC.3, 16780, [DEC TOTAL, 10] 
    pause 250
    
    DATA_Not_sent:
    High PORTA.1
    PAUSE 75
    LOW PORTA.1
    GOTO MAIN
    If I just load the program into the 16F684 and leave it running, every 10 secs PORTA.1 LED blinks as per the Timeout setting. I've given it a 10 secs delay because it takes about 4 secs to input two numbers into my clunky old keyboard.

    You might be wondering why there's a six second delay after the NUM's are inputted, it's so I can visually see via the LED PORTA.5 that it has arrived (if that makes sense).

    What do you think.

    Dave
    Last edited by LEDave; - 16th April 2010 at 13: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