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
Bookmarks