Search found 75 matches
- Fri Aug 08, 2014 4:07 am
- Forum: Compiler
- Topic: Can't read RTCC registers in 18F87J93 ?
- Replies: 7
- Views: 2896
Re: Can't read RTCC registers in 18F87J93 ?
Ok forget that one, I discovered I can set a pointer and read the register RTCVALL and RTCVAH which theroretically contain seconds. That works, I get values but they don't up date. I think I have tried every possible way of enabling and clocking the RTC but can't find a way that works? Any advice ap...
- Fri Aug 08, 2014 1:18 am
- Forum: Compiler
- Topic: Can't read RTCC registers in 18F87J93 ?
- Replies: 7
- Views: 2896
Can't read RTCC registers in 18F87J93 ?
Good Morning All. I need a RTCC and LCD display so chose 18F87J93 because its in the supported by SF list. I have a test program that compiles but I can't access the RTCC registers? For example I expected to be able to read the "second" register. Looking in the 18F87J93.bas I can't find any referenc...
- Mon Mar 31, 2014 4:38 pm
- Forum: User Modules
- Topic: How to add an ISR when already using ISRRX
- Replies: 4
- Views: 4264
Re: How to add an ISR when already using ISRRX
Sorry, should have written enable(GPSoff) !
- Mon Mar 31, 2014 4:36 pm
- Forum: User Modules
- Topic: How to add an ISR when already using ISRRX
- Replies: 4
- Views: 4264
Re: How to add an ISR when already using ISRRX
Thanks greatly for your suggestions Bob and Jerry. You are right about the long delay blocking things, actually this ISR only gets called at power down so its not so important. By trial and error I set isrrx to IPlow with a #option statement at the top of my program then magically the error on my "e...
- Mon Mar 31, 2014 12:56 am
- Forum: User Modules
- Topic: How to add an ISR when already using ISRRX
- Replies: 4
- Views: 4264
How to add an ISR when already using ISRRX
Good Morning (it is here!) I have a SF module working well using the ISRRX module for serial comms. in an 18F87J50. I need to add an ISR that blinks a LED on a pin when Vcc falls past half (ie. 1.7V). The comparator and ISR (called GSMoff) work nicely on their own, but when I add it to the code with...
- Thu Aug 08, 2013 12:14 am
- Forum: User Modules
- Topic: PIC 10F220/222
- Replies: 6
- Views: 4933
Hi Widgetman, Re Swordfish and 18F series only .... For all my big and small projects even blinking a LED I use PIC 18F87J50 they're only $4 here. (If the microscopic leads are a problem PIC18F4550 etc come in DIP40 packages) Even though it seems a frightful waste of resources, a huge powerful CPU b...
- Fri Apr 05, 2013 9:51 pm
- Forum: User Modules
- Topic: Can Swordfish call and External C++ Module
- Replies: 2
- Views: 3306
Can Swordfish call and External C++ Module
Good Morning,
I have several modules that I wrote in the past, mostly Windows DLLs, that I would like to call from Swordfish.
Is there a way?
Thanks Guys!
I have several modules that I wrote in the past, mostly Windows DLLs, that I would like to call from Swordfish.
Is there a way?
Thanks Guys!
- Sun Feb 19, 2012 11:30 pm
- Forum: User Modules
- Topic: SD Card Library files can only be opened by creating program
- Replies: 7
- Views: 4026
Good suggestion, if I was going to do it all the time I would do that but that test was a one off. I just needed to verify that I could write a file with the SD Library and read it back later to confirm I can use the same hardware for a future project. I hate assuming something will work then down t...
- Sun Feb 19, 2012 12:24 am
- Forum: User Modules
- Topic: SD Card Library files can only be opened by creating program
- Replies: 7
- Views: 4026
Problem solved
My MicroSD card is soldered onto PIC due to whole assembly needing to be small. When I reburnt the PIC with the code to read the pre-exisiting SD card file the PIC was starting to run the Quickformat from the old code, before the reprogramming stopped it and the new burn happened. Its solved by putt...
- Sat Feb 18, 2012 11:34 pm
- Forum: User Modules
- Topic: SD Card Library files can only be opened by creating program
- Replies: 7
- Views: 4026
Thanks bitfogav. There actually is. I used that block of posted code to format the SD card, then create the file, then read it back to confirm its there - which works. Then stage two, I commented out the quickformat, but left in the sd.init, commented out the file creation stuff then recompiled. I w...
- Sat Feb 18, 2012 2:40 am
- Forum: User Modules
- Topic: SD Card Library files can only be opened by creating program
- Replies: 7
- Views: 4026
PS
Sorry I should have added that the create file part of the code is also removed when recompiled so I should be able to read the file I wrote since the SD card is non volatile ?
- Sat Feb 18, 2012 2:37 am
- Forum: User Modules
- Topic: SD Card Library files can only be opened by creating program
- Replies: 7
- Views: 4026
SD Card Library files can only be opened by creating program
Hi All, Using SDfilesystem I can Quickformat and create an SD card file, save data in it and then re-open the file and read the data back no problems - if the save and open is in the same program. But if I recompile exactly the same prog. above (without Quickformat) the SD card initialises OK but SD...
- Sun Oct 30, 2011 10:08 pm
- Forum: User Modules
- Topic: USART only returns first 2 bytes from incoming 8 bytes
- Replies: 7
- Views: 4763
- Sun Oct 30, 2011 6:58 pm
- Forum: User Modules
- Topic: USART only returns first 2 bytes from incoming 8 bytes
- Replies: 7
- Views: 4763
Hi Jerry, Thanks for your suggestion about ISSRX.bas. I might give up soon and try that. This maybe related - USART1 is set br9600 and is 9600. I set my "monitor channel" USART2 to br9600 but what comes out is 2400. I didn't have time to chase this bug so my dumb terminal on USART2 is set to 2400. (...
- Sat Oct 29, 2011 11:16 pm
- Forum: User Modules
- Topic: USART only returns first 2 bytes from incoming 8 bytes
- Replies: 7
- Views: 4763
Hi David, Some more info. The first code block below works, it sends +++ to the Xbee which returns "OK"+<CR>. The OK comes back from USART.readbyte but not the <CR>. It disappears. The second code block sends ATDL to Xbee and I get the correct string of data appearing on RX1 pin according to my scop...