Search found 1197 matches
- 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...
- Fri Feb 02, 2007 1:30 pm
- Forum: Compiler
- Topic: Constants and ASM
- Replies: 1
- Views: 2318
- Fri Feb 02, 2007 1:25 pm
- Forum: Compiler
- Topic: On-line Software Updates
- Replies: 10
- Views: 5591
- Thu Feb 01, 2007 11:45 pm
- Forum: Compiler
- Topic: On-line Software Updates
- Replies: 10
- Views: 5591
- Thu Feb 01, 2007 8:26 pm
- Forum: Compiler
- Topic: On-line Software Updates
- Replies: 10
- Views: 5591
- Thu Feb 01, 2007 7:21 pm
- Forum: Compiler
- Topic: On-line Software Updates
- Replies: 10
- Views: 5591
- Tue Jan 30, 2007 3:59 pm
- Forum: Compiler
- Topic: How to check if a pin is high/low ?
- Replies: 5
- Views: 3795
- 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...
- 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 = ...
- Tue Jan 30, 2007 12:54 pm
- Forum: Compiler
- Topic: Enumerations in SWFBasic ?
- Replies: 1
- Views: 1895
- Sun Jan 28, 2007 11:00 pm
- Forum: IDE
- Topic: How to use the Bootloader Firmware ?
- Replies: 1
- Views: 2782
- 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...
- 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...
- 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...
- Fri Jan 26, 2007 6:22 pm
- Forum: Compiler
- Topic: can we use absolute keyword ? USB support ???
- Replies: 6
- Views: 5040