Search found 90 matches

by be80be
Fri Aug 21, 2015 3:18 am
Forum: Compiler
Topic: Adc is stopping the main loop
Replies: 5
Views: 3129

Re: Adc is stopping the main loop

I looked at the files there is something wrong with the ADC.bas it's not setting the adc setting of the 18f2550
I have swordfish ver 2.2.2.5 I don't see any thing in the sys library that set a 18f2550 up.
by be80be
Fri Aug 21, 2015 1:17 am
Forum: Compiler
Topic: Adc is stopping the main loop
Replies: 5
Views: 3129

Adc is stopping the main loop

Ok I never had a problem till now I don't think the problem is windows 10 I'm using a 18f2550 if I send code to LCD it works but if I send adc data the loop stops at this. LCD.Write("DC Volts = ", DecToStr(ADVal / 100), ".", DecToStr(ADVal, 2), " ") I have a led on portb it works fine up till you ge...
by be80be
Thu Aug 20, 2015 10:10 pm
Forum: IDE
Topic: Windows 10
Replies: 10
Views: 9623

Re: Windows 10

Com ports work fine if you wait till the windows start's to start and hold the shift key you can turn off driver signing I didn't have any problems there but the dang thing isn't using some of the library's Like ADC for one
by be80be
Thu Aug 20, 2015 9:50 pm
Forum: Compiler
Topic: oversampling adc
Replies: 4
Views: 2500

Re: oversampling adc

I've tried a sample like this Device = 18F2550 Clock = 20 #option LCD_DATA = PORTB.4 #option LCD_RS = PORTB.1 #option LCD_EN = PORTB.2 // uses LCD and AD libraries... Include "LCD.bas" Include "ADC.bas" Include "convert.bas" // read the AD port and scale for 0 - 5 volts... Function ADInAsVolt() As W...
by be80be
Thu Aug 20, 2015 5:54 pm
Forum: Compiler
Topic: oversampling adc
Replies: 4
Views: 2500

Re: oversampling adc

I got a problem I think windows 10 changed something when I complie it doesn't use any of the library's
Got to maybe reinstall swordfish. The asm doesn't have the adc code set at all in it. I tried the sample from swordfish it gives no LCD output
by be80be
Thu Aug 20, 2015 12:32 am
Forum: Compiler
Topic: oversampling adc
Replies: 4
Views: 2500

oversampling adc

Any one have a sample of how to oversample the adc
Thanks Burt
by be80be
Mon Jan 14, 2013 11:20 am
Forum: User Modules
Topic: Event's some pointers on how to use them
Replies: 13
Views: 6062

Thanks RangerBob
by be80be
Sat Jan 12, 2013 2:55 pm
Forum: General
Topic: How to use bound on a byte
Replies: 6
Views: 3307

Yes that's it Thanks
by be80be
Sat Jan 12, 2013 2:44 pm
Forum: General
Topic: How to use bound on a byte
Replies: 6
Views: 3307

A byte is a bit array right or wrong?
by be80be
Sat Jan 12, 2013 2:29 pm
Forum: General
Topic: How to use bound on a byte
Replies: 6
Views: 3307

I no what bound is for thanks thats not what i'm asking a byte is 8 bits.

So how do you use it to get data.0 ,data.1, data.2 the 8 bit's of data

I did it before but I can't remember how I did it. I want to return the bit's

dim data(8) as bit
by be80be
Sat Jan 12, 2013 7:01 am
Forum: General
Topic: How to use bound on a byte
Replies: 6
Views: 3307

How to use bound on a byte

How do you use bound on a byte
Like

Code: Select all

dim data as byte
dim X as byte
    for X = 0 to bound (data)
         portb.0 = data(bit)
   next

by be80be
Fri Jan 11, 2013 2:23 pm
Forum: User Modules
Topic: Event's some pointers on how to use them
Replies: 13
Views: 6062

I'm increasing the voltage back to 5 volts but without a reset you can't trip it agin.

That's kind of what i'm seeing
Thinking about it some more, this could be tricky with HLVD since you can't clear the intr flag until the voltage goes back over the threshold.
by be80be
Fri Jan 11, 2013 1:59 pm
Forum: User Modules
Topic: Event's some pointers on how to use them
Replies: 13
Views: 6062

Jerry could you maybe show a example of how thats done i never used interrupt's just polling change the setup inside the ISR Thanks Burt The HLVDIN pin lets you fine tune it Jon did a polling setup it work fine can't wait to see Mrdeb hack it up lol The 16-tap resistor ladder network is not accurate...
by be80be
Fri Jan 11, 2013 11:58 am
Forum: User Modules
Topic: Event's some pointers on how to use them
Replies: 13
Views: 6062

The interrupt happens as the voltages drops below 3.9 volts but it never changes back the red led it stays on when the interrupt is not happening.
by be80be
Fri Jan 11, 2013 5:37 am
Forum: User Modules
Topic: Event's some pointers on how to use them
Replies: 13
Views: 6062

Event's some pointers on how to use them

I looking for some pointers on event's a interrupt's Here some code I started but i don't think it's handling interrupt's right Device = 18f2520 Clock = 8 Config osc = INTIO67 Include "utils.bas" Include "HiLowVolts" Event OnVoltChange() If PIR2.bits(2) = 1 Then PORTC.7 = 1 PIR2.bits(2) = 0 Else POR...