wordA wordB
wordA12345wordB
Testing Testing
Vin o-----R1-----+-----o Vout
|
C1
|
GND o------------+-----o GND
[FONT=Courier New]
This That
This12345That[/FONT]
[FONT=Courier New]
This That
This12345That[/FONT]
[FONT=Courier New]
This That
This12345That[/FONT]
[FONT=Courier New]
This That
This12345That[/FONT]
This That
This12345That
This That
This12345That
This That
This12345That
Vin Vout
---- ----
1 10
2 20
3 28
4 35.4
This That
This12345 That
list p=16F887
include "P16F887.inc"
LEDS EQU b'00000011' ; Initial LEDS
EXTRA_LED EQU 0x05 ; Extra led to switch on
org 0
Start:
; banka
banksel TRISA
movlw b'00000000'
movwf TRISA
banksel ANSEL
clrf ANSEL
banksel ANSELH
clrf ANSELH
banksel PORTA
movlw LEDS
movwf PORTA
bsf PORTA,EXTRA_LED
; bankb
banksel TRISB
movlw b'00000000'
movwf TRISB
banksel PORTB
movlw LEDS
movwf PORTB
bsf PORTB,EXTRA_LED
goto $
end
KISS.... automagicly...
list p=16F887
include "P16F887.inc"
LEDS EQU b'00000011' ; Initial LEDS
EXTRA_LED EQU 0x05 ; Extra led to switch on
org 0
Start:
; banka
banksel TRISA
movlw b'00000000'
movwf TRISA
banksel ANSEL
clrf ANSEL
banksel ANSELH
clrf ANSELH
banksel PORTA
movlw LEDS
movwf PORTA
bsf PORTA,EXTRA_LED
; bankb
banksel TRISB
movlw b'00000000'
movwf TRISB
banksel PORTB
movlw LEDS
movwf PORTB
bsf PORTB,EXTRA_LED
goto $
end
Code (asm):
list p=16F887
include "P16F887.inc"
LEDS EQU b'00000011' ; Initial LEDS
EXTRA_LED EQU 0x05 ; Extra led to switch on
org 0
Start:
; banka
banksel TRISA
movlw b'00000000'
movwf TRISA
banksel ANSEL
clrf ANSEL
banksel ANSELH
clrf ANSELH
banksel PORTA
movlw LEDS
movwf PORTA
bsf PORTA,EXTRA_LED
; bankb
banksel TRISB
movlw b'00000000'
movwf TRISB
banksel PORTB
movlw LEDS
movwf PORTB
bsf PORTB,EXTRA_LED
goto $
end
Hello again,
Seriously? We need a PROGRAM just to paste code text into the forum editor?
To quote from the movie "Galaxy Quest" when one of the crew members saw the engineer having weird sex with a cute alien girl:
"That's just not right"
Like i said it should not be hard to fix, just look at the event code for "Paste" in the forum software.
I wonder what language that is written in, and who is responsible for writing/updating that software.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?