Search found 75 matches
- Wed Sep 16, 2015 8:17 pm
- Forum: Compiler
- Topic: 18F87K22 USART2.write can only send 1 char, USART is OK
- Replies: 5
- Views: 3034
Re: 18F87K22 USART2.write can only send 1 char, USART is
Thanks Jerry, l will try them today. Usart2.read is silent too on 18f87k22.
- Wed Sep 16, 2015 12:08 am
- Forum: Compiler
- Topic: 18F87K22 USART2.write can only send 1 char, USART is OK
- Replies: 5
- Views: 3034
Re: 18F87K22 USART2.write can only send 1 char, USART is
I have a work around which is below, in case anyone else has this problem. But I would be interested to know if I have done something not right....(Jerry, David...) Device = 18F87K22 Clock = 12 Config FOSC = HS1 Include "usart2.bas" Dim Txstring As String(20) dim n as byte Dim b As Byte USART2.SetBa...
- Tue Sep 15, 2015 10:59 pm
- Forum: Compiler
- Topic: 18F87K22 USART2.write can only send 1 char, USART is OK
- Replies: 5
- Views: 3034
18F87K22 USART2.write can only send 1 char, USART is OK
I've been using USART2.write for years with many 18F and it always works fine but not this time. Im using 18F87K22 for the first time. If I use USART2.write to transmit 1 char it works fine. On my scope its the correct bit width and on Teraterm I can see the char no problem. But if I increase the st...
- Sun Sep 13, 2015 1:34 am
- Forum: Modules
- Topic: 18F87J93 _eeprom=0?
- Replies: 11
- Views: 8118
Re: 18F87J93 _eeprom=0?
What a pity you guys had to go through all that. Moral is request help sooner! In Dec 2014 I wrote an SF module for an automated GLCD touch screen calibrator running on 18F87J93 with stored non volatile calibration values. It was implemented by setting a DIP switch which would make the J93 go to "ca...
- Sat Sep 12, 2015 11:18 pm
- Forum: Modules
- Topic: USART, ISRRX, Overrun and latest compiler
- Replies: 6
- Views: 6484
Re: USART, ISRRX, Overrun and latest compiler
Theres always a danger in making comments without knowing facts, perhaps you should have contacted the cowboy for help. I would guess, the cowboy being the codes author, already knew about the issues and how to fix them but hadn't due to lack of time or other reasons. Your project sounds similar to ...
- Wed Aug 12, 2015 12:08 am
- Forum: User Modules
- Topic: Watchdog Timer - a WDT.bas System.bas and sample that works
- Replies: 3
- Views: 5009
Re: Watchdog Timer - a WDT.bas System.bas and sample that wo
Thanks a lot for taking time to reply Jerry. I found a quick easy way to get what I needed by setting the WDT with the config statement and tickling it with the ClrWDT routine. It works just like my 4060 watchdog. Device = 18F87J93 ' select our device Clock = 12 Config OSC = HS, WDTPS = 2048, WDTEN ...
- Tue Aug 11, 2015 12:08 am
- Forum: User Modules
- Topic: Watchdog Timer - a WDT.bas System.bas and sample that works
- Replies: 3
- Views: 5009
Watchdog Timer - a WDT.bas System.bas and sample that works
Hi Guys, I need a watchdog working for my 18F87J93. In the past I tried various combinations of the wdt.bas, system.bas and sample code from the forum and wiki but couldnt find any that compiled without errors. Im trying not to reverse engineer through the code to get it to work since it takes such ...
- Thu Jul 16, 2015 7:38 am
- Forum: Modules
- Topic: GSM module SIM900
- Replies: 3
- Views: 5715
Re: GSM module SIM900
I tried SIM900 vs Quectel M35. I chose M35 and have had much success with it and SF for SMS products if you need help.
- Sat May 30, 2015 1:50 am
- Forum: Compiler
- Topic: Pointers in SF
- Replies: 2
- Views: 1908
Re: Pointers in SF
Thanks Octal
- Thu May 28, 2015 2:28 am
- Forum: Compiler
- Topic: Pointers in SF
- Replies: 2
- Views: 1908
Pointers in SF
I've seen in various SF programs and libraries the use of what I think are pointers. Variables prefixed by a small p. For example pThevariable is a pointer. I need to use pointers to update some graphics displays and cant find anywhere any documentation on pointers in SF. Where to look or if I am mi...
- Fri Jan 09, 2015 1:47 am
- Forum: Modules
- Topic: I2C Library Address Question?
- Replies: 6
- Views: 4922
Re: I2C Library Address Question?
I tried your suggestion Jerry and it works, thanks! With $98 as write address and $99 as read address. This is with MMA7660 and 18F87J50. What I don't understand is the last part I interfaced which was a 3 axis magnetometer HMC5883 to an 18F87J93. It worked fine using the so called "slave address", ...
- Thu Jan 08, 2015 9:57 pm
- Forum: Modules
- Topic: I2C Library Address Question?
- Replies: 6
- Views: 4922
Re: I2C Library Address Question?
Thanks Coccoliso I'll give your suggestions a try. The last I2C device worked fine with the code below, but the MMA7660 refuses. Public Function ReadDeviceRegister(I2C_Address As Byte, Register As Byte) As Byte ' ' point to Register ' I2C.Start I2C.WriteByte(I2C_Address) I2C.WriteByte(Register) I2C....
- Thu Jan 08, 2015 7:53 pm
- Forum: Modules
- Topic: I2C Library Address Question?
- Replies: 6
- Views: 4922
I2C Library Address Question?
I've used SF I2C library from time to time with success connecting to various I2C peripheral chips, sometimes by empirical testing. This time nothing working. A Freescale MMA7660 Accelerometer refuses to reply to reads from the I2C.bas library and also SI2C.bas library on an 18F87J50. The waveforms ...
- Sat Nov 22, 2014 7:13 pm
- Forum: Compiler
- Topic: Swordfish Simulator?
- Replies: 6
- Views: 4726
Re: Swordfish Simulator?
Great! Actually I thought the answer would be no. Thanks guys, I will try it today. In case you might be interested I developed a GSM Marine Transponder, 2kW Induction Heater, RS485 Touch Screen Terminal (KS108), Wifi Drug Reminder Device and 3 Axis Magnetic Anomaly Detector so far with SF, I'd be v...
- Sat Nov 22, 2014 6:00 am
- Forum: Compiler
- Topic: Swordfish Simulator?
- Replies: 6
- Views: 4726
Swordfish Simulator?
Is there a way to run an SF program without loading it on chip hardware?
I've got a GPS GSM project with lots of SF maths and it would be wonderful/quicker to be able to test it without repeatedly programming the target device.
I've got a GPS GSM project with lots of SF maths and it would be wonderful/quicker to be able to test it without repeatedly programming the target device.