Search found 310 matches

by richardb
Tue Apr 24, 2007 5:55 am
Forum: Compiler
Topic: variables
Replies: 6
Views: 3629

thanks for clarifying.
by richardb
Sat Apr 21, 2007 8:34 am
Forum: Compiler
Topic: variables
Replies: 6
Views: 3629

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.
by richardb
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...
by richardb
Fri Apr 20, 2007 7:10 pm
Forum: Compiler
Topic: is therre an obvious way to index through a byte...
Replies: 9
Views: 5057

Cunning!.

thanks for the explanation and the example.
by richardb
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...
by richardb
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.
by richardb
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...
by richardb
Thu Apr 19, 2007 9:11 pm
Forum: Compiler
Topic: is therre an obvious way to index through a byte...
Replies: 9
Views: 5057

thanks i dont know why i couldnt see it before.


do you mean code inefficient as in speed or code space? as speed is really not a problem for what i'm doing
by richardb
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...
by richardb
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.
by richardb
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 '******************...
by richardb
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...
by richardb
Thu Apr 12, 2007 1:34 pm
Forum: Compiler
Topic: a quick code question
Replies: 8
Views: 4678

what i need to do is trigger the code from an external source.

the pic only has one job to do and that is to wait for an input to change on portb.0,
i was assuming i could use interrupt on change, but i was wondering what the jitter was likely to be.
by richardb
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...
by richardb
Sun Mar 25, 2007 4:20 pm
Forum: Compiler
Topic: storing config data
Replies: 6
Views: 3779

thanks again for the prompt reply