Search found 125 matches

by garryp4
Sun Mar 23, 2008 10:22 pm
Forum: Modules
Topic: Ethernet module and Microchip developement board
Replies: 0
Views: 3068

Ethernet module and Microchip developement board

I have Microchips development board DM183022 http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en520448&part=DM183022 and the PicTail Ethernet board http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en025831&part=AC164121 . I have...
by garryp4
Sun Mar 09, 2008 3:38 am
Forum: Compiler
Topic: get a bit value from a byte
Replies: 2
Views: 2106

Thanks. Just didn't know how to do it.
by garryp4
Tue Feb 26, 2008 12:48 pm
Forum: Compiler
Topic: get a bit value from a byte
Replies: 2
Views: 2106

get a bit value from a byte

Can I check the value of a bit in a byte?

Code: Select all

  While SPI.ReadByte.3 = 0              ' Wait for data ready
  Wend
I know this doesn't work, but is there a way?

Thanks.
by garryp4
Mon Feb 25, 2008 9:56 am
Forum: Compiler
Topic: function returning a structure
Replies: 5
Views: 3100

I don't quite understand the ByRef. How would I use ByRef with your example?
by garryp4
Sat Feb 02, 2008 5:10 am
Forum: Compiler
Topic: function returning a structure
Replies: 5
Views: 3100

Thanks for the quick reply. What if the function being called is in another module? How will the calling routine know the structures, um, structure?

And you are correct. I do like SF. Have not used PBP since it arrived. Have also turned it on to two other people.
by garryp4
Fri Feb 01, 2008 3:24 pm
Forum: Compiler
Topic: function returning a structure
Replies: 5
Views: 3100

function returning a structure

I want to return 2 word values from a function as a structure. Where do I create the structure, in the function after the function declaration or in the module with the other variable declarations, or somewhere else? Right now I am making the 2 words into a longword and parsing it out after it's ret...
by garryp4
Sun Jan 27, 2008 10:24 pm
Forum: Modules
Topic: usb hid code generator for .net
Replies: 4
Views: 3474

Any progress with using vb.net?

Thanks
by garryp4
Sat Dec 22, 2007 8:55 pm
Forum: Compiler
Topic: Problem with MOD?
Replies: 8
Views: 4934

Stop it, your killing me. Yeah, I also learned the difference between English and American while in England for a few years in the 80's. You could say something like "kids walking to school would stop at the chemist on high street and buy rubbers". Huge difference in meaning here in the US of A. Any...
by garryp4
Thu Dec 20, 2007 11:36 pm
Forum: Compiler
Topic: Problem with MOD?
Replies: 8
Views: 4934

for whatever reason, I was trying to use MOD to get the remainder of the division, the same as // in PBP. how can I do this with swordfish?

Thanks for the quick reply.

Garry
by garryp4
Thu Dec 20, 2007 10:05 pm
Forum: Compiler
Topic: Problem with MOD?
Replies: 8
Views: 4934

Problem with MOD?

Am I using this wrong? The output to hyperterm is: I'M ALIVE! holder1 - 14 holder2 - 2640 58640 / 4000 is 14.66 on my calculator. Why is holder2 not 66? Thanks Device = 18F6722 Clock = 32 // import modules... Include "usart2.bas" Include "convert.bas" // declare variables Dim val1 As Word Dim val2 A...
by garryp4
Tue Oct 02, 2007 8:37 am
Forum: Compiler
Topic: Passing multiple parm's from a function
Replies: 1
Views: 1832

Passing multiple parm's from a function

Does anyone have an example of how to pass multiple parameters from a function? This

Code: Select all

Public Function read(y As Word,z As Word) As Word

End Function
compiles OK, but how do I call the function and get both y and z?

Thanks
Garry
by garryp4
Sat Sep 15, 2007 2:44 pm
Forum: Compiler
Topic: LongWord problem
Replies: 6
Views: 4000

Thanks David, that was it.
by garryp4
Sat Sep 15, 2007 3:46 am
Forum: Compiler
Topic: LongWord problem
Replies: 6
Views: 4000

LongWord problem

I'm having a problem getting a 24 bit A/D value into a LongWord variable. I know the 'Shift' is working correctly as I can see the clock and data pulses on a scope. The A/D is reading a load cell, so I weighted it down till a piece of paper will roll the shifted in value passed 65535. The values rol...
by garryp4
Wed Jul 18, 2007 4:07 am
Forum: Modules
Topic: SPI and USART conflict question
Replies: 4
Views: 3383

I will use the software SPI for the memory.

Thanks.
by garryp4
Wed Jul 18, 2007 4:06 am
Forum: IDE
Topic: Block comment and block outdent/indent
Replies: 2
Views: 2955

Ok. Thanks.