12f675_fuse_about_to_blow!


Results 1 to 40 of 929

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    OOPPPSSS!!!!!!! I goofed. Sorry.
    Hey even Marconi got his wires crossed from time to time I'm sure

    I've got the red wire from pc (pin3 db9) going to PORTC.5 (fourth one down on the jumper).

    Here's the latest prog:

    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.
    
    MYVAR  VAR BYTE 
     
    MAIN:
    PAUSE 250
    SERIN2 PORTC.5, 16780, [DEC MYVAR] '2400 INVERTED
    IF MYVAR = 3 THEN HIGH PORTA.5
    PAUSE 250
    GOTO MAIN
    Last edited by LEDave; - 12th April 2010 at 00:27.

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