Search found 1197 matches

by David Barker
Fri Feb 02, 2007 3:44 pm
Forum: Modules
Topic: Are we writing Modules the correct way?
Replies: 1
Views: 2958

The software USART allows you to assign TX and RX at runtime, so it's as flexible as PBP. As I2C devices tend to share a bus, the pins are fixed at compile time. Direct addressing, rather than runtime indirect addressing, produces much smaller code and is much faster. You will see this approach in o...
by David Barker
Fri Feb 02, 2007 1:30 pm
Forum: Compiler
Topic: Constants and ASM
Replies: 1
Views: 2318

Yes, that doesn't look right. Drop me an email and I'll get a BETA to you that will fix the problem.
by David Barker
Fri Feb 02, 2007 1:25 pm
Forum: Compiler
Topic: On-line Software Updates
Replies: 10
Views: 5591

You will need to contact me directly - you must have an old BETA version. The updates are working fine.
by David Barker
Thu Feb 01, 2007 11:45 pm
Forum: Compiler
Topic: On-line Software Updates
Replies: 10
Views: 5591

Try

(a) Uninstall
(b) Reboot
(c) Remove USB key, then install
(d) Reboot
(e) Insert USB key to install drivers

Ensure that you are not trying to run the IDE from an old shortcut...
by David Barker
Thu Feb 01, 2007 8:26 pm
Forum: Compiler
Topic: On-line Software Updates
Replies: 10
Views: 5591

Your IDE version number doesn't look right - have you installed from CD ROM!! It should read 1.2.0.8 before running an update...
by David Barker
Thu Feb 01, 2007 7:21 pm
Forum: Compiler
Topic: On-line Software Updates
Replies: 10
Views: 5591

I've just installed the first release CD ROM and the updates are detected. Are the online updates displayed? If so, do you see a progress bar when installing? After running the update, are you restarting the IDE?
by David Barker
Tue Jan 30, 2007 3:59 pm
Forum: Compiler
Topic: How to check if a pin is high/low ?
Replies: 5
Views: 3795

> Does this code do the same? are there any
> differences from the previous function (in terms of functionnalities) ?

Yes, it looks fine and the functionalty appears to be the same.
by David Barker
Tue Jan 30, 2007 3:35 pm
Forum: Compiler
Topic: How to check if a pin is high/low ?
Replies: 5
Views: 3795

If you pass by value, you will not be able to read the state of the pin when (or if) the pin changes state after the debounce, because you are only passing a copy of the pin state - so you will have to pass by reference. I was just pointing out it is not very efficient, as the compiler has to use in...
by David Barker
Tue Jan 30, 2007 3:18 pm
Forum: Compiler
Topic: How to check if a pin is high/low ?
Replies: 5
Views: 3795

Passing bits by reference is not very efficient, but if you want to do it... >> If aPin Then <<<<<<<< SWFBasic do not accept this test Because it is not a boolean expression, try IF aPin = 1 THEN or use a typecast. This should also work... function CheckButton(byref aPin as bit) as boolean result = ...
by David Barker
Tue Jan 30, 2007 12:54 pm
Forum: Compiler
Topic: Enumerations in SWFBasic ?
Replies: 1
Views: 1895

No. Configuartion fuses are a special case.
by David Barker
Sun Jan 28, 2007 11:00 pm
Forum: IDE
Topic: How to use the Bootloader Firmware ?
Replies: 1
Views: 2782

No code changes are required. Just program the bootloader firmware into your MCU at that's it...
by David Barker
Sat Jan 27, 2007 10:12 am
Forum: Compiler
Topic: a/d problem
Replies: 20
Views: 13367

One of the problems I've found with ADC is that Microchip tend to change bitname locations from device to device, which makes it tricky to encapsulate all configurations between devices. In your case, it seems that GO_DONE has not been correctly assigned for the 18F1320 in the ADC module. You can do...
by David Barker
Fri Jan 26, 2007 9:50 pm
Forum: Modules
Topic: [USB] HID does not work for me
Replies: 6
Views: 5632

I'm afraid it appears to be a problem with the SE version, which doesn't have bank switching enabled. I thought I had managed to get around this problem for the USB libraries (which use dual port RAM located at $400) but it's not working correctly. My sincere apologies and shame on me. It looks like...
by David Barker
Fri Jan 26, 2007 8:24 pm
Forum: Modules
Topic: [USB] HID does not work for me
Replies: 6
Views: 5632

Try this // device and clock... device = 18F4550 clock = 48 // 20Mhz crystal, 48Mhz internal (FS USB) config PLLDIV = 5, CPUDIV = OSC1_PLL2, USBDIV = 2, FOSC = HSPLL_HS, VREGEN = ON // import modules... #option USB_SERVICE = false include "usbhid.bas" while true Service wend This disables interrupts...
by David Barker
Fri Jan 26, 2007 6:22 pm
Forum: Compiler
Topic: can we use absolute keyword ? USB support ???
Replies: 6
Views: 5040