Is, 1000 PAUSEUS = 1 PAUSE?
Type: Posts; User: xobx; Keyword(s):
Is, 1000 PAUSEUS = 1 PAUSE?
Can you make ICSP wireless?
If, how?
It makes a heart :P
If you look a the "DATA lines" you can see a lying heart..
This is NOT my code.
DEFINE OSC 20
p_01 var PORTD.4
p_02 var PORTD.5
p_03 var PORTD.6
p_04 var PORTD.7
Is there anyway you can PWM to pins at the same time?
How do I PWM two pins at the same time with this code?
For duty = 0 to 255
PWM PORTB.0,Duty,Cycle
HIGH PORTB.0
Next
Ok but I doesnt understand this line :/
button portb.0,1,255,0,but1,0,loop
Both includes a LCD wich make it harder to understand the code :/
How do you make a code work like this:
When I push a button a timer starts and when I push it again it stops and make that time into a variabel. So I can use that time in my program something like...
Ok, so this will turn off the Comparators?
CMxCON0
CM2CON1
And I have no idea how Table 2.1 works :/
Thats one way but I want to know how to do it the other way.. (in the code)
How do I turn off all A/D,timers and all the stuff on PIC16F887?
I know that ANSELH=0 turns of the A/D on PORTB but thers tons of extra on the other ports that i dont want..
Thanks, now does this code work too!
loop:
HIGH PORTB.0
HIGH PORTB.1
HIGH PORTB.2
PAUSE 250
That didnt work, quess I haft to stick with PORTB = %...
..but whats the difference between 'PAUSE' and 'PAUSEUS'?
If I make my code like this my three leds blinks..
loop:
PORTB = %00000111
pause 250
PORTB = %00000000
pause 250
MPSAM..?
http://img205.imageshack.us/img205/5717/sdfdfsdfzs8.jpg
???
.
This is my config now
@ device pic16F648A, hs_osc, wdt_off, mclr_on, lvp_off, protect_off
Is it only to change "hs_osc" to "xt_osc" to use the Internal Oscillator?
Or how should I do?
I just want some example code to understand how the timer works, but i quess i haft to figure it out myself..
This is my current circuit
http://img114.imageshack.us/img114/5695/dfgdfgfgfmg0.jpg
Can you make a code like this (in PICBASIC PRO):
When you click the button a timer starts and when you...
I cant get this code to work with my PIC16F887 :/
@ device pic16F887, hs_osc, wdt_off, mclr_on, lvp_off, protect_off
DEFINE OSC 20
loop:
high portb.2
pause 500
Shouldnt this code make all leds on PORTB blink?
Now its only one led thats blink (PORTB.1)
@ device pic16F648A, hs_osc, wdt_off, mclr_on, lvp_off, protect_off
DEFINE OSC 20
loop:
The only thing im looking on that tutorial is the soldering points for the buttons..
And the code work most of the time because the weapon you use must be full and you must have a secondary...
Im going to do this
http://www.instructables.com/id/EBQXQEC6XNEY95VH90/
And the creator wont share his code, and I found that code in the comments..
D'oh! This was under the code..
~~
I copied from another site so I dont konw :P
Is 'INPUT' the same as 'HIGH'?
Could someone pls translate this code to Basic?
' {$STAMP BS2}
' {$PBASIC 2.5}
R PIN 15
X PIN 14