Search found 310 matches
variables
i noticed there is no mention of static variables for subs, does this mean i have to use public variables or are all variables defined in subs and functions static?
i seem to remember reading that variable space was recycled.
i seem to remember reading that variable space was recycled.
- Fri Apr 20, 2007 7:34 pm
- Forum: IDE
- Topic: IDE comment
- Replies: 6
- Views: 4904
funny you should say that i tried this in both work and vs2005 and it didnt work, so after you posted i retried and sure enough it worked some times but i had to start slecting on the text or it would delete the text unfortunately id also forgotten that vs2005 auto tabs. anyway i understand that thi...
- Fri Apr 20, 2007 7:10 pm
- Forum: Compiler
- Topic: is therre an obvious way to index through a byte...
- Replies: 9
- Views: 5057
- Fri Apr 20, 2007 6:11 pm
- Forum: IDE
- Topic: IDE comment
- Replies: 6
- Views: 4904
where is the tabbing documented? its not a standard windows method. you guy's obviously love keyboard shortcut's, unfortunatly i dont unless its a single keystroke. also sometimes its nice to block comment out a largeish section of code and then go back and un comment a few select iles of code. this...
- Fri Apr 20, 2007 1:18 pm
- Forum: IDE
- Topic: IDE comment
- Replies: 6
- Views: 4904
also
I would also like to say that i miss the block commenting, and also the block tabbing was nice too.
its now very tedious to make the code look nice if ive just added and ifthen around some existing code.
its now very tedious to make the code look nice if ive just added and ifthen around some existing code.
- Fri Apr 20, 2007 1:14 pm
- Forum: Compiler
- Topic: is therre an obvious way to index through a byte...
- Replies: 9
- Views: 5057
the jist of what i wanted to do follows. dim buttons as byte dim inputs as byte dim Index as byte dim multipleaxer as porte for index = 0 to 7 multiplexer = index delay(us10) buttons.Bits(Index) = portd.6 inputs.Bits(Index) = portd.5 next I should end up with 2 bytes of extra input information. woul...
- Thu Apr 19, 2007 9:11 pm
- Forum: Compiler
- Topic: is therre an obvious way to index through a byte...
- Replies: 9
- Views: 5057
- Thu Apr 19, 2007 9:05 pm
- Forum: Compiler
- Topic: a quick code question
- Replies: 8
- Views: 4678
Go on tell me what it does, quickliy looking at the instructions it would seem to generate a 5MHz clock signal which isnt much use to me. what i meant by jitter was the random variation between getting an external signal to trigger my code which isnt syncronus with the pics clock so the best i could...
- Wed Apr 18, 2007 7:13 am
- Forum: Compiler
- Topic: is therre an obvious way to index through a byte...
- Replies: 9
- Views: 5057
is therre an obvious way to index through a byte...
is there an obvious way to indext through a specific byte with a variable?
like a bit array on a specific byte.
like a bit array on a specific byte.
- Wed Apr 18, 2007 7:07 am
- Forum: Compiler
- Topic: a quick code question
- Replies: 8
- Views: 4678
If anyones interested it was much easyer than i expected i did the following and the jitter is now 100us interrupt mytrigger() INTCON.4 = 0 'do this first '********************************************* DelayUS(5) For i = 1 To 4 FAST_GATE =1 DelayUS(2) FAST_GATE =0 DelayUS(3) Next '******************...
- Thu Apr 12, 2007 4:04 pm
- Forum: Compiler
- Topic: a quick code question
- Replies: 8
- Views: 4678
Well from the time of the Pin going high/or low (changing), it will take a couple of instructions before it will get to the part of your program that generates that delay. How many, I'm not sure, but it will be exactly the same each time (theoretically) There’s your first piece of code overhead. Pr...
- Thu Apr 12, 2007 1:34 pm
- Forum: Compiler
- Topic: a quick code question
- Replies: 8
- Views: 4678
- Thu Apr 12, 2007 12:01 pm
- Forum: Compiler
- Topic: a quick code question
- Replies: 8
- Views: 4678
a quick code question
I need to make a simple pulse generator that takes an external trigger provides a delay and then some various trigger pulses, i've tried the following but i get about 500ns jitter @ 40mhz While TRUE While PORTB.0 = 0 Wend FAST_GATE =1 DelayUS(20) FAST_GATE =0 Wend would using interrups be a better b...
- Sun Mar 25, 2007 4:20 pm
- Forum: Compiler
- Topic: storing config data
- Replies: 6
- Views: 3779