First Day and need Help!


Results 1 to 18 of 18

Threaded View

  1. #12
    timmoore47's Avatar
    timmoore47 Guest


    Did you find this post helpful? Yes | No

    Default

    Many thanks for that I'll take a very close look at it.

    Should watchdog fuse be ticked or not at time of flashing?

    Whilst I don't understand bits of it, I've been messing about and freely adapted a chunk of code posted by Lauren Barta

    Code:-

    Symbol TRISB = 134 'Symbol For TrisB Is Decimal 134
    Symbol TRISA = 133 'Symbol For TrisA Is Decimal 133
    Symbol PORTB = 6 'Symbol For PortB Is Decimal 6
    Symbol PORTA = 5 'Symbol For PortA Is Decimal 5


    Poke 134, 0 'Makes All PortB Pins Outputs
    Poke 133, 255 'Makes All PortA Pins Inputs

    Start:

    Poke 6, 0 'Makes PortB Pins Low
    Pause 10 'Short Pause

    Run:
    LET B2 = 0 'Making B2 a zero
    Pause 10 'Short Pause
    Peek PortA, B0 'Look at PortB, put results in B0

    Filters:
    IF B0 = 3 THEN Run1 'start of 24 filters, 23 yet to be added
    poke 6, B0
    Pause 7500 'Wait 3 seconds
    goto Run 'Start all over again!

    Run1:
    B0 = 5
    poke 6, B0
    Pause 7500 'Wait 3 seconds 10 Mhz clock
    goto Run 'Start all over again!

    End
    Last edited by timmoore47; - 2nd June 2006 at 19:29.

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