You know what that means RIGHT?
Yup, this ain't over yet!yup.. sounds like a challenge... 100% PBP??? Maybe doable... scratch, scratch...mmm...
You know what that means RIGHT?
Yup, this ain't over yet!yup.. sounds like a challenge... 100% PBP??? Maybe doable... scratch, scratch...mmm...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
12C508A's bad enough,
you want 100% PBP??? too?
Did you know it doesn't even have an overflow flag on timer0?
I didn't, Oi vey!
I had so much fun this time last year with what ended up as the 12-byte cylon scanner,
perhaps I'm a bit over zealous.
The OP is satisfied, and probably wouldn't use it anyways,
So even if the program size was only 83 words, like I have it now,
It'll never be used.
We need a real Optimization contest.
They're just too fun.
<br>
DT
yup, no eeprom either... so nothing interesting. Think it's like a 16F84A, 16C54... but in 8 pin package![]()
There's always place for an optimization contest, next time, no rules (pic, language etc etc )... agreed?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Any chance we can see that 12-byte cylon scanner?
Sure,
The 12-byte version is toward the end on page 2.
http://www.sfcompiler.co.uk/forum/viewtopic.php?t=72
Edit: Hey, you were there to.
<br>
DT
Yipes I totally forgot that one. That was way interesting and the end result was really creative.
Nice work DT..;o}
Tim B and I got into one of these a long time back, and here's one he came up with.
Can we beat this without EEPROM?
Standard cyclone thingie moving the LED back & forth with ~1S delay periods.
Code:list p=16F628A #include "P16F628A.inc" errorlevel -302 ; suppress message 302 from list file __CONFIG _CP_OFF & _BODEN_ON & _MCLRE_ON & _WDT_ON & _PWRTE_ON & _LVP_OFF & _INTOSC_OSC_NOCLKOUT movlw 0x01 movwf PORTB ; Set Portb,0 bsf STATUS,RP0 ; Bank 1 clrf TRISB ; RB all outputs bcf OPTION_REG,0 ; 1:64 prescaler to WDT bcf STATUS,RP0 ; Bank 0 Left sleep ; go to sleep for 64 * 18mS ~1 second rlf PORTB,F ; rotate bit across portb from lsb to msb btfss PORTB,7 ; jump to Right after Portb,7 = 1 goto Left Right sleep ; go to sleep for 64 * 18mS ~1 second rrf PORTB,F ; rotate bit across Portb from msb to lsb btfss PORTB,0 ; jump back to left after Portb,0 = 1 goto Right ; loop until Portb,0 = 1 goto Left ; now rotate back to the left. End
seems to be hardly optimized to me
food for thought... let's see...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks