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.
Search found 90 matches
- Fri Aug 21, 2015 3:18 am
- Forum: Compiler
- Topic: Adc is stopping the main loop
- Replies: 5
- Views: 3129
- 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...
- 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
- 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...
- 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
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
- 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
Thanks Burt
- Mon Jan 14, 2013 11:20 am
- Forum: User Modules
- Topic: Event's some pointers on how to use them
- Replies: 13
- Views: 6062
- Sat Jan 12, 2013 2:55 pm
- Forum: General
- Topic: How to use bound on a byte
- Replies: 6
- Views: 3307
- Sat Jan 12, 2013 2:44 pm
- Forum: General
- Topic: How to use bound on a byte
- Replies: 6
- Views: 3307
- Sat Jan 12, 2013 2:29 pm
- Forum: General
- Topic: How to use bound on a byte
- Replies: 6
- Views: 3307
- 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
Like
Code: Select all
dim data as byte
dim X as byte
for X = 0 to bound (data)
portb.0 = data(bit)
next
- Fri Jan 11, 2013 2:23 pm
- Forum: User Modules
- Topic: Event's some pointers on how to use them
- Replies: 13
- Views: 6062
- 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...
- Fri Jan 11, 2013 11:58 am
- Forum: User Modules
- Topic: Event's some pointers on how to use them
- Replies: 13
- Views: 6062
- 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...