Search found 90 matches

by be80be
Tue Jan 08, 2013 12:48 am
Forum: IDE
Topic: Online updates
Replies: 4
Views: 6153

It's fixed there was something wrong with my key
by be80be
Sat Jan 05, 2013 12:50 pm
Forum: IDE
Topic: Online updates
Replies: 4
Views: 6153

I said key no good I guest I have to email for a new key
by be80be
Sat Jan 05, 2013 4:04 am
Forum: IDE
Topic: Online updates
Replies: 4
Views: 6153

Online updates

I can't update my swordfish basic. It checks for updates but doesn't update.
I have ver 2.2.0.5.

I also stopped asking for the key

Thanks Burt.
by be80be
Tue Dec 25, 2012 9:58 pm
Forum: Compiler
Topic: What wrong with the way swordfish does math
Replies: 4
Views: 2701

Jerry Thanks this fixed it I'm now reading the Resistance and outputting to a LCD While true ADC_in = ADC.Read(0) X = (1023.0/ADC_in)-1 //I should get 1.538 in X I = X Y = (10000.0/I) // should be 6501.950 LCD.WriteAt (1,1, FloatToStr(Y)) DelayMS(100) Wend I really don't need the right side of the d...
by be80be
Tue Dec 25, 2012 9:26 pm
Forum: Compiler
Topic: What wrong with the way swordfish does math
Replies: 4
Views: 2701

I'm output it to a LCD with DecToStr (x) and it rounds it to 1

I need to use Dec32ToStrFormat how does that work?
by be80be
Tue Dec 25, 2012 8:10 pm
Forum: Compiler
Topic: What wrong with the way swordfish does math
Replies: 4
Views: 2701

What wrong with the way swordfish does math

If i do math like this

Code: Select all

dim X as float
 X = 403
 X = ((1023/X)-1) // it rounds this to a 1
 X = (10000/X) // this ends up a 10000 not the 6501.950 that it should be.

What am I missing here
by be80be
Sun Dec 16, 2012 7:26 pm
Forum: General
Topic: A function for ASC11 to decimal
Replies: 4
Views: 2818

Here what I was trying to do just need to add the CR as a test so it knows to wait for the next 3 byte from the usart Dim StrA, StrB, StrC As Char Dim StrResult As String SetBaudrate(br9600) While true StrA = (USART.ReadByte)// 1 StrB = (USART.ReadByte)// 7 StrC = (USART.ReadByte)// 0 StrResult = St...
by be80be
Sat Dec 15, 2012 11:15 pm
Forum: General
Topic: A function for ASC11 to decimal
Replies: 4
Views: 2818

I no about that. What the deal is I've seen a functions that changes data back thats been sent to the pic over a com port I send 1 the pick tells me it's a 49 which is 1 in asc11 I send a 0 it's 48 I want the dam thing to send decimal not text I send 123 but I get 49 50 51 I saw a function I'm sure ...
by be80be
Fri Dec 14, 2012 7:50 pm
Forum: General
Topic: A function for ASC11 to decimal
Replies: 4
Views: 2818

A function for ASC11 to decimal

Does any one have a sample of ASC11 to decimal Thanks Burt
by be80be
Thu Dec 13, 2012 4:12 pm
Forum: Modules
Topic: ADC.bas
Replies: 4
Views: 3080

Ok I feel like a nut I set rightjustify to false that puts the right 8 bits in ADRESH 0 to 255 It reads like I should

Thanks for waking me up Senacharim they put me on some med's for diabetes I think it's slowed my thinking way down. :shock:
by be80be
Thu Dec 13, 2012 1:46 pm
Forum: Modules
Topic: ADC.bas
Replies: 4
Views: 3080

Pic18f2550 I want the 8 bit reading but i get double.

I'm thinking i've gone crazy can't see where it's reading wrong the adc bas has the right setting
by be80be
Thu Dec 13, 2012 5:52 am
Forum: Modules
Topic: ADC.bas
Replies: 4
Views: 3080

ADC.bas

Been trying to use the ADC.bas in 8 bits reading ADRESL but i get 255 to 0 from VDD to middle of the pot then it jumps to 255 to 0 middle to grd. The 10 reading work fine I tested it with this code Dim Variable As Word Dim Variable1 As Word SetBaudrate(br19200) Variable = 0 While True ADC.Read (0) D...
by be80be
Mon Nov 26, 2012 3:17 pm
Forum: General
Topic: How to cast a const to a variable
Replies: 2
Views: 2038

I figured it out While true //Loop that's forever as long as it's true I=0 scan=0 For index = 0 To Bound (data) //Picks byte to load VarArray = row DelayMS(10) // to see it happen X = (data(index)) // This Loads byte into X StartScan // This sends X to the TLC5916 I = VarArray(scan) PORTA= I scan = ...
by be80be
Mon Nov 26, 2012 2:44 am
Forum: General
Topic: How to cast a const to a variable
Replies: 2
Views: 2038

How to cast a const to a variable

In a for next loop you use bound to load the bytes of a const. How would you do this dim load as byte dim index as byte Const X (2) as byte = (%10000000,%01000000) load = (X (index)) Inc (index) Make it work in a loop Like this For scan = 0 To Bound (row) load = (X (index)) PORTB = X I = (scan(row))...
by be80be
Sat Apr 07, 2012 8:17 pm
Forum: Compiler
Topic: Problems with the PIC18F25K22
Replies: 31
Views: 15284

If you really want to have fun try this chip with HI-Tech C 18 I hate C but it's some how in my blood to help people with things such as this Nice work here all. You no why the fosc setting is not in there it's that dang microchip there nice new naming for configure's probably that's what was Hi-Tec...