Search found 15 matches
Isr
Hello, Im working with usb for the first time and I wonder if anyone knows why 'Service' - the name of a routine which performs usb housekeeping functions- is saved by the interrupt service routine ie. save(FSR0, FSR1, Service ) what exactly does 'service' save? thanks. *****************************...
- Fri Jan 30, 2009 5:56 pm
- Forum: Compiler
- Topic: Routine precedence
- Replies: 17
- Views: 8293
Update
Hello, Ive followed nigle's advice and moved my applications files into a common directory. I am now able to compile the application in Mplab! I should be noted that module dependencies ('includes') also need to be moved into the common directory. I hope to do some debuging over the weekend and will...
- Thu Jan 29, 2009 5:08 am
- Forum: Compiler
- Topic: Routine precedence
- Replies: 17
- Views: 8293
Octal, I've rearranged the code so that the larger array declaration follows the smaller ones, and the code now appears to be working. I will test the routines using variables following these declarations to be sure they still work. cardbuff_a (5) As Byte, 'Reader a wiegand buffer cardbuff_b (5) As ...
- Thu Jan 29, 2009 4:49 am
- Forum: Compiler
- Topic: Routine precedence
- Replies: 17
- Views: 8293
Hello Octal, the application is a rather large one so I can't post it all here. I did a bit more poking around and it seems that I can extend the array up to 20 elements before It breaks the code (makes the code malfunction. I dont get any compiler errors, and the used variable count is increases as...
- Wed Jan 28, 2009 5:21 am
- Forum: Compiler
- Topic: Routine precedence
- Replies: 17
- Views: 8293
- Wed Jan 28, 2009 5:04 am
- Forum: Compiler
- Topic: Routine precedence
- Replies: 17
- Views: 8293
Hello, Thanks to everyone for the feedback. I've run into another small problem. I have three byte arrays declared in my application arrayOne(15) as byte arrayTwo(5) as byte arrayThree(5) as byte If I extend array one such that: arrayOne(25) as byte '<--This array extended by 10 bits arrayTwo(5) as ...
- Mon Jan 26, 2009 12:32 am
- Forum: Compiler
- Topic: Routine precedence
- Replies: 17
- Views: 8293
Routine precedence
Hello, Ive come to the realization that functions and subroutines defined within a common module cannot be called before they are declared such that: sub my_First_sub() dim x as byte x= my_second_Function() '/< error occurs here! end sub function my_second_Function() as byte my_second_Function = 3* ...
- Wed Sep 17, 2008 3:21 am
- Forum: Compiler
- Topic: Indirect pointers
- Replies: 2
- Views: 2477
Indirect pointers
Hello again,
Is it possible to use indirect pointers in swordfish basic ie.
Dim ptrToSub as longWord
ptrToSub = @Myfunction()
If readytorun = 1 Then Goto ptrToSub
Is it possible to use indirect pointers in swordfish basic ie.
Dim ptrToSub as longWord
ptrToSub = @Myfunction()
If readytorun = 1 Then Goto ptrToSub
delayus
Anybody know if delayus() disables interrupts when called?
- Sun Sep 14, 2008 2:10 pm
- Forum: Compiler
- Topic: Malfunction
- Replies: 5
- Views: 3380
Problem solved
Thanks David,
That did it!
That did it!
- Sun Sep 14, 2008 12:14 am
- Forum: Compiler
- Topic: Malfunction
- Replies: 5
- Views: 3380
Steve, my earlier conclusions may be incorrect. The problem may not be related to function calls at all. I think it may be the call decTostr(). It corrupts buffer_b() when I try to convert word variables to a string. It doesnt happen when I convert a word constant: ie. This Code corrupts cardbuff_b(...
- Sun Sep 14, 2008 12:03 am
- Forum: Compiler
- Topic: Malfunction
- Replies: 5
- Views: 3380
steven, I have included the code you rquested. activeformat() is a byte array containing parameters decodebuffer() uses when processing data from cardbuff_a() & cardbuff_b(). My debuging efforts indicate the problem lies within the compliers function calling mechanism. If I comment out the functions...
- Sat Sep 13, 2008 2:27 am
- Forum: Compiler
- Topic: Malfunction
- Replies: 5
- Views: 3380
Malfunction
Hello support, I've run into what is likely a novices error or, remotely a compiler bug. My app clocks data from two card readers into two 5byte buffers. cardbuff_a() and cardbuff_b() I then call function decodebuffer() passing it a reference to the buffer of interest. The function processes the buf...
- Sun Aug 03, 2008 5:17 am
- Forum: Compiler
- Topic: MPLAB Simulation
- Replies: 2
- Views: 2238
- Sat Aug 02, 2008 12:17 am
- Forum: Compiler
- Topic: MPLAB Simulation
- Replies: 2
- Views: 2238
MPLAB Simulation
Hello does anyone know if the latest swordfish release allows single steping high level source code when using MPlab SIM I have been able to step through assembly level listings in MPLab SIM, but not in Basic level source code . Screen shots posted on the website show basic stepping in both MPLab an...